Skip to content

Commit df4c319

Browse files
committed
added debug execution tracing
1 parent 458c23d commit df4c319

25 files changed

+26
-26
lines changed

tests/all.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#
1515

1616
set -euo pipefail
17-
[ -n "${TRAVIS:-}" ] && set -x
17+
[ -n "${DEBUG:-}" ] && set -x
1818
srcdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
1919

2020
echo "
@@ -36,7 +36,7 @@ cd "$srcdir";
3636

3737
../bash-tools/python-compile.sh
3838

39-
for script in $(find . -name 'test*.sh'); do
39+
for script in $(find . -iname 'test*.sh' | sort); do
4040
./$script -vvv
4141
done
4242

tests/check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#
1515

1616
set -euo pipefail
17-
[ -n "${TRAVIS:-}" ] && set -x
17+
[ -n "${DEBUG:-}" ] && set -x
1818

1919
check(){
2020
cmd=$1

tests/compile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#
1515

1616
set -eu
17-
[ -n "${TRAVIS:-}" ] && set -x
17+
[ -n "${DEBUG:-}" ] && set -x
1818
srcdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
1919

2020
cd "$srcdir/..";

tests/excluded.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# split from utils.sh as this is specific to this repo
1919

2020
set -eu
21-
[ -n "${TRAVIS:-}" ] && set -x
21+
[ -n "${DEBUG:-}" ] && set -x
2222

2323
isExcluded(){
2424
local prog="$1"

tests/help.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#
1515

1616
set -eu
17-
[ -n "${TRAVIS:-}" ] && set -x
17+
[ -n "${DEBUG:-}" ] && set -x
1818
srcdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
1919

2020
cd "$srcdir/..";

tests/pylint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#
1515

1616
set -eu
17-
[ -n "${TRAVIS:-}" ] && set -x
17+
[ -n "${DEBUG:-}" ] && set -x
1818
srcdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
1919

2020
cd "$srcdir/..";

tests/python3.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#
1515

1616
set -eu
17-
[ -n "${TRAVIS:-}" ] && set -x
17+
[ -n "${DEBUG:-}" ] && set -x
1818
srcdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
1919

2020
cd "$srcdir/..";

tests/syntax.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#
1515

1616
set -eu
17-
[ -n "${TRAVIS:-}" ] && set -x
17+
[ -n "${DEBUG:-}" ] && set -x
1818
srcdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
1919

2020
cd "$srcdir/..";

tests/test_headtail.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#
1515

1616
set -euo pipefail
17-
[ -n "${TRAVIS:-}" ] && set -x
17+
[ -n "${DEBUG:-}" ] && set -x
1818
srcdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
1919

2020
echo "

tests/test_json.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#
1515

1616
set -eu
17-
[ -n "${TRAVIS:-}" ] && set -x
17+
[ -n "${DEBUG:-}" ] && set -x
1818
srcdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
1919

2020
echo "

0 commit comments

Comments
 (0)