Archived
new tests
This commit is contained in:
1 parent
857e692b3c
commit
940c5afc4f
2 files changed
+10
-10
No files matched your search
@@ -6,10 +6,10 @@
|
|||||||
|
|
||||||
. test/tools/run.sh
|
. test/tools/run.sh
|
||||||
|
|
||||||
run_test tools/build-container "Successfully built"
|
run_test tools/build-container.sh "Successfully built"
|
||||||
run_test simple "dn: dc=example,dc=com"
|
run_test simple.sh "dn: dc=example,dc=com"
|
||||||
run_test tls "dn: dc=example,dc=com"
|
run_test tls.sh "dn: dc=example,dc=com"
|
||||||
run_test db "dn: dc=otherdomain,dc=com"
|
run_test db.sh "dn: dc=otherdomain,dc=com"
|
||||||
|
|
||||||
. test/tools/end.sh
|
. test/tools/end.sh
|
||||||
|
|
||||||
+6
-6
@@ -23,21 +23,21 @@ echo_ok () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
run_test () {
|
run_test () {
|
||||||
fction=$1
|
test=$1
|
||||||
out=test/test.out
|
out=test/test.out
|
||||||
|
|
||||||
echo_start $fction
|
echo_start $test
|
||||||
|
|
||||||
if [ -z ${verbose} ]; then
|
if [ -z ${verbose} ]; then
|
||||||
./test/$1.sh > $out 2>&1
|
./test/$test > $out 2>&1
|
||||||
else
|
else
|
||||||
./test/$1.sh | tee $out 2>&1
|
./test/$test | tee $out 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(grep -c "$2" $out)" -eq 0 ]; then
|
if [ "$(grep -c "$2" $out)" -eq 0 ]; then
|
||||||
echo_error $fction
|
echo_error $test
|
||||||
else
|
else
|
||||||
echo_ok $fction
|
echo_ok $test
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm $out
|
rm $out
|
||||||
|
|||||||
Reference in new issue
Block a user