This repository has been archived on 2026-11-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
docker-openldap/tests.sh
T
2014-05-05 18:04:59 +02:00

30 lines
351 B
Bash
Executable File

#!/bin/sh
# Test script
out=tests.out
echo_error () {
echo "$*: $(tput setaf 1)failed$(tput sgr0)"
}
echo_ok () {
echo "$*: ok"
}
run_test () {
fction=$1
./tests/$1.sh | tee $out
}
run_test build
if [ $(grep -c "Successfully built" ./tests.out) -eq 0 ]; then
echo_error $fction
else
echo_ok $fction
fi
rm $out
run_test run-simple