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

📄 testsuite

📁 gnu tar 源码包。 tar 软件是 Unix 系统下的一个打包软件
💻
📖 第 1 页 / 共 5 页
字号:
for at_program in : $at_testeddo  test "$at_program" = : && continue  as_save_IFS=$IFS; IFS=$PATH_SEPARATORfor as_dir in $PATHdo  IFS=$as_save_IFS  test -z "$as_dir" && as_dir=.  test -f "$as_dir/$at_program" && breakdoneIFS=$as_save_IFS  if test -f "$as_dir/$at_program"; then    {      echo "$at_srcdir/testsuite.at:92: $as_dir/$at_program --version"      "$as_dir/$at_program" --version      echo    } >&5 2>&1  else    { { echo "$as_me:$LINENO: error: cannot find $at_program" >&5echo "$as_me: error: cannot find $at_program" >&2;}   { (exit 1); exit 1; }; }  fidone{  cat <<\_ASBOX## ------------------ #### Running the tests. #### ------------------ ##_ASBOX} >&5at_start_date=`date`at_start_time=`date +%s 2>/dev/null`echo "$as_me: starting at: $at_start_date" >&5at_xpass_list=at_xfail_list=at_pass_list=at_fail_list=at_skip_list=at_group_count=0# Create the master directory if it doesn't already exist.test -d "$at_suite_dir" ||  mkdir "$at_suite_dir" ||  { { echo "$as_me:$LINENO: error: cannot create '$at_suite_dir'" >&5echo "$as_me: error: cannot create '$at_suite_dir'" >&2;}   { (exit 1); exit 1; }; }# Can we diff with `/dev/null'?  DU 5.0 refuses.if diff /dev/null /dev/null >/dev/null 2>&1; then  at_devnull=/dev/nullelse  at_devnull=$at_suite_dir/devnull  >"$at_devnull"fi# Use `diff -u' when possible.if at_diff=`diff -u "$at_devnull" "$at_devnull" 2>&1` && test -z "$at_diff"then  at_diff='diff -u'else  at_diff=difffifor at_group in $at_groupsdo  # Be sure to come back to the top test directory.  cd "$at_suite_dir"  case $at_group in    banner-*)      at_group_log=$at_suite_log      ;;    *)      at_group_normalized=$at_group  while :; do    case $at_group_normalized in #(    $at_format*) break;;    esac    at_group_normalized=0$at_group_normalized  done      # Create a fresh directory for the next test group, and enter.      at_group_dir=$at_suite_dir/$at_group_normalized      at_group_log=$at_group_dir/$as_me.log      if test -d "$at_group_dir"; then	find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;	rm -fr "$at_group_dir"      fi      # Be tolerant if the above `rm' was not able to remove the directory.      { as_dir=$at_group_dir  case $as_dir in #(  -*) as_dir=./$as_dir;;  esac  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {    as_dirs=    while :; do      case $as_dir in #(      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(      *) as_qdir=$as_dir;;      esac      as_dirs="'$as_qdir' $as_dirs"      as_dir=`$as_dirname -- "$as_dir" ||$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \	 X"$as_dir" : 'X\(//\)[^/]' \| \	 X"$as_dir" : 'X\(//\)$' \| \	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||echo X"$as_dir" |    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{	    s//\1/	    q	  }	  /^X\(\/\/\)[^/].*/{	    s//\1/	    q	  }	  /^X\(\/\/\)$/{	    s//\1/	    q	  }	  /^X\(\/\).*/{	    s//\1/	    q	  }	  s/.*/./; q'`      test -d "$as_dir" && break    done    test -z "$as_dirs" || eval "mkdir $as_dirs"  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5echo "$as_me: error: cannot create directory $as_dir" >&2;}   { (exit 1); exit 1; }; }; }      cd $at_group_dir      ;;  esac  echo 0 > "$at_status_file"  # Clearly separate the test groups when verbose.  test $at_group_count != 0 && $at_verbose  # In verbose mode, append to the log file *and* show on  # the standard output; in quiet mode only write to the log  if test $at_verbose = echo; then    at_tee_pipe='tee -a "$at_group_log"'  else    at_tee_pipe='cat >> "$at_group_log"'  fi  case $at_group in  1 ) # 1. version.at:19: tar version    at_setup_line='version.at:19'    at_desc="tar version"    $at_quiet $ECHO_N "  1: tar version                                    $ECHO_C"    at_xfail=no    echo "#                             -*- compilation -*-" >> "$at_group_log"    (      echo "1. version.at:19: testing ..."      $at_traceon$at_traceoffecho "$at_srcdir/version.at:21: tar --version | sed 1q"echo version.at:21 >"$at_check_line_file"at_trace_this=if test -n "$at_traceon"; then    at_trace_this=yesfiif test -n "$at_trace_this"; then    ( $at_traceon; tar --version | sed 1q ) >"$at_stdout" 2>"$at_stder1"    at_status=$?    grep '^ *+' "$at_stder1" >&2    grep -v '^ *+' "$at_stder1" >"$at_stderr"else    ( :; tar --version | sed 1q ) >"$at_stdout" 2>"$at_stderr"    at_status=$?fiat_failed=false$at_diff "$at_devnull" "$at_stderr" || at_failed=:echo >>"$at_stdout"; echo "tar (GNU tar) 1.20" | $at_diff - "$at_stdout" || at_failed=:case $at_status in   77) echo 77 > "$at_status_file"; exit 77;;   0) ;;   *) echo "$at_srcdir/version.at:21: exit code was $at_status, expected 0"      at_failed=:;;esacif $at_failed; then  cat >$XFAILFILE <<'_EOT'==============================================================WARNING: Not using the proper version, *all* checks dubious...==============================================================_EOT  echo 1 > "$at_status_file"  exit 1else  rm -f $XFAILFILEfi$at_traceon      $at_traceoff      $at_times_p && times >"$at_times_file"    ) 5>&1 2>&1 | eval $at_tee_pipe    at_status=`cat "$at_status_file"`    ;;  2 ) # 2. pipe.at:29: decompressing from stdin    at_setup_line='pipe.at:29'    at_desc="decompressing from stdin"    $at_quiet $ECHO_N "  2: decompressing from stdin                       $ECHO_C"    at_xfail=no      test -f $XFAILFILE && at_xfail=yes    echo "#                             -*- compilation -*-" >> "$at_group_log"    (      echo "2. pipe.at:29: testing ..."      $at_traceon  $at_traceoffecho "$at_srcdir/pipe.at:33:mkdir v7(cd v7TEST_TAR_FORMAT=v7export TEST_TAR_FORMATTAR_OPTIONS=\"-H v7\"export TAR_OPTIONSrm -rf *test -z "`sort < /dev/null 2>&1`" || exit 77mkdir directorygenfile --length 10240 --pattern zeros --file directory/file1genfile --length 13 --file directory/file2tar cf archive directory|sortmv directory origcat archive | tar xfv - | sortecho \"separator\"cmp orig/file1 directory/file1echo \"separator\"cmp orig/file2 directory/file2)"echo pipe.at:33 >"$at_check_line_file"at_trace_this=if test -n "$at_traceon"; then    echo 'Not enabling shell tracing (command contains an embedded newline)'fiif test -n "$at_trace_this"; then    ( $at_traceon;mkdir v7(cd v7TEST_TAR_FORMAT=v7export TEST_TAR_FORMATTAR_OPTIONS="-H v7"export TAR_OPTIONSrm -rf *test -z "`sort < /dev/null 2>&1`" || exit 77mkdir directorygenfile --length 10240 --pattern zeros --file directory/file1genfile --length 13 --file directory/file2tar cf archive directory|sortmv directory origcat archive | tar xfv - | sortecho "separator"cmp orig/file1 directory/file1echo "separator"cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"    at_status=$?    grep '^ *+' "$at_stder1" >&2    grep -v '^ *+' "$at_stder1" >"$at_stderr"else    ( :;mkdir v7(cd v7TEST_TAR_FORMAT=v7export TEST_TAR_FORMATTAR_OPTIONS="-H v7"export TAR_OPTIONSrm -rf *test -z "`sort < /dev/null 2>&1`" || exit 77mkdir directorygenfile --length 10240 --pattern zeros --file directory/file1genfile --length 13 --file directory/file2tar cf archive directory|sortmv directory origcat archive | tar xfv - | sortecho "separator"cmp orig/file1 directory/file1echo "separator"cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"    at_status=$?fiat_failed=false$at_diff "$at_devnull" "$at_stderr" || at_failed=:echo >>"$at_stdout"; echo "directory/directory/file1directory/file2separatorseparator" | $at_diff - "$at_stdout" || at_failed=:case $at_status in   77) echo 77 > "$at_status_file"; exit 77;;   0) ;;   *) echo "$at_srcdir/pipe.at:33: exit code was $at_status, expected 0"      at_failed=:;;esacif $at_failed; then  echo 1 > "$at_status_file"  exit 1fi$at_traceon$at_traceoffecho "$at_srcdir/pipe.at:33:mkdir oldgnu(cd oldgnuTEST_TAR_FORMAT=oldgnuexport TEST_TAR_FORMATTAR_OPTIONS=\"-H oldgnu\"export TAR_OPTIONSrm -rf *test -z "`sort < /dev/null 2>&1`" || exit 77mkdir directorygenfile --length 10240 --pattern zeros --file directory/file1genfile --length 13 --file directory/file2tar cf archive directory|sortmv directory origcat archive | tar xfv - | sortecho \"separator\"cmp orig/file1 directory/file1echo \"separator\"cmp orig/file2 directory/file2)"echo pipe.at:33 >"$at_check_line_file"at_trace_this=if test -n "$at_traceon"; then    echo 'Not enabling shell tracing (command contains an embedded newline)'fiif test -n "$at_trace_this"; then    ( $at_traceon;mkdir oldgnu(cd oldgnuTEST_TAR_FORMAT=oldgnuexport TEST_TAR_FORMATTAR_OPTIONS="-H oldgnu"export TAR_OPTIONSrm -rf *test -z "`sort < /dev/null 2>&1`" || exit 77mkdir directorygenfile --length 10240 --pattern zeros --file directory/file1genfile --length 13 --file directory/file2tar cf archive directory|sortmv directory origcat archive | tar xfv - | sortecho "separator"cmp orig/file1 directory/file1echo "separator"cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"    at_status=$?    grep '^ *+' "$at_stder1" >&2    grep -v '^ *+' "$at_stder1" >"$at_stderr"else    ( :;mkdir oldgnu(cd oldgnuTEST_TAR_FORMAT=oldgnuexport TEST_TAR_FORMATTAR_OPTIONS="-H oldgnu"export TAR_OPTIONSrm -rf *test -z "`sort < /dev/null 2>&1`" || exit 77mkdir directorygenfile --length 10240 --pattern zeros --file directory/file1genfile --length 13 --file directory/file2tar cf archive directory|sortmv directory origcat archive | tar xfv - | sortecho "separator"cmp orig/file1 directory/file1echo "separator"cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"    at_status=$?fiat_failed=false$at_diff "$at_devnull" "$at_stderr" || at_failed=:echo >>"$at_stdout"; echo "directory/directory/file1directory/file2separatorseparator" | $at_diff - "$at_stdout" || at_failed=:case $at_status in   77) echo 77 > "$at_status_file"; exit 77;;   0) ;;   *) echo "$at_srcdir/pipe.at:33: exit code was $at_status, expected 0"      at_failed=:;;esacif $at_failed; then  echo 1 > "$at_status_file"  exit 1fi$at_traceon$at_traceoffecho "$at_srcdir/pipe.at:33:mkdir ustar(cd ustarTEST_TAR_FORMAT=ustarexport TEST_TAR_FORMATTAR_OPTIONS=\"-H ustar\"export TAR_OPTIONSrm -rf *test -z "`sort < /dev/null 2>&1`" || exit 77mkdir directorygenfile --length 10240 --pattern zeros --file directory/file1genfile --length 13 --file directory/file2tar cf archive directory|sortmv directory origcat archive | tar xfv - | sortecho \"separator\"cmp orig/file1 directory/file1echo \"separator\"cmp orig/file2 directory/file2)"echo pipe.at:33 >"$at_check_line_file"at_trace_this=if test -n "$at_traceon"; then    echo 'Not enabling shell tracing (command contains an embedded newline)'fiif test -n "$at_trace_this"; then    ( $at_traceon;mkdir ustar(cd ustarTEST_TAR_FORMAT=ustarexport TEST_TAR_FORMATTAR_OPTIONS="-H ustar"export TAR_OPTIONSrm -rf *test -z "`sort < /dev/null 2>&1`" || exit 77mkdir directorygenfile --length 10240 --pattern zeros --file directory/file1genfile --length 13 --file directory/file2tar cf archive directory|sortmv directory origcat archive | tar xfv - | sortecho "separator"cmp orig/file1 directory/file1echo "separator"cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"    at_status=$?    grep '^ *+' "$at_stder1" >&2    grep -v '^ *+' "$at_stder1" >"$at_stderr"else    ( :;mkdir ustar(cd ustarTEST_TAR_FORMAT=ustarexport TEST_TAR_FORMATTAR_OPTIONS="-H ustar"export TAR_OPTIONSrm -rf *test -z "`sort < /dev/null 2>&1`" || exit 77mkdir directorygenfile --length 10240 --pattern zeros --file directory/file1genfile --length 13 --file directory/file2tar cf archive directory|sortmv directory origcat archive | tar xfv - | sortecho "separator"cmp orig/file1 directory/file1echo "separator"cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"    at_status=$?fiat_failed=false$at_diff "$at_devnull" "$at_stderr" || at_failed=:echo >>"$at_stdout"; echo "directory/directory/file1directory/file2separatorseparator" | $at_diff - "$at_stdout" || at_failed=:case $at_status in   77) echo 77 > "$at_status_file"; exit 77;;   0) ;;   *) echo "$at_srcdir/pipe.at:33: exit code was $at_status, expected 0"      at_failed=:;;esacif $at_failed; then  echo 1 > "$at_status_file"  exit 1fi$at_traceon$at_traceoffecho "$at_srcdir/pipe.at:33:mkdir posix(cd posixTEST_TAR_FORMAT=posix

⌨️ 快捷键说明

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