aboutsummaryrefslogtreecommitdiff
path: root/scripts/test
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-11-13 17:14:08 -0600
committerRob Landley <rob@landley.net>2012-11-13 17:14:08 -0600
commit7aa651a6a4496d848f86de9b1e6b3a003256a01f (patch)
tree6995fb4b7cc2e90a6706b0239ebaf95d9dbab530 /scripts/test
parent571b0706cce45716126776d0ad0f6ac65f4586e3 (diff)
downloadtoybox-7aa651a6a4496d848f86de9b1e6b3a003256a01f.tar.gz
Reindent to two spaces per level. Remove vi: directives that haven't worked right in years (ubuntu broke its' vim implementation). Remove trailing spaces. Add/remove blank lines. Re-wordwrap in places. Update documentation with new coding style.
The actual code should be the same afterward, this is just cosmetic refactoring.
Diffstat (limited to 'scripts/test')
-rwxr-xr-xscripts/test/basename.test2
-rwxr-xr-xscripts/test/cat.test2
-rwxr-xr-xscripts/test/cp.test2
-rwxr-xr-x[-rw-r--r--]scripts/test/dirname.test2
-rwxr-xr-xscripts/test/xargs.test2
5 files changed, 5 insertions, 5 deletions
diff --git a/scripts/test/basename.test b/scripts/test/basename.test
index bd48f4af..2f7a2ec3 100755
--- a/scripts/test/basename.test
+++ b/scripts/test/basename.test
@@ -7,7 +7,7 @@
# Removal of extra /'s
testing "basename /-only" "basename ///////" "/\n" "" ""
testing "basename trailing /" "basename a//////" "a\n" "" ""
-testing "basename combined" "basename /////a///b///c///d/////" "d\n" "" ""
+testing "basename combined" "basename /////a///b///c///d/////" "d\n" "" ""
# Standard suffix behavior.
testing "basename suffix" "basename a/b/c/d.suffix .suffix" "d\n" "" ""
diff --git a/scripts/test/cat.test b/scripts/test/cat.test
index 583c4e82..7b4066ac 100755
--- a/scripts/test/cat.test
+++ b/scripts/test/cat.test
@@ -6,7 +6,7 @@
testing "cat" "cat && echo yes" "oneyes\n" "" "one"
testing "cat file1" \
- "cat /bin/cat > file1 && diff -u /bin/cat file1 && echo yes" \
+ "cat /proc/self/exe > file1 && diff -u /proc/self/exe file1 && echo yes" \
"yes\n" "" ""
#testing "cat file1 file2" "cat /bin/cat file1 > file2 && diff -u -
diff --git a/scripts/test/cp.test b/scripts/test/cp.test
index 8abcc284..eea0471d 100755
--- a/scripts/test/cp.test
+++ b/scripts/test/cp.test
@@ -24,7 +24,7 @@ testing "cp file->dir/file" \
"yes\n" "" ""
testing "cp -r dir->missing" \
"cp -r two three && cmp random three/random && echo yes" \
- "yes\n" "" ""
+ "yes\n" "" ""
touch walrus
testing "cp -r dir->file [fail]" \
"cp -r two walrus 2>/dev/null || echo yes" "yes\n" "" ""
diff --git a/scripts/test/dirname.test b/scripts/test/dirname.test
index 9afa4508..a0075384 100644..100755
--- a/scripts/test/dirname.test
+++ b/scripts/test/dirname.test
@@ -6,5 +6,5 @@
testing "dirname /-only" "dirname ///////" "/\n" "" ""
testing "dirname trailing /" "dirname a//////" ".\n" "" ""
-testing "dirname combined" "dirname /////a///b///c///d/////" "/////a///b///c\n" "" ""
+testing "dirname combined" "dirname /////a///b///c///d/////" "/////a///b///c\n" "" ""
testing "dirname /a/" "dirname /////a///" "/\n" "" ""
diff --git a/scripts/test/xargs.test b/scripts/test/xargs.test
index 2d3946b3..e49445d6 100755
--- a/scripts/test/xargs.test
+++ b/scripts/test/xargs.test
@@ -26,7 +26,7 @@ rm one two three
exit
-testing "xargs -n exact match"
+testing "xargs -n exact match"
testing "xargs -s exact match"
testing "xargs -s 0"
testing "xargs -s impossible"