mirror of
https://github.com/openappsec/openappsec.git
synced 2025-06-28 16:41:02 +03:00
24 lines
358 B
Bash
Executable File
24 lines
358 B
Bash
Executable File
#!/bin/sh
|
|
|
|
echo Running api tests:
|
|
|
|
tests=0
|
|
passed=0
|
|
|
|
for file in `ls`; do
|
|
[ ! -x $file -o -d $file ] && continue
|
|
tests=`expr 1 + $tests`
|
|
printf " test(%s): " $file
|
|
./$file
|
|
if [ $? ]; then
|
|
passed=`expr 1 + $passed`
|
|
echo 'SUCCESS'
|
|
else
|
|
echo 'FAILURE'
|
|
fi
|
|
done
|
|
|
|
echo "$passed/$tests tests successful"
|
|
|
|
exit 0
|