30 lines
274 B
Bash
Executable File
30 lines
274 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "Pornesc rularea testelor..."
|
|
|
|
FAILED=0
|
|
|
|
for test in tests/*.sh; do
|
|
echo "Rulez $test"
|
|
bash "$test"
|
|
|
|
if [ $? -ne 0 ]; then
|
|
FAILED=1
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
if [ $FAILED -eq 0 ]; then
|
|
echo "Toate testele au trecut"
|
|
exit 0
|
|
|
|
else
|
|
echo "Unele teste au esuat"
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|