Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/testsuite/cpio.tests

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 985 by niro, Sun May 30 11:32:42 2010 UTC revision 986 by niro, Sun May 30 11:40:11 2010 UTC
# Line 32  rm -rf cpio.testdir cpio.testdir2 2>/dev Line 32  rm -rf cpio.testdir cpio.testdir2 2>/dev
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
# Line 45  ls -ln cpio.testdir | $FILTER_LS" \ Line 45  ls -ln cpio.testdir | $FILTER_LS" \
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  "\  "\
# Line 70  ln cpio.testdir/nonempty cpio.testdir/no Line 70  ln cpio.testdir/nonempty cpio.testdir/no
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
# Line 87  ls -ln cpio.testdir2/cpio.testdir | $FIL Line 87  ls -ln cpio.testdir2/cpio.testdir | $FIL
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

Legend:
Removed from v.985  
changed lines
  Added in v.986