diff options
Diffstat (limited to 'testsuite/cpio.tests')
-rwxr-xr-x | testsuite/cpio.tests | 14 |
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 | ||
8 | hexdump -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="\ | |||
24 | 00000090 14 24 19 07 a4 63 00 | 31 | 00000090 14 24 19 07 a4 63 00 |
25 | " | 32 | " |
26 | 33 | ||
34 | user=$(id -u) | ||
35 | group=$(id -g) | ||
36 | |||
27 | rm -rf cpio.testdir | 37 | rm -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 | "\ |
35 | 1 blocks | 45 | 1 blocks |
36 | 0 | 46 | 0 |
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 | ||