Merge pull request #356 from Liujingfang1/testing
Update directories in test script
This commit is contained in:
commit
b68d9f07aa
|
|
@ -39,17 +39,11 @@ if [ ! -d ${example_dir} ]; then
|
||||||
exit_with "directory ${example_dir} doesn't exist"
|
exit_with "directory ${example_dir} doesn't exist"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
test_targets=$(ls ${example_dir})
|
if [ -x "${example_dir}/tests/test.sh" ]; then
|
||||||
|
${example_dir}/tests/test.sh ${example_dir}
|
||||||
for t in ${test_targets}; do
|
|
||||||
cd ${example_dir}/${t}
|
|
||||||
if [ -x "tests/test.sh" ]; then
|
|
||||||
tests/test.sh .
|
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "testing ${t} passed."
|
echo "testing ${example_dir} passed."
|
||||||
else
|
else
|
||||||
exit_with "testing ${t} failed."
|
exit_with "testing ${example_dir} failed."
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
cd ${home}
|
|
||||||
done
|
|
||||||
Loading…
Reference in New Issue