aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2021-06-28 07:46:32 +0100
committerRon Yorston <rmy@pobox.com>2021-06-28 07:46:32 +0100
commite1ad66c0b8fd58a7158d40771175a7dab224202d (patch)
tree959d687eee9637151ad5798322586174de331141 /testsuite
parent0fdf99bee07b6c38795eb5415b5e337ab82cfba8 (diff)
parent5dbbd0a6f52befe6bc57baf97d39168e595197f1 (diff)
downloadbusybox-w32-e1ad66c0b8fd58a7158d40771175a7dab224202d.tar.gz
busybox-w32-e1ad66c0b8fd58a7158d40771175a7dab224202d.tar.bz2
busybox-w32-e1ad66c0b8fd58a7158d40771175a7dab224202d.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/mv/mv-files-to-dir-216
-rwxr-xr-xtestsuite/unlzma.tests17
-rw-r--r--testsuite/unlzma_issue_3.lzmabin0 -> 27 bytes
3 files changed, 29 insertions, 4 deletions
diff --git a/testsuite/mv/mv-files-to-dir-2 b/testsuite/mv/mv-files-to-dir-2
new file mode 100644
index 000000000..e189ebb6f
--- /dev/null
+++ b/testsuite/mv/mv-files-to-dir-2
@@ -0,0 +1,16 @@
1echo file number one > file1
2echo file number two > file2
3ln -s file2 link1
4mkdir dir1
5TZ=UTC0 touch -d '2000-01-30 05:24:08' dir1/file3
6mkdir there
7busybox mv -t there file1 file2 link1 dir1
8test -f there/file1
9test -f there/file2
10test -f there/dir1/file3
11test -L there/link1
12test xfile2 = x`readlink there/link1`
13test ! -e file1
14test ! -e file2
15test ! -e link1
16test ! -e dir1/file3
diff --git a/testsuite/unlzma.tests b/testsuite/unlzma.tests
index 0e98afe09..fcc6e9441 100755
--- a/testsuite/unlzma.tests
+++ b/testsuite/unlzma.tests
@@ -8,14 +8,23 @@
8 8
9# Damaged encrypted streams 9# Damaged encrypted streams
10testing "unlzma (bad archive 1)" \ 10testing "unlzma (bad archive 1)" \
11 "unlzma <unlzma_issue_1.lzma >/dev/null; echo \$?" \ 11 "unlzma <unlzma_issue_1.lzma 2>&1 >/dev/null; echo \$?" \
12"1 12"unlzma: corrupted data
131
13" "" "" 14" "" ""
14 15
15# Damaged encrypted streams 16# Damaged encrypted streams
16testing "unlzma (bad archive 2)" \ 17testing "unlzma (bad archive 2)" \
17 "unlzma <unlzma_issue_2.lzma >/dev/null; echo \$?" \ 18 "unlzma <unlzma_issue_2.lzma 2>&1 >/dev/null; echo \$?" \
18"1 19"unlzma: corrupted data
201
21" "" ""
22
23# Damaged encrypted streams
24testing "unlzma (bad archive 3)" \
25 "unlzma <unlzma_issue_3.lzma 2>&1 >/dev/null; echo \$?" \
26"unlzma: corrupted data
271
19" "" "" 28" "" ""
20 29
21exit $FAILCOUNT 30exit $FAILCOUNT
diff --git a/testsuite/unlzma_issue_3.lzma b/testsuite/unlzma_issue_3.lzma
new file mode 100644
index 000000000..cc60f29e4
--- /dev/null
+++ b/testsuite/unlzma_issue_3.lzma
Binary files differ