aboutsummaryrefslogtreecommitdiff
path: root/testsuite/cpio.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/cpio.tests')
-rwxr-xr-xtestsuite/cpio.tests14
1 files changed, 12 insertions, 2 deletions
diff --git a/testsuite/cpio.tests b/testsuite/cpio.tests
index 408a3fbcf..d42e5145f 100755
--- a/testsuite/cpio.tests
+++ b/testsuite/cpio.tests
@@ -4,6 +4,13 @@
4 4
5. testing.sh 5. testing.sh
6 6
7# check if hexdump supports the '-R' option
8hexdump -R </dev/null >/dev/null 2>&1 || {
9 echo "'hexdump -R' is not available" >&2
10 SKIP=1
11 exit 1
12}
13
7# ls -ln is showing date. Need to remove that, it's variable 14# ls -ln is showing date. Need to remove that, it's variable
8# sed: coalesce spaces 15# sed: coalesce spaces
9# cut: remove date 16# cut: remove date
@@ -24,6 +31,9 @@ hexdump="\
2400000090 14 24 19 07 a4 63 00 3100000090 14 24 19 07 a4 63 00
25" 32"
26 33
34user=$(id -u)
35group=$(id -g)
36
27rm -rf cpio.testdir 37rm -rf cpio.testdir
28 38
29# testing "test name" "options" "expected result" "file input" "stdin" 39# testing "test name" "options" "expected result" "file input" "stdin"
@@ -34,8 +44,8 @@ testing "cpio extracts zero-sized hardlinks" \
34"\ 44"\
351 blocks 451 blocks
360 460
37-rw-r--r-- 2 0 0 0 x 47-rw-r--r-- 2 $user $group 0 x
38-rw-r--r-- 2 0 0 0 y 48-rw-r--r-- 2 $user $group 0 y
39" \ 49" \
40 "" "" 50 "" ""
41 51