mirror of
https://github.com/sheumann/hush.git
synced 2024-12-26 10:32:02 +00:00
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:
parent
f8a73bfa33
commit
caa79406aa
@ -5,7 +5,7 @@
|
||||
# Licensed under GPL v2, see file LICENSE for details.
|
||||
|
||||
[ -n "$srcdir" ] || srcdir=$(pwd)
|
||||
. testing.sh
|
||||
. ./testing.sh
|
||||
|
||||
|
||||
#
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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`
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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))
|
||||
|
@ -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"
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
# AUDIT:
|
||||
|
||||
. testing.sh
|
||||
. ./testing.sh
|
||||
|
||||
# testing "test name" "options" "expected result" "file input" "stdin"
|
||||
|
||||
|
@ -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 "
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user