From 7aa651a6a4496d848f86de9b1e6b3a003256a01f Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 13 Nov 2012 17:14:08 -0600 Subject: 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. --- scripts/test/basename.test | 2 +- scripts/test/cat.test | 2 +- scripts/test/cp.test | 2 +- scripts/test/dirname.test | 2 +- scripts/test/xargs.test | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) mode change 100644 => 100755 scripts/test/dirname.test (limited to 'scripts/test') 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 old mode 100644 new mode 100755 index 9afa4508..a0075384 --- 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" -- cgit v1.2.3