Skip to content

Commit 940c5af

Browse files
committed
new tests
1 parent 857e692 commit 940c5af

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

test.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
. test/tools/run.sh
88

9-
run_test tools/build-container "Successfully built"
10-
run_test simple "dn: dc=example,dc=com"
11-
run_test tls "dn: dc=example,dc=com"
12-
run_test db "dn: dc=otherdomain,dc=com"
9+
run_test tools/build-container.sh "Successfully built"
10+
run_test simple.sh "dn: dc=example,dc=com"
11+
run_test tls.sh "dn: dc=example,dc=com"
12+
run_test db.sh "dn: dc=otherdomain,dc=com"
1313

1414
. test/tools/end.sh
1515

test/tools/run.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,21 @@ echo_ok () {
2323
}
2424

2525
run_test () {
26-
fction=$1
26+
test=$1
2727
out=test/test.out
2828

29-
echo_start $fction
29+
echo_start $test
3030

3131
if [ -z ${verbose} ]; then
32-
./test/$1.sh > $out 2>&1
32+
./test/$test > $out 2>&1
3333
else
34-
./test/$1.sh | tee $out 2>&1
34+
./test/$test | tee $out 2>&1
3535
fi
3636

3737
if [ "$(grep -c "$2" $out)" -eq 0 ]; then
38-
echo_error $fction
38+
echo_error $test
3939
else
40-
echo_ok $fction
40+
echo_ok $test
4141
fi
4242

4343
rm $out

0 commit comments

Comments
 (0)