diff options
-rwxr-xr-x | testsuite/cpio.tests | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/cpio.tests b/testsuite/cpio.tests index 4cd441a60..d44c95b10 100755 --- a/testsuite/cpio.tests +++ b/testsuite/cpio.tests | |||
@@ -127,6 +127,30 @@ testing "cpio extracts in existing directory" \ | |||
127 | " "" "" | 127 | " "" "" |
128 | SKIP= | 128 | SKIP= |
129 | 129 | ||
130 | testing "cpio uses by default uid/gid" \ | ||
131 | "echo $0 | cpio -o -H newc | cpio -tv 2>&1 | tail -n +2 | awk ' { print \$2 } '; echo \$?" \ | ||
132 | "\ | ||
133 | $user/$group | ||
134 | 0 | ||
135 | " "" "" | ||
136 | SKIP= | ||
137 | |||
138 | testing "cpio -R with create" \ | ||
139 | "echo $0 | cpio -o -H newc -R 1234:5678 | cpio -tv 2>&1 | tail -n +2 | awk ' { print \$2 } '; echo \$?" \ | ||
140 | "\ | ||
141 | 1234/5678 | ||
142 | 0 | ||
143 | " "" "" | ||
144 | SKIP= | ||
145 | |||
146 | testing "cpio -R with extract" \ | ||
147 | "echo $0 | cpio -o -H newc | cpio -tv -R 8765:4321 2>&1 | tail -n +2 | awk ' { print \$2 } '; echo \$?" \ | ||
148 | "\ | ||
149 | 8765/4321 | ||
150 | 0 | ||
151 | " "" "" | ||
152 | SKIP= | ||
153 | |||
130 | # Clean up | 154 | # Clean up |
131 | rm -rf cpio.testdir cpio.testdir2 2>/dev/null | 155 | rm -rf cpio.testdir cpio.testdir2 2>/dev/null |
132 | 156 | ||