⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testsuite

📁 gnu tar 源码包。 tar 软件是 Unix 系统下的一个打包软件
💻
📖 第 1 页 / 共 5 页
字号:
# Autoconf <=2.59b set at_top_builddir instead of at_top_build_prefix:: ${at_top_build_prefix=$at_top_builddir}# atconfig delivers names relative to the directory the test suite is# in, but the groups themselves are run in testsuite-dir/group-dir.if test -n "$at_top_srcdir"; then  builddir=../..  for at_dir in srcdir top_srcdir top_build_prefix  do    at_val=`eval echo '${'at_$at_dir'}'`    eval "$at_dir=\$at_val/../.."  donefi# Not all shells have the 'times' builtin; the subshell is needed to make# sure we discard the 'times: not found' message from the shell.at_times_p=false(times) >/dev/null 2>&1 && at_times_p=:# CLI Arguments to pass to the debugging scripts.at_debug_args=# -e sets to trueat_errexit_p=false# Shall we be verbose?at_verbose=:at_quiet=echo# Shall we keep the debug scripts?  Must be `:' when the suite is# run by a debug script, so that the script doesn't remove itself.at_debug_p=false# Display help message?at_help_p=false# Display the version message?at_version_p=false# List test groups?at_list_p=false# Test groups to runat_groups=# The directory we are in.at_dir=`pwd`# The directory the whole suite works in.# Should be absolutely to let the user `cd' at will.at_suite_dir=$at_dir/$as_me.dir# The file containing the suite.at_suite_log=$at_dir/$as_me.log# The file containing the location of the last AT_CHECK.at_check_line_file=$at_suite_dir/at-check-line# The file containing the exit status of the last command.at_status_file=$at_suite_dir/at-status# The files containing the output of the tested commands.at_stdout=$at_suite_dir/at-stdoutat_stder1=$at_suite_dir/at-stder1at_stderr=$at_suite_dir/at-stderr# The file containing dates.at_times_file=$at_suite_dir/at-times# List of the tested programs.at_tested='tar'# List of the all the test groups.at_groups_all=' 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74'# As many question marks as there are digits in the last test group number.# Used to normalize the test group numbers so that `ls' lists them in# numerical order.at_format='??'# Description of all the test groups.at_help_all="1;version.at:19;tar version;;2;pipe.at:29;decompressing from stdin;pipe;3;options.at:24;mixing options;options options00;4;options02.at:26;interspersed options;options options02;5;T-empty.at:26;files-from: empty entries;files-from empty;6;T-null.at:21;files-from: 0-separated file without -0;files-from null T-null;7;indexfile.at:26;tar --index-file=this_is_a_very_long_file_name_which_raises_issues.c --file=-;stdout indexfile;8;verbose.at:26;tar cvf -;stdout verbose;9;append.at:21;append;append append00;10;append01.at:29;appending files with long names;append append01;11;append02.at:40;append vs. create;append append02 append-gnu;12;exclude.at:23;exclude;exclude;13;delete01.at:23;deleting a member after a big one;delete delete01;14;delete02.at:23;deleting a member from stdin archive;delete delete02;15;delete03.at:21;deleting members with long names;delete delete03;16;delete04.at:23;deleting a large last member;delete delete04;17;delete05.at:27;deleting non-existing member;delete delete05;18;extrac01.at:23;extract over an existing directory;extract extract01;19;extrac02.at:23;extracting symlinks over an existing file;extract extract02 symlink;20;extrac03.at:23;extraction loops;extract extract03;21;extrac04.at:23;extract + fnmatch;extract extract04 fnmatch;22;extrac05.at:30;extracting selected members from pax;extract extract05;23;extrac06.at:33;mode of extracted directories;extract extract06 directory mode;24;extrac07.at:27;extracting symlinks to a read-only dir;extract extract07 read-only symlink;25;gzip.at:23;gzip;gzip;26;incremental.at:23;incremental;incremental incr00;27;incr01.at:27;restore broken symlinks from incremental;incremental incr01;28;incr02.at:32;restoring timestamps from incremental;incremental timestamp restore incr02;29;listed01.at:26;--listed for individual files;listed incremental listed01;30;listed02.at:28;working --listed;listed incremental listed02;31;incr03.at:28;renamed files in incrementals;incremental incr03 rename;32;incr04.at:29;proper icontents initialization;incremental incr04 icontents;33;rename01.at:24;renamed dirs in incrementals;incremental rename rename01;34;rename02.at:24;move between hierarchies;incremental rename rename02;35;rename03.at:23;cyclic renames;incremental rename rename03 cyclic-rename;36;chtype.at:27;changed file types in incrementals;incremental chtype;37;ignfail.at:23;ignfail;ignfail;38;link01.at:33;link count gt 2;link01;39;longv7.at:24;long names in V7 archives;longname longv7;40;long01.at:28;long file names divisible by block size;longname long512;41;lustar01.at:21;ustar: unsplittable file name;longname ustar lustar01;42;lustar02.at:21;ustar: unsplittable path name;longname ustar lustar02;43;lustar03.at:21;ustar: splitting long names;longname ustar lustar03;44;multiv01.at:23;multivolume dumps from pipes;multivolume multiv multiv01;45;multiv02.at:28;skipping a straddling member;multivolume multiv multiv02;46;multiv03.at:30;MV archive & long filenames;multivolume multiv multiv03;47;multiv04.at:36;split directory members in a MV archive;multivolume multiv incremental multiv04;48;multiv05.at:26;Restoring after an out of sync folume;multivolume multiv multiv05 sync;49;old.at:23;old archives;old;50;recurse.at:21;recurse;recurse;51;same-order01.at:26;working -C with --same-order;same-order same-order01;52;same-order02.at:25;multiple -C options;same-order same-order02;53;shortrec.at:25;short records;shortrec.at;54;sparse01.at:21;sparse files;sparse sparse01;55;sparse02.at:21;extracting sparse file over a pipe;sparse sparse02;56;sparse03.at:21;storing sparse files > 8G;sparse sparse03;57;sparsemv.at:21;sparse files in MV archives;sparse multiv sparsemv;58;spmvp00.at:21;sparse files in PAX MV archives, v.0.0;sparse multiv sparsemvp sparsemvp00;59;spmvp01.at:21;sparse files in PAX MV archives, v.0.1;sparse multiv sparsemvp sparsemvp01;60;spmvp10.at:21;sparse files in PAX MV archives, v.1.0;sparse multiv sparsemvp sparsemvp10;61;update.at:27;update unchanged directories;update;62;volume.at:23;volume;volume volcheck;63;volsize.at:29;volume header size;volume volsize;64;comprec.at:21;compressed format recognition;comprec;65;shortfile.at:26;short input files;shortfile shortfile0;66;shortupd.at:29;updating short archives;shortfile shortfile1 shortupd;67;truncate.at:29;truncate;truncate filechange;68;grow.at:24;grow;grow filechange;69;gtarfail.at:21;gtarfail;star gtarfail;70;gtarfail2.at:21;gtarfail2;star gtarfail2;71;multi-fail.at:21;multi-fail;star multivolume multiv multi-fail;72;ustar-big-2g.at:21;ustar-big-2g;star ustar-big-2g;73;ustar-big-8g.at:21;ustar-big-8g;star ustar-big-8g;74;pax-big-10g.at:21;pax-big-10g;star pax-big-10g;"at_prev=for at_optiondo  # If the previous option needs an argument, assign it.  if test -n "$at_prev"; then    at_option=$at_prev=$at_option    at_prev=  fi  case $at_option in  *=*) at_optarg=`expr "x$at_option" : 'x[^=]*=\(.*\)'` ;;  *)   at_optarg= ;;  esac  # Accept the important Cygnus configure options, so we can diagnose typos.  case $at_option in    --help | -h )	at_help_p=:	;;    --list | -l )	at_list_p=:	;;    --version | -V )	at_version_p=:	;;    --clean | -c )	test -d "$at_suite_dir" &&	  find "$at_suite_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;	rm -f -r "$at_suite_dir" "$at_suite_log"	exit 0	;;    --debug | -d )	at_debug_p=:	;;    --errexit | -e )	at_debug_p=:	at_errexit_p=:	;;    --verbose | -v )	at_verbose=echo; at_quiet=:	;;    --trace | -x )	at_traceon='set -x'; at_traceoff='set +x'	;;    [0-9] | [0-9][0-9] | [0-9][0-9][0-9] | [0-9][0-9][0-9][0-9])	at_groups="$at_groups$at_option "	;;    # Ranges    [0-9]- | [0-9][0-9]- | [0-9][0-9][0-9]- | [0-9][0-9][0-9][0-9]-)	at_range_start=`echo $at_option |tr -d X-`	at_range=`echo " $at_groups_all " | \	  sed -e 's/^.* \('$at_range_start' \)/\1/'`	at_groups="$at_groups$at_range "	;;    -[0-9] | -[0-9][0-9] | -[0-9][0-9][0-9] | -[0-9][0-9][0-9][0-9])	at_range_end=`echo $at_option |tr -d X-`	at_range=`echo " $at_groups_all " | \	  sed -e 's/\( '$at_range_end'\) .*$/\1/'`	at_groups="$at_groups$at_range "	;;    [0-9]-[0-9] | [0-9]-[0-9][0-9] | [0-9]-[0-9][0-9][0-9] | \    [0-9]-[0-9][0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9] | \    [0-9][0-9]-[0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9][0-9][0-9] | \    [0-9][0-9][0-9]-[0-9][0-9][0-9] | \    [0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] | \    [0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] )	at_range_start=`expr $at_option : '\(.*\)-'`	at_range_end=`expr $at_option : '.*-\(.*\)'`	if test $at_range_start -gt $at_range_end; then	  at_tmp=$at_range_end	  at_range_end=$at_range_start	  at_range_start=$at_tmp	fi	at_range=`echo " $at_groups_all " | \	  sed -e 's/^.*\( '$at_range_start' \)/\1/' \	      -e 's/\( '$at_range_end'\) .*$/\1/'`	at_groups="$at_groups$at_range "	;;    # Keywords.    --keywords | -k )	at_prev=--keywords	;;    --keywords=* )	at_groups_selected=$at_help_all	at_save_IFS=$IFS	IFS=,	set X $at_optarg	shift	IFS=$at_save_IFS	for at_keyword	do	  at_invert=	  case $at_keyword in	  '!'*)	    at_invert="-v"	    at_keyword=`expr "X$at_keyword" : 'X!\(.*\)'`	    ;;	  esac	  # It is on purpose that we match the test group titles too.	  at_groups_selected=`echo "$at_groups_selected" |	      grep -i $at_invert "^[1-9][^;]*;.*[; ]$at_keyword[ ;]"`	done	at_groups_selected=`echo "$at_groups_selected" | sed 's/;.*//'`	# Smash the newlines.	at_groups="$at_groups`echo $at_groups_selected` "	;;    *=*)	at_envvar=`expr "x$at_option" : 'x\([^=]*\)='`	# Reject names that are not valid shell variable names.	expr "x$at_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&	  { echo "$as_me: error: invalid variable name: $at_envvar" >&2   { (exit 1); exit 1; }; }	at_value=`echo "$at_optarg" | sed "s/'/'\\\\\\\\''/g"`	eval "$at_envvar='$at_value'"	export $at_envvar	# Propagate to debug scripts.	at_debug_args="$at_debug_args $at_envvar='$at_value'"	;;     *) echo "$as_me: invalid option: $at_option" >&2	echo "Try \`$0 --help' for more information." >&2	exit 1	;;  esacdone# Selected test groups.if test -z "$at_groups"; then  at_groups=$at_groups_allelse  # Sort the tests, removing duplicates:  at_groups=`echo $at_groups | tr ' ' "$as_nl" | sort -nu`  # and add banners.  (Passing at_groups_all is tricky--see the comment  # starting with "Passing at_groups is tricky.")  at_groups=`echo "$at_groups$as_nl $at_groups_all" |    awk 'BEGIN { FS = "@" } # Effectively switch off field splitting.	/^$/ { next }  # Ignore the empty line.	!/ / { groups++; selected[$ 0] = 1; next }	# The last line, containing at_groups_all.	{		n = split($ 0, a, " ")		# If there are several tests, select their banners:		if (groups > 1) {			for (i = 1; i <= n; i++) {				if (a[i] ~ /^banner-/)					banner = a[i]				else if (banner != "" && selected[a[i]] == 1)					selected[banner] = 1			}		}		for (i = 1; i <= n; i++)			if (selected[a[i]] == 1)				list = list " " a[i]		print list	}'`fi# Help message.if $at_help_p; then  cat <<_ATEOFUsage: $0 [OPTION]... [VARIABLE=VALUE]... [TESTS]Run all the tests, or the selected TESTS, given by numeric ranges, andsave a detailed log file.  Upon failure, create debugging scripts.You should not change environment variables unless explicitly passedas command line arguments.  Set \`AUTOTEST_PATH' to select the executablesto exercise.  Each relative directory is expanded as build and sourcedirectories relatively to the top level of this distribution.  E.g.,  $ $0 AUTOTEST_PATH=binpossibly amounts into  PATH=/tmp/foo-1.0/bin:/src/foo-1.0/bin:\$PATH_ATEOFcat <<_ATEOFOperation modes:  -h, --help     print the help message, then exit  -V, --version  print version number, then exit  -c, --clean    remove all the files this test suite might create and exit  -l, --list     describes all the tests, or the selected TESTS_ATEOFcat <<_ATEOFExecution tuning:  -k, --keywords=KEYWORDS	         select the tests matching all the comma-separated KEYWORDS	         multiple \`-k' accumulate; prefixed \`!' negates a KEYWORD  -e, --errexit  abort as soon as a test fails; implies --debug  -v, --verbose  force more detailed output	         default for debugging scripts  -d, --debug    inhibit clean up and top-level logging	         default for debugging scripts  -x, --trace    enable tests shell tracing_ATEOFcat <<_ATEOFReport bugs to <bug-tar@gnu.org>._ATEOF  exit 0fi# List of tests.if $at_list_p; then  cat <<_ATEOFGNU tar 1.20 test suite test groups: NUM: FILE-NAME:LINE     TEST-GROUP-NAME      KEYWORDS_ATEOF  # Passing at_groups is tricky.  We cannot use it to form a literal string  # or regexp because of the limitation of AIX awk.  And Solaris' awk  # doesn't grok more than 99 fields in a record, so we have to use `split'.  echo "$at_groups$as_nl$at_help_all" |    awk 'BEGIN { FS = ";" }	 NR == 1 {	   for (n = split($ 0, a, " "); n; n--) selected[a[n]] = 1	   next	 }	 {	   if (selected[$ 1]) {	     printf " %3d: %-18s %s\n", $ 1, $ 2, $ 3	     if ($ 4) printf "      %s\n", $ 4	   }	 }'  exit 0fiif $at_version_p; then  echo "$as_me (GNU tar 1.20)"  cat <<\_ACEOFCopyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free SoftwareFoundation, Inc.This test suite is free software; the Free Software Foundation givesunlimited permission to copy, distribute and modify it._ACEOF  exit 0fi# Don't take risks: use only absolute directories in PATH.## For stand-alone test suites, AUTOTEST_PATH is relative to `.'.## For embedded test suites, AUTOTEST_PATH is relative to the top level# of the package.  Then expand it into build/src parts, since users# may create executables in both places.AUTOTEST_PATH=`echo $AUTOTEST_PATH | sed "s&:&$PATH_SEPARATOR&g"`at_path=as_save_IFS=$IFS; IFS=$PATH_SEPARATORfor as_dir in $AUTOTEST_PATH $PATHdo  IFS=$as_save_IFS  test -z "$as_dir" && as_dir=.  test -n "$at_path" && at_path=$at_path$PATH_SEPARATORcase $as_dir in  [\\/]* | ?:[\\/]* )    at_path=$at_path$as_dir    ;;  * )    if test -z "$at_top_build_prefix"; then      # Stand-alone test suite.      at_path=$at_path$as_dir    else      # Embedded test suite.      at_path=$at_path$at_top_build_prefix$as_dir$PATH_SEPARATOR      at_path=$at_path$at_top_srcdir/$as_dir    fi    ;;esacdoneIFS=$as_save_IFS# Now build and simplify PATH.## There might be directories that don't exist, but don't redirect# builtins' (eg., cd) stderr directly: Ultrix's sh hates that.PATH=as_save_IFS=$IFS; IFS=$PATH_SEPARATORfor as_dir in $at_pathdo  IFS=$as_save_IFS  test -z "$as_dir" && as_dir=.  as_dir=`(cd "$as_dir" && pwd) 2>/dev/null`test -d "$as_dir" || continuecase $PATH in	          $as_dir                 | \	          $as_dir$PATH_SEPARATOR* | \  *$PATH_SEPARATOR$as_dir                 | \  *$PATH_SEPARATOR$as_dir$PATH_SEPARATOR* ) ;;  '') PATH=$as_dir ;;   *) PATH=$PATH$PATH_SEPARATOR$as_dir ;;esacdoneIFS=$as_save_IFSexport PATH# Setting up the FDs.# 5 is the log file.  Not to be overwritten if `-d'.if $at_debug_p; then  at_suite_log=/dev/nullelse  : >"$at_suite_log"fiexec 5>>"$at_suite_log"# Banners and logs.cat <<\_ASBOX## ------------------------ #### GNU tar 1.20 test suite. #### ------------------------ ##_ASBOX{  cat <<\_ASBOX## ------------------------ #### GNU tar 1.20 test suite. #### ------------------------ ##_ASBOX  echo  echo "$as_me: command line was:"  echo "  $ $0 $at_cli_args"  echo  # Try to find a few ChangeLogs in case it might help determining the  # exact version.  Use the relative dir: if the top dir is a symlink,  # find will not follow it (and options to follow the links are not  # portable), which would result in no output here.  if test -n "$at_top_srcdir"; then    cat <<\_ASBOX## ----------- #### ChangeLogs. #### ----------- ##_ASBOX    echo    for at_file in `find "$at_top_srcdir" -name ChangeLog -print`    do      echo "$as_me: $at_file:"      sed 's/^/| /;10q' $at_file      echo    done    {cat <<_ASUNAME## --------- #### Platform. #### --------- ##hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`uname -m = `(uname -m) 2>/dev/null || echo unknown`uname -r = `(uname -r) 2>/dev/null || echo unknown`uname -s = `(uname -s) 2>/dev/null || echo unknown`uname -v = `(uname -v) 2>/dev/null || echo unknown`/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`_ASUNAMEas_save_IFS=$IFS; IFS=$PATH_SEPARATORfor as_dir in $PATHdo  IFS=$as_save_IFS  test -z "$as_dir" && as_dir=.  echo "PATH: $as_dir"doneIFS=$as_save_IFS}    echo  fi  # Contents of the config files.  for at_file in atconfig atlocal  do    test -r $at_file || continue    echo "$as_me: $at_file:"    sed 's/^/| /' $at_file    echo  done  cat <<\_ASBOX## ---------------- #### Tested programs. #### ---------------- ##_ASBOX  echo} >&5# Report what programs are being tested.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -