Skip to content

Commit adc1677

Browse files
committed
tests scripts: use /bin/bash, not /bin/sh (force push for circleci)
e.g. 'time' is not in all /bin/sh
1 parent 9e34d0f commit adc1677

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

run-cmu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh -ax
1+
#!/bin/bash -ax
22
ntrain=3000000
33
hidden=50
44
test_every=50000

run-gprof

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
scons -c
44
scons profile=1 options="${options:-}" -j 4 clstmocrtrain

run-profile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
set -x
33
export hidden=50
44
export lrate=1e-2

run-tests

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
set -e
33
debug=${debug:-0}
44
options=${options:-}
@@ -7,17 +7,17 @@ export PS4='
77
trap "echo TEST FAILED" EXIT
88
set -x
99
export seed=0.222
10-
scons -s -c; rm -f *.o *.a
11-
scons -j 4 gpu=0 debug=$debug options="$options" clstmocrtrain clstmfiltertrain clstmfilter clstmocr test-lstm
10+
scons -s -c; rm -f ./*.o ./*.a
11+
scons -j 4 gpu=0 debug="$debug" options="$options" clstmocrtrain clstmfiltertrain clstmfilter clstmocr test-lstm
1212
time ./test-lstm
1313
time ./test-filter.sh
1414
time ./test-ocr.sh
15-
scons -s -c; rm -f *.o *.a
16-
scons -j 4 gpu=0 double=1 debug=$debug options="$options" test-cderiv test-deriv test-ctc
15+
scons -s -c; rm -f ./*.o ./*.a
16+
scons -j 4 gpu=0 double=1 debug="$debug" options="$options" test-cderiv test-deriv test-ctc
1717
./test-cderiv
1818
./test-deriv
1919
./test-ctc
20-
rm -f *.pb.h *.pb.cc
20+
rm -f ./*.pb.h ./*.pb.cc
2121
scons -c all
2222
#scons -s -c pyswig
2323
#scons pyswig

0 commit comments

Comments
 (0)