31 lines
492 B
Bash
Executable File
31 lines
492 B
Bash
Executable File
#!/bin/bash
|
|
|
|
TOTAL=0
|
|
FAILED=0
|
|
|
|
for file in $(find . -name "*.sk")
|
|
do
|
|
OUTPUT=$(skopy $file 2>&1)
|
|
RET=$?
|
|
|
|
echo -en "\e[35m$file\e[0m ... "
|
|
|
|
if [ $RET -eq 0 ]
|
|
then
|
|
echo -e "\e[32mpassed\e[0m"
|
|
else
|
|
echo -e "\e[31mfailed\e[0m"
|
|
echo "$OUTPUT"
|
|
FAILED=$(($FAILED + 1))
|
|
fi
|
|
|
|
TOTAL=$(($TOTAL + 1))
|
|
done
|
|
|
|
if [ $FAILED -eq 0 ]
|
|
then
|
|
echo -e "\e[32m=== All tests passed ===\e[0m"
|
|
else
|
|
echo -e "\e[31m=== Some tests failed ===\e[0m"
|
|
fi
|