32 |
# testing "test name" "command" "expected result" "file input" "stdin" |
# testing "test name" "command" "expected result" "file input" "stdin" |
33 |
|
|
34 |
testing "cpio extracts zero-sized hardlinks" \ |
testing "cpio extracts zero-sized hardlinks" \ |
35 |
"$ECHO -ne '$hexdump' | bzcat | cpio -i; echo \$?; |
"$ECHO -ne '$hexdump' | bzcat | cpio -i 2>&1; echo \$?; |
36 |
ls -ln cpio.testdir | $FILTER_LS" \ |
ls -ln cpio.testdir | $FILTER_LS" \ |
37 |
"\ |
"\ |
38 |
1 blocks |
1 blocks |
45 |
|
|
46 |
test x"$SKIP_KNOWN_BUGS" = x"" && { |
test x"$SKIP_KNOWN_BUGS" = x"" && { |
47 |
# Currently fails. Numerous buglets: "1 blocks" versus "1 block", |
# Currently fails. Numerous buglets: "1 blocks" versus "1 block", |
48 |
# "1 block" must go to stderr, does not list cpio.testdir/x and cpio.testdir/y |
# does not list cpio.testdir/x and cpio.testdir/y |
49 |
testing "cpio lists hardlinks" \ |
testing "cpio lists hardlinks" \ |
50 |
"$ECHO -ne '$hexdump' | bzcat | cpio -t 2>&1; echo \$?" \ |
"$ECHO -ne '$hexdump' | bzcat | cpio -t 2>&1; echo \$?" \ |
51 |
"\ |
"\ |
70 |
mkdir cpio.testdir2 |
mkdir cpio.testdir2 |
71 |
|
|
72 |
testing "cpio extracts zero-sized hardlinks 2" \ |
testing "cpio extracts zero-sized hardlinks 2" \ |
73 |
"find cpio.testdir | cpio -H newc --create | (cd cpio.testdir2 && cpio -i); echo \$?; |
"find cpio.testdir | cpio -H newc --create | (cd cpio.testdir2 && cpio -i 2>&1); echo \$?; |
74 |
ls -ln cpio.testdir2/cpio.testdir | $FILTER_LS" \ |
ls -ln cpio.testdir2/cpio.testdir | $FILTER_LS" \ |
75 |
"\ |
"\ |
76 |
2 blocks |
2 blocks |
87 |
# Was trying to create "/usr/bin", correct is "usr/bin". |
# Was trying to create "/usr/bin", correct is "usr/bin". |
88 |
rm -rf cpio.testdir |
rm -rf cpio.testdir |
89 |
testing "cpio -p with absolute paths" \ |
testing "cpio -p with absolute paths" \ |
90 |
"echo /usr/bin | cpio -dp cpio.testdir; echo \$?; |
"echo /usr/bin | cpio -dp cpio.testdir 2>&1; echo \$?; |
91 |
ls cpio.testdir" \ |
ls cpio.testdir" \ |
92 |
"\ |
"\ |
93 |
1 blocks |
1 blocks |