Skip to content

Commit

Permalink
Add --loop to launch.sh for longer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stuarthayhurst committed Sep 28, 2024
1 parent d0cfa83 commit a205eef
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

buildDir="build"

if [[ "$1" == "--loop" ]]; then
target="$buildDir/threadDemo"
while true; do
if ! LD_LIBRARY_PATH="$buildDir" "$target" "$@"; then
exit 1
fi
done
fi

if [[ "$1" == "--threads" ]]; then
target="$buildDir/threadDemo"
else
Expand Down

0 comments on commit a205eef

Please sign in to comment.