37 lines
749 B
Bash
Executable File
37 lines
749 B
Bash
Executable File
#!/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 "GEM SUCCESS"
|
|
else
|
|
echo "GEM FAILURE"
|
|
fi
|
|
popd > /dev/null
|
|
done
|
|
|
|
popd > /dev/null
|
|
|
|
echo "################ RESULT FOR ALL GEMS ################"
|
|
if [ $result -eq 0 ]; then
|
|
echo "SUCCESS"
|
|
else
|
|
echo "FAILURE"
|
|
fi
|
|
|
|
exit $result
|