OSDN Git Service

tests: fix POSIX shell source style
authorMike Frysinger <vapier@gentoo.org>
Wed, 4 Nov 2009 23:41:22 +0000 (18:41 -0500)
committerMike Frysinger <vapier@gentoo.org>
Wed, 4 Nov 2009 23:41:22 +0000 (18:41 -0500)
The source command does not search $PWD, and bash recently fixed itself to
follow this behavior for /bin/sh.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
35 files changed:
testsuite/all_sourcecode.tests
testsuite/awk.tests
testsuite/busybox.tests
testsuite/comm.tests
testsuite/cpio.tests
testsuite/cut.tests
testsuite/diff.tests
testsuite/expand.tests
testsuite/fold.tests
testsuite/grep.tests
testsuite/makedevs.tests
testsuite/mdev.tests
testsuite/mkfs.minix.tests
testsuite/mount.tests
testsuite/od.tests
testsuite/parse.tests
testsuite/patch.tests
testsuite/pidof.tests
testsuite/printf.tests
testsuite/readlink.tests
testsuite/rx.tests
testsuite/sed.tests
testsuite/seq.tests
testsuite/sort.tests
testsuite/start-stop-daemon.tests
testsuite/sum.tests
testsuite/tail.tests
testsuite/taskset.tests
testsuite/test.tests
testsuite/tr.tests
testsuite/unexpand.tests
testsuite/uniq.tests
testsuite/unzip.tests
testsuite/uuencode.tests
testsuite/xargs.tests

index 5b3f038..c0a1f86 100755 (executable)
@@ -5,7 +5,7 @@
 # Licensed under GPL v2, see file LICENSE for details.
 
 [ -n "$srcdir" ] || srcdir=$(pwd)
-. testing.sh
+. ./testing.sh
 
 
 #
index 0db99ab..2c7642c 100755 (executable)
@@ -3,7 +3,7 @@
 # Copyright 2007 by Denys Vlasenko <vda.linux@googlemail.com>
 # Licensed under GPL v2, see file LICENSE for details.
 
-. testing.sh
+. ./testing.sh
 
 # testing "description" "command" "result" "infile" "stdin"
 
index 26536c6..7c44b1e 100755 (executable)
@@ -4,7 +4,7 @@
 # Copyright 2005 by Rob Landley <rob@landley.net>
 # Licensed under GPL v2, see file LICENSE for details.
 
-. testing.sh
+. ./testing.sh
 
 HELPDUMP=`busybox`
 
index 44169f9..753db21 100755 (executable)
@@ -3,7 +3,7 @@
 # Copyright 2008 by Denys Vlasenko <vda.linux@googlemail.com>
 # Licensed under GPL v2, see file LICENSE for details.
 
-. testing.sh
+. ./testing.sh
 
 # testing "description" "command" "result" "infile" "stdin"
 
index fa0b65a..f21ba18 100755 (executable)
@@ -2,7 +2,7 @@
 # Copyright 2008 by Denys Vlasenko
 # Licensed under GPL v2, see file LICENSE for details.
 
-. testing.sh
+. ./testing.sh
 
 # ls -ln shows date. Need to remove that, it's variable.
 # sed: coalesce spaces
index 2788d1f..0fd79f2 100755 (executable)
@@ -3,7 +3,7 @@
 # Copyright 2007 by Denys Vlasenko <vda.linux@googlemail.com>
 # Licensed under GPL v2, see file LICENSE for details.
 
-. testing.sh
+. ./testing.sh
 
 # testing "test name" "options" "expected result" "file input" "stdin"
 #   file input will be file called "input"
index ac68a08..bf24b77 100755 (executable)
@@ -2,7 +2,7 @@
 # Copyright 2008 by Denys Vlasenko
 # Licensed under GPL v2, see file LICENSE for details.
 
-. testing.sh
+. ./testing.sh
 
 # testing "test name" "options" "expected result" "file input" "stdin"
 
index 3f4cda3..57498a2 100755 (executable)
@@ -2,7 +2,7 @@
 # Copyright 2008 by Denys Vlasenko
 # Licensed under GPL v2, see file LICENSE for details.
 
-. testing.sh
+. ./testing.sh
 
 # testing "test name" "options" "expected result" "file input" "stdin"
 
index 5e1f345..ca0e511 100755 (executable)
@@ -2,7 +2,7 @@
 # Copyright 2009 by Denys Vlasenko
 # Licensed under GPL v2, see file LICENSE for details.
 
-. testing.sh
+. ./testing.sh
 
 # testing "test name" "options" "expected result" "file input" "stdin"
 
index 7e3dff0..6e14f91 100755 (executable)
@@ -5,7 +5,7 @@
 
 # AUDIT:
 
-. testing.sh
+. ./testing.sh
 
 # testing "test name" "options" "expected result" "file input" "stdin"
 #   file input will be file called "input"
index 9e068bd..b41614f 100755 (executable)
@@ -2,7 +2,7 @@
 # Copyright 2008 by Denys Vlasenko
 # Licensed under GPL v2, see file LICENSE for details.
 
-. testing.sh
+. ./testing.sh
 
 # ls -ln is showing date. Need to remove that, it's variable
 # sed: (1) "maj, min" -> "maj,min" (2) coalesce spaces
index d52f3b1..319c670 100755 (executable)
@@ -2,7 +2,7 @@
 # Copyright 2008 by Denys Vlasenko
 # Licensed under GPL v2, see file LICENSE for details.
 
-. testing.sh
+. ./testing.sh
 
 # ls -ln is showing date. Need to remove that, it's variable
 # sed: (1) "maj, min" -> "maj,min" (2) coalesce spaces
index 90df931..7cad7da 100755 (executable)
@@ -4,7 +4,7 @@
 # Copyright 2007 by Denys Vlasenko
 # Licensed under GPL v2, see file LICENSE for details.
 
-. testing.sh
+. ./testing.sh
 
 # testing "test name" "options" "expected result" "file input" "stdin"
 
index f4a2cc2..8bd60ea 100755 (executable)
@@ -2,7 +2,7 @@
 # Copyright 2007 by Denys Vlasenko <vda.linux@googlemail.com>
 # Licensed under GPL v2, see file LICENSE for details.
 
-. testing.sh
+. ./testing.sh
 
 test "`id -u`" = 0 || {
        echo "SKIPPED: must be root to test this"
index f136bb5..0bf1f4c 100755 (executable)
@@ -2,7 +2,7 @@
 # Copyright 2008 by Denys Vlasenko
 # Licensed under GPL v2, see file LICENSE for details.
 
-. testing.sh
+. ./testing.sh
 
 # testing "test name" "options" "expected result" "file input" "stdin"
 
index f1ee7b8..999efef 100755 (executable)
@@ -3,7 +3,7 @@
 # Copyright 2008 by Denys Vlasenko <vda.linux@googlemail.com>
 # Licensed under GPL v2, see file LICENSE for details.
 
-. testing.sh
+. ./testing.sh
 
 COLLAPSE=$(( 0x00010000))
 TRIM=$((     0x00020000))
index 1bdc0c2..f3e6071 100755 (executable)
@@ -2,7 +2,7 @@
 # Copyright 2008 by Denys Vlasenko
 # Licensed under GPL v2, see file LICENSE for details.
 
-. testing.sh
+. ./testing.sh
 
 # testing "test name" "options" "expected result" "file input" "stdin"
 
index a05a302..45df1a9 100755 (executable)
@@ -6,7 +6,7 @@
 
 # AUDIT:
 
-. testing.sh
+. ./testing.sh
 
 # testing "test name" "options" "expected result" "file input" "stdin"
 
index 0a63f0f..95f8110 100755 (executable)
@@ -2,7 +2,7 @@
 # Copyright 2008 by Denys Vlasenko
 # Licensed under GPL v2, see file LICENSE for details.
 
-. testing.sh
+. ./testing.sh
 
 # Need this in order to not execute shell builtin
 bb="busybox "
index 0faa6ed..e6822df 100755 (executable)
@@ -4,7 +4,7 @@
 # Copyright 2006 by Natanael Copa <n@tanael.org>
 # Licensed under GPL v2, see file LICENSE for details.
 
-. testing.sh
+. ./testing.sh
 
 TESTDIR=readlink_testdir
 TESTFILE="$TESTDIR/testfile"
index 417f04b..c2b8814 100755 (executable)
@@ -2,7 +2,7 @@
 # Copyright 2009 by Denys Vlasenko
 # Licensed under GPL v2, see file LICENSE for details.
 
-. testing.sh
+. ./testing.sh
 
 # testing "test name" "options" "expected result" "file input" "stdin"
 
index 696d980..875c946 100755 (executable)
@@ -4,7 +4,7 @@
 # Copyright 2005 by Rob Landley <rob@landley.net>
 # Licensed under GPL v2, see file LICENSE for details.
 
-. testing.sh
+. ./testing.sh
 
 # testing "description" "arguments" "result" "infile" "stdin"
 
index 817e1a7..7a55374 100755 (executable)
@@ -6,7 +6,7 @@
 
 # AUDIT: Full SUSv3 coverage (except internationalization).
 
-. testing.sh
+. ./testing.sh
 
 # testing "test name" "options" "expected result" "file input" "stdin"
 #   file input will be file called "input"
index 627ca51..5ed29fb 100755 (executable)
@@ -1,10 +1,10 @@
-#!/bin/bash
+#!/bin/sh
 
 # SUSv3 compliant sort tests.
 # Copyright 2005 by Rob Landley <rob@landley.net>
 # Licensed under GPL v2, see file LICENSE for details.
 
-. testing.sh
+. ./testing.sh
 
 # The basic tests.  These should work even with the small busybox.
 
index ba77cde..76b0be0 100755 (executable)
@@ -2,7 +2,7 @@
 # Copyright 2008 by Denys Vlasenko
 # Licensed under GPL v2, see file LICENSE for details.
 
-. testing.sh
+. ./testing.sh
 
 # testing "test name" "cmd" "expected result" "file input" "stdin"
 
index e537cf6..da278c7 100755 (executable)
@@ -6,7 +6,7 @@
 
 # AUDIT: Unit tests for sum
 
-. testing.sh
+. ./testing.sh
 
 # testing "test name" "options" "expected result" "file input" "stdin"
 #   file input will be file called "input"
index d97bf7b..d2427d4 100755 (executable)
@@ -3,7 +3,7 @@
 # Copyright 2009 by Denys Vlasenko <vda.linux@googlemail.com>
 # Licensed under GPL v2, see file LICENSE for details.
 
-. testing.sh
+. ./testing.sh
 
 # testing "test name" "command" "expected result" "file input" "stdin"
 #   file input will be file called "input"
index 53d7f10..1a19285 100755 (executable)
@@ -2,7 +2,7 @@
 # Copyright 2006 Bernhard Reutner-Fischer
 # Licensed under GPL v2 or later, see file LICENSE for details.
 
-. testing.sh
+. ./testing.sh
 a="taskset"
 
 # testing "test name"              "opts" "expected result" "file inp" "stdin"
index b7c84d9..7d80444 100755 (executable)
@@ -3,7 +3,7 @@
 # Copyright 2007 by Denys Vlasenko <vda.linux@googlemail.com>
 # Licensed under GPL v2, see file LICENSE for details.
 
-. testing.sh
+. ./testing.sh
 
 # testing "test name" "command" "expected result" "file input" "stdin"
 #   file input will be file called "input"
index f91cc1f..9706056 100755 (executable)
@@ -3,7 +3,7 @@
 # Copyright 2009 by Denys Vlasenko <vda.linux@googlemail.com>
 # Licensed under GPL v2, see file LICENSE for details.
 
-. testing.sh
+. ./testing.sh
 
 # testing "description" "arguments" "result" "infile" "stdin"
 
index e7f42c5..5c82a1e 100755 (executable)
@@ -2,7 +2,7 @@
 # Copyright 2008 by Denys Vlasenko
 # Licensed under GPL v2, see file LICENSE for details.
 
-. testing.sh
+. ./testing.sh
 
 # testing "test name" "options" "expected result" "file input" "stdin"
 
index 94c4559..02c595a 100755 (executable)
@@ -6,7 +6,7 @@
 
 # AUDIT: Full SUSv3 coverage (except internationalization).
 
-. testing.sh
+. ./testing.sh
 
 # testing "test name" "options" "expected result" "file input" "stdin"
 #   file input will be file called "input"
index 975079d..0ce5da2 100755 (executable)
@@ -5,7 +5,7 @@
 # Copyright 2006 Glenn McGrath
 # Licensed under GPL v2, see file LICENSE for details.
 
-. testing.sh
+. ./testing.sh
 
 # testing "test name" "options" "expected result" "file input" "stdin"
 #   file input will be file called "input"
index cb658db..6556e60 100755 (executable)
@@ -6,7 +6,7 @@
 
 # AUDIT: Unit tests for uuencode
 
-. testing.sh
+. ./testing.sh
 
 # testing "test name" "options" "expected result" "file input" "stdin"
 #   file input will be file called "input"
index 3652449..17f4e7a 100755 (executable)
@@ -2,7 +2,7 @@
 # Copyright 2008 by Denys Vlasenko
 # Licensed under GPL v2, see file LICENSE for details.
 
-. testing.sh
+. ./testing.sh
 
 # testing "test name" "command" "expected result" "file input" "stdin"