📄 testsuite
字号:
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 77echo dwa > tempecho trzy >> tempcat temp | tr '\n' '\0' > temp1echo jeden > file-listcat temp1 >> file-listgenfile -f "jedendwa" || exit 77genfile -f trzytar cfTv archive file-list | sort) ) >"$at_stdout" 2>"$at_stderr" at_status=$?fiat_failed=falseecho >>"$at_stderr"; echo "tar: file-list: file name read contains nul character" | $at_diff - "$at_stderr" || at_failed=:$at_diff expout "$at_stdout" || at_failed=:case $at_status in 77) echo 77 > "$at_status_file"; exit 77;; 0) ;; *) echo "$at_srcdir/T-null.at:28: exit code was $at_status, expected 0" at_failed=:;;esacif $at_failed; then echo 1 > "$at_status_file" exit 1fi$at_traceon # Testing one format is enough $at_traceoff $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 | eval $at_tee_pipe at_status=`cat "$at_status_file"` ;; 7 ) # 7. indexfile.at:26: tar --index-file=FILE --file=- at_setup_line='indexfile.at:26' at_desc="tar --index-file=FILE --file=-" $at_quiet $ECHO_N " 7: tar --index-file=FILE --file=- $ECHO_C" at_xfail=no test -f $XFAILFILE && at_xfail=yes echo "# -*- compilation -*-" >> "$at_group_log" ( echo "7. indexfile.at:26: testing ..." $at_traceon $at_traceoffecho "$at_srcdir/indexfile.at:29:mkdir v7(cd v7TEST_TAR_FORMAT=v7export TEST_TAR_FORMATTAR_OPTIONS=\"-H v7\"export TAR_OPTIONSrm -rf *mkdir directorygenfile --file=directory/a --length=1035echo \"Creating the archive\"tar -c -v -f - --index-file=idx directory > archiveecho \"Testing the archive\"tar -tf archive)"echo indexfile.at:29 >"$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 *mkdir directorygenfile --file=directory/a --length=1035echo "Creating the archive"tar -c -v -f - --index-file=idx directory > archiveecho "Testing the archive"tar -tf archive) ) >"$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 *mkdir directorygenfile --file=directory/a --length=1035echo "Creating the archive"tar -c -v -f - --index-file=idx directory > archiveecho "Testing the archive"tar -tf archive) ) >"$at_stdout" 2>"$at_stderr" at_status=$?fiat_failed=false$at_diff "$at_devnull" "$at_stderr" || at_failed=:echo >>"$at_stdout"; echo "Creating the archiveTesting the archivedirectory/directory/a" | $at_diff - "$at_stdout" || at_failed=:case $at_status in 77) echo 77 > "$at_status_file"; exit 77;; 0) ;; *) echo "$at_srcdir/indexfile.at:29: 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/indexfile.at:29:mkdir oldgnu(cd oldgnuTEST_TAR_FORMAT=oldgnuexport TEST_TAR_FORMATTAR_OPTIONS=\"-H oldgnu\"export TAR_OPTIONSrm -rf *mkdir directorygenfile --file=directory/a --length=1035echo \"Creating the archive\"tar -c -v -f - --index-file=idx directory > archiveecho \"Testing the archive\"tar -tf archive)"echo indexfile.at:29 >"$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 *mkdir directorygenfile --file=directory/a --length=1035echo "Creating the archive"tar -c -v -f - --index-file=idx directory > archiveecho "Testing the archive"tar -tf archive) ) >"$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 *mkdir directorygenfile --file=directory/a --length=1035echo "Creating the archive"tar -c -v -f - --index-file=idx directory > archiveecho "Testing the archive"tar -tf archive) ) >"$at_stdout" 2>"$at_stderr" at_status=$?fiat_failed=false$at_diff "$at_devnull" "$at_stderr" || at_failed=:echo >>"$at_stdout"; echo "Creating the archiveTesting the archivedirectory/directory/a" | $at_diff - "$at_stdout" || at_failed=:case $at_status in 77) echo 77 > "$at_status_file"; exit 77;; 0) ;; *) echo "$at_srcdir/indexfile.at:29: 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/indexfile.at:29:mkdir ustar(cd ustarTEST_TAR_FORMAT=ustarexport TEST_TAR_FORMATTAR_OPTIONS=\"-H ustar\"export TAR_OPTIONSrm -rf *mkdir directorygenfile --file=directory/a --length=1035echo \"Creating the archive\"tar -c -v -f - --index-file=idx directory > archiveecho \"Testing the archive\"tar -tf archive)"echo indexfile.at:29 >"$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 *mkdir directorygenfile --file=directory/a --length=1035echo "Creating the archive"tar -c -v -f - --index-file=idx directory > archiveecho "Testing the archive"tar -tf archive) ) >"$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 *mkdir directorygenfile --file=directory/a --length=1035echo "Creating the archive"tar -c -v -f - --index-file=idx directory > archiveecho "Testing the archive"tar -tf archive) ) >"$at_stdout" 2>"$at_stderr" at_status=$?fiat_failed=false$at_diff "$at_devnull" "$at_stderr" || at_failed=:echo >>"$at_stdout"; echo "Creating the archiveTesting the archivedirectory/directory/a" | $at_diff - "$at_stdout" || at_failed=:case $at_status in 77) echo 77 > "$at_status_file"; exit 77;; 0) ;; *) echo "$at_srcdir/indexfile.at:29: 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/indexfile.at:29:mkdir posix(cd posixTEST_TAR_FORMAT=posixexport TEST_TAR_FORMATTAR_OPTIONS=\"-H posix\"export TAR_OPTIONSrm -rf *mkdir directorygenfile --file=directory/a --length=1035echo \"Creating the archive\"tar -c -v -f - --index-file=idx directory > archiveecho \"Testing the archive\"tar -tf archive)"echo indexfile.at:29 >"$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 posix(cd posixTEST_TAR_FORMAT=posixexport TEST_TAR_FORMATTAR_OPTIONS="-H posix"export TAR_OPTIONSrm -rf *mkdir directorygenfile --file=directory/a --length=1035echo "Creating the archive"tar -c -v -f - --index-file=idx directory > archiveecho "Testing the archive"tar -tf archive) ) >"$at_stdout" 2>"$at_stder1" at_status=$? grep '^ *+' "$at_stder1" >&2 grep -v '^ *+' "$at_stder1" >"$at_stderr"else ( :;mkdir posix(cd posixTEST_TAR_FORMAT=posixexport TEST_TAR_FORMATTAR_OPTIONS="-H posix"export TAR_OPTIONSrm -rf *mkdir directorygenfile --file=directory/a --length=1035echo "Creating the archive"tar -c -v -f - --index-file=idx directory > archiveecho "Testing the archive"tar -tf archive) ) >"$at_stdout" 2>"$at_stderr" at_status=$?fiat_failed=false$at_diff "$at_devnull" "$at_stderr" || at_failed=:echo >>"$at_stdout"; echo "Creating the archiveTesting the archivedirectory/directory/a" | $at_diff - "$at_stdout" || at_failed=:case $at_status in 77) echo 77 > "$at_status_file"; exit 77;; 0) ;; *) echo "$at_srcdir/indexfile.at:29: 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/indexfile.at:29:mkdir gnu(cd gnuTEST_TAR_FORMAT=gnuexport TEST_TAR_FORMATTAR_OPTIONS=\"-H gnu\"export TAR_OPTIONSrm -rf *mkdir directorygenfile --file=directory/a --length=1035echo \"Creating the archive\"tar -c -v -f - --index-file=idx directory > archiveecho \"Testing the archive\"tar -tf archive)"echo indexfile.at:29 >"$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 gnu(cd gnuTEST_TAR_FORMAT=gnuexport TEST_TAR_FORMATTAR_OPTIONS="-H gnu"export TAR_OPTIONSrm -rf *mkdir directorygenfile --file=directory/a --length=1035echo "Creating the archive"tar -c -v -f - --index-file=idx directory > archiveecho "Testing the archive"tar -tf archive) ) >"$at_stdout" 2>"$at_stder1" at_status=$? grep '^ *+' "$at_stder1" >&2 grep -v '^ *+' "$at_stder1" >"$at_stderr"else ( :;mkdir gnu(cd gnuTEST_TAR_FORMAT=gnuexport TEST_TAR_FORMATTAR_OPTIONS="-H gnu"export TAR_OPTIONSrm -rf *mkdir directorygenfile --file=directory/a --length=1035echo "Creating the archive"tar -c -v -f - --index-file=idx directory > archiveecho "Testing the archive"tar -tf archive) ) >"$at_stdout" 2>"$at_stderr" at_status=$?fiat_failed=false$at_diff "$at_devnull" "$at_stderr" || at_failed=:echo >>"$at_stdout"; echo "Creating the archiveTesting the archivedirectory/directory/a" | $at_diff - "$at_stdout" || at_failed=:case $at_status in 77) echo 77 > "$at_status_file"; exit 77;; 0) ;; *) echo "$at_srcdir/indexfile.at:29: exit code was $at_status, expected 0" at_failed=:;;esacif $at_failed; then echo 1 > "$at_status_file" exit 1fi$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"` ;; 8 ) # 8. verbose.at:26: tar cvf - at_setup_line='verbose.at:26' at_desc="tar cvf -" $at_quiet $ECHO_N " 8: tar cvf - $ECHO_C" at_xfail=no test -f $XFAILFILE && a
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -