37 lines
758 B
Bash
37 lines
758 B
Bash
![]() |
#!/bin/bash
|
||
|
|
||
|
set -o xtrace
|
||
|
|
||
|
result=0
|
||
|
|
||
|
pushd "$(dirname $0)"
|
||
|
|
||
|
for test_script in $(find . -name test.sh); do
|
||
|
pushd `dirname $test_script` > /dev/null
|
||
|
echo -e "--format doc" >> ./.rspec
|
||
|
echo -e "--format html" >> ./.rspec
|
||
|
echo -e "--out ../../tmp/spec_results/$(basename `dirname $test_script`)_results.html" >> ./.rspec
|
||
|
|
||
|
echo "################ $(basename `dirname $test_script`) ################"
|
||
|
./test.sh
|
||
|
let gem_result=$?
|
||
|
let result=result+gem_result
|
||
|
if [ $gem_result -eq 0 ]; then
|
||
|
echo "ENGINE SUCCESS"
|
||
|
else
|
||
|
echo "ENGINE FAILURE"
|
||
|
fi
|
||
|
popd > /dev/null
|
||
|
done
|
||
|
|
||
|
popd > /dev/null
|
||
|
|
||
|
echo "################ RESULT FOR ALL ENGINES ################"
|
||
|
if [ $result -eq 0 ]; then
|
||
|
echo "SUCCESS"
|
||
|
else
|
||
|
echo "FAILURE"
|
||
|
fi
|
||
|
|
||
|
exit $result
|