tests: fix POSIX shell source style

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>
This commit is contained in:
Mike Frysinger 2009-11-04 18:41:22 -05:00
parent f8a73bfa33
commit caa79406aa
35 changed files with 36 additions and 36 deletions

View File

@ -5,7 +5,7 @@
# Licensed under GPL v2, see file LICENSE for details.
[ -n "$srcdir" ] || srcdir=$(pwd)
. testing.sh
. ./testing.sh
#

View File

@ -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"

View File

@ -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`

View File

@ -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"

View File

@ -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

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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))

View File

@ -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"

View File

@ -6,7 +6,7 @@
# AUDIT:
. testing.sh
. ./testing.sh
# testing "test name" "options" "expected result" "file input" "stdin"

View File

@ -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 "

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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.

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"