summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-08-04 14:40:58 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-08-04 14:40:58 +0000
commit5db861a9eb93c4562798654f53022088784f35eb (patch)
tree60572a6fe1df5b7079482ec4490fca559c58fbd2 /testsuite
parent27842288b393e532e5693f2a2bab94fee73a326d (diff)
downloadbusybox-w32-5db861a9eb93c4562798654f53022088784f35eb.tar.gz
busybox-w32-5db861a9eb93c4562798654f53022088784f35eb.tar.bz2
busybox-w32-5db861a9eb93c4562798654f53022088784f35eb.zip
fix some testsuite false positives
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/mdev.tests14
-rw-r--r--testsuite/tar/tar_with_link_with_size2
-rw-r--r--testsuite/tar/tar_with_prefix_fields2
3 files changed, 12 insertions, 6 deletions
diff --git a/testsuite/mdev.tests b/testsuite/mdev.tests
index 5c65ffc46..dad5bddb8 100755
--- a/testsuite/mdev.tests
+++ b/testsuite/mdev.tests
@@ -25,8 +25,10 @@ mkdir mdev.testdir/dev
25mkdir -p mdev.testdir/sys/block/sda 25mkdir -p mdev.testdir/sys/block/sda
26echo "8:0" >mdev.testdir/sys/block/sda/dev 26echo "8:0" >mdev.testdir/sys/block/sda/dev
27 27
28# env - PATH=$PATH: on some systems chroot binary won't otherwise be found
29
28testing "mdev add /block/sda" \ 30testing "mdev add /block/sda" \
29 "env - ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; 31 "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1;
30 ls -ln mdev.testdir/dev | $FILTER_LS" \ 32 ls -ln mdev.testdir/dev | $FILTER_LS" \
31"\ 33"\
32brw-rw---- 1 0 0 8,0 sda 34brw-rw---- 1 0 0 8,0 sda
@@ -38,7 +40,7 @@ rm -rf mdev.testdir/dev/*
38echo ".* 1:1 666" >mdev.testdir/etc/mdev.conf 40echo ".* 1:1 666" >mdev.testdir/etc/mdev.conf
39echo "sda 2:2 444" >>mdev.testdir/etc/mdev.conf 41echo "sda 2:2 444" >>mdev.testdir/etc/mdev.conf
40testing "mdev stops on first rule" \ 42testing "mdev stops on first rule" \
41 "env - ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; 43 "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1;
42 ls -ln mdev.testdir/dev | $FILTER_LS" \ 44 ls -ln mdev.testdir/dev | $FILTER_LS" \
43"\ 45"\
44brw-rw-rw- 1 1 1 8,0 sda 46brw-rw-rw- 1 1 1 8,0 sda
@@ -49,7 +51,7 @@ brw-rw-rw- 1 1 1 8,0 sda
49rm -rf mdev.testdir/dev/* 51rm -rf mdev.testdir/dev/*
50echo "sda 0:0 444 >disk/scsiA" >mdev.testdir/etc/mdev.conf 52echo "sda 0:0 444 >disk/scsiA" >mdev.testdir/etc/mdev.conf
51testing "mdev move/symlink rule '>bar/baz'" \ 53testing "mdev move/symlink rule '>bar/baz'" \
52 "env - ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; 54 "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1;
53 ls -lnR mdev.testdir/dev | $FILTER_LS2" \ 55 ls -lnR mdev.testdir/dev | $FILTER_LS2" \
54"\ 56"\
55mdev.testdir/dev: 57mdev.testdir/dev:
@@ -65,7 +67,7 @@ br--r--r-- 1 0 0 scsiA
65rm -rf mdev.testdir/dev/* 67rm -rf mdev.testdir/dev/*
66echo "sda 0:0 444 >disk/" >mdev.testdir/etc/mdev.conf 68echo "sda 0:0 444 >disk/" >mdev.testdir/etc/mdev.conf
67testing "mdev move/symlink rule '>bar/'" \ 69testing "mdev move/symlink rule '>bar/'" \
68 "env - ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; 70 "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1;
69 ls -lnR mdev.testdir/dev | $FILTER_LS2" \ 71 ls -lnR mdev.testdir/dev | $FILTER_LS2" \
70"\ 72"\
71mdev.testdir/dev: 73mdev.testdir/dev:
@@ -82,7 +84,7 @@ rm -rf mdev.testdir/dev/*
82# here we complicate things by having non-matching group 1 and using %0 84# here we complicate things by having non-matching group 1 and using %0
83echo "s([0-9])*d([a-z]+) 0:0 644 >sd/%2_%0" >mdev.testdir/etc/mdev.conf 85echo "s([0-9])*d([a-z]+) 0:0 644 >sd/%2_%0" >mdev.testdir/etc/mdev.conf
84testing "mdev regexp substring match + replace" \ 86testing "mdev regexp substring match + replace" \
85 "env - ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; 87 "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1;
86 ls -lnR mdev.testdir/dev | $FILTER_LS2" \ 88 ls -lnR mdev.testdir/dev | $FILTER_LS2" \
87"\ 89"\
88mdev.testdir/dev: 90mdev.testdir/dev:
@@ -99,7 +101,7 @@ rm -rf mdev.testdir/dev/*
99# here we complicate things by having non-matching group 1 and using %0 101# here we complicate things by having non-matching group 1 and using %0
100echo "sda 0:0 644 @echo @echo TEST" >mdev.testdir/etc/mdev.conf 102echo "sda 0:0 644 @echo @echo TEST" >mdev.testdir/etc/mdev.conf
101testing "mdev command" \ 103testing "mdev command" \
102 "env - ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; 104 "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1;
103 ls -lnR mdev.testdir/dev | $FILTER_LS" \ 105 ls -lnR mdev.testdir/dev | $FILTER_LS" \
104"\ 106"\
105@echo TEST 107@echo TEST
diff --git a/testsuite/tar/tar_with_link_with_size b/testsuite/tar/tar_with_link_with_size
index 40454f21c..5b61cc70b 100644
--- a/testsuite/tar/tar_with_link_with_size
+++ b/testsuite/tar/tar_with_link_with_size
@@ -23,5 +23,7 @@ res1="\
23lrwxrwxrwx user/group 0 2008-07-19 15:02:37 firmware-372/sources/native/bin/chroot-setup.sh -> qemu-setup.sh 23lrwxrwxrwx user/group 0 2008-07-19 15:02:37 firmware-372/sources/native/bin/chroot-setup.sh -> qemu-setup.sh
24-rwxr-xr-x user/group 512 2008-07-19 15:02:37 firmware-372/sources/native/bin/qemu-setup.sh" 24-rwxr-xr-x user/group 512 2008-07-19 15:02:37 firmware-372/sources/native/bin/qemu-setup.sh"
25 25
26export TZ=UTC-2
27
26t=`tar1_bz2 | bunzip2 | busybox tar tvf -` 28t=`tar1_bz2 | bunzip2 | busybox tar tvf -`
27test x"$res1" = x"$t" 29test x"$res1" = x"$t"
diff --git a/testsuite/tar/tar_with_prefix_fields b/testsuite/tar/tar_with_prefix_fields
index fbc35ab15..1c7124d52 100644
--- a/testsuite/tar/tar_with_prefix_fields
+++ b/testsuite/tar/tar_with_prefix_fields
@@ -244,6 +244,8 @@ tar2_bz2()
244# also lacking proper terminating zeroed blocks. But exitcode is 0. 244# also lacking proper terminating zeroed blocks. But exitcode is 0.
245# This is intended. 245# This is intended.
246 246
247export TZ=UTC-1
248
247# Case 1: long name, with path in prefix field 249# Case 1: long name, with path in prefix field
248res1='-rw-r--r-- fm3/users 9869 2007-03-12 10:44:54 VirtualBox-1.5.6_OSE/src/libs/xpcom18a4/ipc/ipcd/extensions/transmngr/public/ipcITransactionService.idl' 250res1='-rw-r--r-- fm3/users 9869 2007-03-12 10:44:54 VirtualBox-1.5.6_OSE/src/libs/xpcom18a4/ipc/ipcd/extensions/transmngr/public/ipcITransactionService.idl'
249t=`tar1_bz2 | bunzip2 | busybox tar tvf -` 251t=`tar1_bz2 | bunzip2 | busybox tar tvf -`