diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-09-17 16:28:10 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-09-17 16:28:10 +0000 |
commit | 9213a9e0f2d8fd638ecd02e2628d96dd5c7d233e (patch) | |
tree | 94c3c0678d1349497abe2db6004e9331e50f6d37 /testsuite | |
parent | a6127aacef047ed7661722705b052811fbe7f467 (diff) | |
download | busybox-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-dir | 6 | ||||
-rw-r--r-- | testsuite/cp/cp-dir-existing-dir | 6 | ||||
-rwxr-xr-x | testsuite/grep.tests | 2 | ||||
-rwxr-xr-x | testsuite/mount.testroot | 2 | ||||
-rwxr-xr-x | testsuite/pidof.tests | 4 | ||||
-rwxr-xr-x | testsuite/readlink.tests | 2 | ||||
-rwxr-xr-x | testsuite/sed.tests | 4 | ||||
-rwxr-xr-x | testsuite/sort.tests | 4 | ||||
-rwxr-xr-x | testsuite/testing.sh | 2 | ||||
-rw-r--r-- | testsuite/tr/tr-works | 2 | ||||
-rwxr-xr-x | testsuite/uniq.tests | 2 |
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 @@ | |||
1 | mkdir bar | 1 | mkdir bar |
2 | touch bar/baz | 2 | touch bar/baz |
3 | busybox cp -R bar foo | 3 | busybox cp -R bar foo |
4 | test -f foo/baz | 4 | test -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 @@ | |||
1 | mkdir bar | 1 | mkdir bar |
2 | touch bar/baz | 2 | touch bar/baz |
3 | mkdir foo | 3 | mkdir foo |
4 | busybox cp -R bar foo | 4 | busybox cp -R bar foo |
5 | test -f foo/bar/baz | 5 | test -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 | ||
89 | testing "mount -a no fstab" "mount -a 2>/dev/null || echo yes" "yes\n" "" "" | 89 | testing "mount -a no fstab" "mount -a 2>/dev/null || echo yes" "yes\n" "" "" |
90 | 90 | ||
91 | umount /proc | 91 | umount /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" "" "" | |||
24 | optional FEATURE_PIDOF_OMIT | 24 | optional FEATURE_PIDOF_OMIT |
25 | testing "pidof -o %PPID" "pidof -o %PPID pidof.tests | grep -o -w $$" "" "" "" | 25 | testing "pidof -o %PPID" "pidof -o %PPID pidof.tests | grep -o -w $$" "" "" "" |
26 | testing "pidof -o %PPID NOP" "pidof -o %PPID -s init" "1\n" "" "" | 26 | testing "pidof -o %PPID NOP" "pidof -o %PPID -s init" "1\n" "" "" |
27 | testing "pidof -o init" "pidof -o 1 init | grep -o -w 1" "" "" "" | 27 | testing "pidof -o init" "pidof -o 1 init | grep -o -w 1" "" "" "" |
28 | 28 | ||
29 | exit $FAILCOUNT | 29 | exit $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 |
31 | rm -r "$TESTLINK" "$TESTDIR" | 31 | rm -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 -" \ | |||
116 | testing "sed autoinsert newline" "sed -e 's/woo/bang/' input -" "bang\nbang" \ | 116 | testing "sed autoinsert newline" "sed -e 's/woo/bang/' input -" "bang\nbang" \ |
117 | "woo" "woo" | 117 | "woo" "woo" |
118 | testing "sed empty file plus cat" "sed -e 's/nohit//' input -" "one\ntwo" \ | 118 | testing "sed empty file plus cat" "sed -e 's/nohit//' input -" "one\ntwo" \ |
119 | "" "one\ntwo" | 119 | "" "one\ntwo" |
120 | testing "sed cat plus empty file" "sed -e 's/nohit//' input -" "one\ntwo" \ | 120 | testing "sed cat plus empty file" "sed -e 's/nohit//' input -" "one\ntwo" \ |
121 | "one\ntwo" "" | 121 | "one\ntwo" "" |
122 | testing "sed append autoinserts newline" "sed -e '/woot/a woo' -" \ | 122 | testing "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" |
139 | testing "sed clusternewline" \ | 139 | testing "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" \ | |||
56 | 7 3 42 soup | 56 | 7 3 42 soup |
57 | " "$data" "" | 57 | " "$data" "" |
58 | 58 | ||
59 | # | 59 | # |
60 | 60 | ||
61 | testing "sort key range with multiple options" "sort -k2,3rn input" \ | 61 | testing "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 | ||
69 | testing "sort key doesn't strip leading blanks, disables fallback global sort" \ | 69 | testing "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 | ||
72 | testing "sort key edge case with -t" "sort -n -k4 -t/" \ | 72 | testing "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 () | |||
7 | tr_test () | 7 | tr_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 | ||