aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-09-17 16:28:10 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-09-17 16:28:10 +0000
commit9213a9e0f2d8fd638ecd02e2628d96dd5c7d233e (patch)
tree94c3c0678d1349497abe2db6004e9331e50f6d37 /testsuite
parenta6127aacef047ed7661722705b052811fbe7f467 (diff)
downloadbusybox-w32-9213a9e0f2d8fd638ecd02e2628d96dd5c7d233e.tar.gz
busybox-w32-9213a9e0f2d8fd638ecd02e2628d96dd5c7d233e.tar.bz2
busybox-w32-9213a9e0f2d8fd638ecd02e2628d96dd5c7d233e.zip
whitespace cleanup
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/cp/cp-dir-create-dir6
-rw-r--r--testsuite/cp/cp-dir-existing-dir6
-rwxr-xr-xtestsuite/grep.tests2
-rwxr-xr-xtestsuite/mount.testroot2
-rwxr-xr-xtestsuite/pidof.tests4
-rwxr-xr-xtestsuite/readlink.tests2
-rwxr-xr-xtestsuite/sed.tests4
-rwxr-xr-xtestsuite/sort.tests4
-rwxr-xr-xtestsuite/testing.sh2
-rw-r--r--testsuite/tr/tr-works2
-rwxr-xr-xtestsuite/uniq.tests2
11 files changed, 18 insertions, 18 deletions
diff --git a/testsuite/cp/cp-dir-create-dir b/testsuite/cp/cp-dir-create-dir
index 2c89af67e..a8d7b50a5 100644
--- a/testsuite/cp/cp-dir-create-dir
+++ b/testsuite/cp/cp-dir-create-dir
@@ -1,4 +1,4 @@
1mkdir bar 1mkdir bar
2touch bar/baz 2touch bar/baz
3busybox cp -R bar foo 3busybox cp -R bar foo
4test -f foo/baz 4test -f foo/baz
diff --git a/testsuite/cp/cp-dir-existing-dir b/testsuite/cp/cp-dir-existing-dir
index 5ba3f8e33..4c788ba73 100644
--- a/testsuite/cp/cp-dir-existing-dir
+++ b/testsuite/cp/cp-dir-existing-dir
@@ -1,5 +1,5 @@
1mkdir bar 1mkdir bar
2touch bar/baz 2touch bar/baz
3mkdir foo 3mkdir foo
4busybox cp -R bar foo 4busybox cp -R bar foo
5test -f foo/bar/baz 5test -f foo/bar/baz
diff --git a/testsuite/grep.tests b/testsuite/grep.tests
index 0654905d2..ef0de482b 100755
--- a/testsuite/grep.tests
+++ b/testsuite/grep.tests
@@ -4,7 +4,7 @@
4# Copyright 2005 by Rob Landley <rob@landley.net> 4# Copyright 2005 by Rob Landley <rob@landley.net>
5# Licensed under GPL v2, see file LICENSE for details. 5# Licensed under GPL v2, see file LICENSE for details.
6 6
7# AUDIT: 7# AUDIT:
8 8
9. testing.sh 9. testing.sh
10 10
diff --git a/testsuite/mount.testroot b/testsuite/mount.testroot
index 4ab6b94bc..e18d0461d 100755
--- a/testsuite/mount.testroot
+++ b/testsuite/mount.testroot
@@ -86,7 +86,7 @@ testing "mount remount nonexistent directory" \
86 86
87# Fun with mount -a 87# Fun with mount -a
88 88
89testing "mount -a no fstab" "mount -a 2>/dev/null || echo yes" "yes\n" "" "" 89testing "mount -a no fstab" "mount -a 2>/dev/null || echo yes" "yes\n" "" ""
90 90
91umount /proc 91umount /proc
92 92
diff --git a/testsuite/pidof.tests b/testsuite/pidof.tests
index 831dd2483..bfde26e2c 100755
--- a/testsuite/pidof.tests
+++ b/testsuite/pidof.tests
@@ -4,7 +4,7 @@
4# Copyright 2005 by Bernhard Fischer 4# Copyright 2005 by Bernhard Fischer
5# Licensed under GPL v2, see file LICENSE for details. 5# Licensed under GPL v2, see file LICENSE for details.
6 6
7# AUDIT: 7# AUDIT:
8 8
9. testing.sh 9. testing.sh
10 10
@@ -24,6 +24,6 @@ testing "pidof -s" "pidof -s init" "1\n" "" ""
24optional FEATURE_PIDOF_OMIT 24optional FEATURE_PIDOF_OMIT
25testing "pidof -o %PPID" "pidof -o %PPID pidof.tests | grep -o -w $$" "" "" "" 25testing "pidof -o %PPID" "pidof -o %PPID pidof.tests | grep -o -w $$" "" "" ""
26testing "pidof -o %PPID NOP" "pidof -o %PPID -s init" "1\n" "" "" 26testing "pidof -o %PPID NOP" "pidof -o %PPID -s init" "1\n" "" ""
27testing "pidof -o init" "pidof -o 1 init | grep -o -w 1" "" "" "" 27testing "pidof -o init" "pidof -o 1 init | grep -o -w 1" "" "" ""
28 28
29exit $FAILCOUNT 29exit $FAILCOUNT
diff --git a/testsuite/readlink.tests b/testsuite/readlink.tests
index fc04702d3..0faa6ed0c 100755
--- a/testsuite/readlink.tests
+++ b/testsuite/readlink.tests
@@ -28,5 +28,5 @@ testing "readlink -f on a wierd dir" "readlink -f $TESTDIR/../$TESTFILE" "$PWD/$
28 28
29 29
30# clean up 30# clean up
31rm -r "$TESTLINK" "$TESTDIR" 31rm -r "$TESTLINK" "$TESTDIR"
32 32
diff --git a/testsuite/sed.tests b/testsuite/sed.tests
index 9d2be5570..2a0d4eacf 100755
--- a/testsuite/sed.tests
+++ b/testsuite/sed.tests
@@ -116,7 +116,7 @@ testing "sed leave off trailing newline" "sed -e 's/woo/bang/' input -" \
116testing "sed autoinsert newline" "sed -e 's/woo/bang/' input -" "bang\nbang" \ 116testing "sed autoinsert newline" "sed -e 's/woo/bang/' input -" "bang\nbang" \
117 "woo" "woo" 117 "woo" "woo"
118testing "sed empty file plus cat" "sed -e 's/nohit//' input -" "one\ntwo" \ 118testing "sed empty file plus cat" "sed -e 's/nohit//' input -" "one\ntwo" \
119 "" "one\ntwo" 119 "" "one\ntwo"
120testing "sed cat plus empty file" "sed -e 's/nohit//' input -" "one\ntwo" \ 120testing "sed cat plus empty file" "sed -e 's/nohit//' input -" "one\ntwo" \
121 "one\ntwo" "" 121 "one\ntwo" ""
122testing "sed append autoinserts newline" "sed -e '/woot/a woo' -" \ 122testing "sed append autoinserts newline" "sed -e '/woot/a woo' -" \
@@ -138,7 +138,7 @@ testing "sed selective matches noinsert newline" \
138 "c no\nd no" 138 "c no\nd no"
139testing "sed clusternewline" \ 139testing "sed clusternewline" \
140 "sed -e '/one/a 111' -e '/two/i 222' -e p input -" \ 140 "sed -e '/one/a 111' -e '/two/i 222' -e p input -" \
141 "one\none\n111\n222\ntwo\ntwo" "one" "two" 141 "one\none\n111\n222\ntwo\ntwo" "one" "two"
142 142
143# Test end-of-file matching behavior 143# Test end-of-file matching behavior
144 144
diff --git a/testsuite/sort.tests b/testsuite/sort.tests
index cd2e291b2..5a4937b58 100755
--- a/testsuite/sort.tests
+++ b/testsuite/sort.tests
@@ -56,7 +56,7 @@ testing "sort key range with numeric option and global reverse" \
567 3 42 soup 567 3 42 soup
57" "$data" "" 57" "$data" ""
58 58
59# 59#
60 60
61testing "sort key range with multiple options" "sort -k2,3rn input" \ 61testing "sort key range with multiple options" "sort -k2,3rn input" \
62"7 3 42 soup 62"7 3 42 soup
@@ -67,7 +67,7 @@ egg 1 2 papyrus
67" "$data" "" 67" "$data" ""
68 68
69testing "sort key doesn't strip leading blanks, disables fallback global sort" \ 69testing "sort key doesn't strip leading blanks, disables fallback global sort" \
70"sort -n -k2 -t ' '" " a \n 1 \n 2 \n" "" " 2 \n 1 \n a \n" 70"sort -n -k2 -t ' '" " a \n 1 \n 2 \n" "" " 2 \n 1 \n a \n"
71 71
72testing "sort key edge case with -t" "sort -n -k4 -t/" \ 72testing "sort key edge case with -t" "sort -n -k4 -t/" \
73"/usr/lib/finish-install.d/1 73"/usr/lib/finish-install.d/1
diff --git a/testsuite/testing.sh b/testsuite/testing.sh
index 8bd23d803..e253e1aa6 100755
--- a/testsuite/testing.sh
+++ b/testsuite/testing.sh
@@ -76,7 +76,7 @@ testing ()
76 echo -ne "$5" | eval "$2" > actual 76 echo -ne "$5" | eval "$2" > actual
77 RETVAL=$? 77 RETVAL=$?
78 78
79 cmp expected actual > /dev/null 79 cmp expected actual > /dev/null
80 if [ $? -ne 0 ] 80 if [ $? -ne 0 ]
81 then 81 then
82 FAILCOUNT=$[$FAILCOUNT+1] 82 FAILCOUNT=$[$FAILCOUNT+1]
diff --git a/testsuite/tr/tr-works b/testsuite/tr/tr-works
index b7a6e8df7..9b2e90e42 100644
--- a/testsuite/tr/tr-works
+++ b/testsuite/tr/tr-works
@@ -7,7 +7,7 @@ run_tr ()
7tr_test () 7tr_test ()
8{ 8{
9 run_tr "cbaab" abc zyx 9 run_tr "cbaab" abc zyx
10 run_tr "TESTING A B C" '[A-Z]' '[a-z]' 10 run_tr "TESTING A B C" '[A-Z]' '[a-z]'
11 run_tr "abc[]" "a[b" AXB 11 run_tr "abc[]" "a[b" AXB
12 run_tr abc '[:alpha:]' A-ZA-Z 12 run_tr abc '[:alpha:]' A-ZA-Z
13 run_tr abc56 '[:alnum:]' A-ZA-Zxxxxxxxxxx 13 run_tr abc56 '[:alnum:]' A-ZA-Zxxxxxxxxxx
diff --git a/testsuite/uniq.tests b/testsuite/uniq.tests
index a1b69c2e5..49d4bed9c 100755
--- a/testsuite/uniq.tests
+++ b/testsuite/uniq.tests
@@ -40,7 +40,7 @@ testing "uniq input - (specify stdout)" "uniq input -" \
40#-s skip chars 40#-s skip chars
41#-c occurrences 41#-c occurrences
42#-d dups only 42#-d dups only
43#-u 43#-u
44 44
45# Test various command line options 45# Test various command line options
46 46