Skip to content

Commit

Permalink
[CI] just check CI work as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
rhdong committed Jun 8, 2023
1 parent 460db25 commit ba689ff
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion run_all_tests.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
#!/bin/bash

# Usage : `bash run_all_tests.sh`

# Search for all binary files that end with "test"
files=$(find ./build/ -type f -name "*_test" -executable)

# Execute each file found
has_fail=false
for file in $files
do
echo "Executing $file ..."
./$file
done
if ! [ $? -eq 0 ]; then
has_fail=true
fi
done

if [ "$has_fail" = true ] ; then
exit 1
fi

0 comments on commit ba689ff

Please sign in to comment.