Skip to content

Commit

Permalink
fixed examples-run script
Browse files Browse the repository at this point in the history
  • Loading branch information
krux02 committed Oct 24, 2017
1 parent 85a2d1e commit 5c57671
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
18 changes: 18 additions & 0 deletions examples-run
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

# always change into the directory of the script so that it doesn't
# matter for where the script is called
cd "$( dirname "${BASH_SOURCE[0]}" )"

if nimble build; then
fails = ""
# run all executables in the examples folder
for example in $(find ./examples/ -executable); do
# log if an executable failed
$example || fails = "$fails $example"
done
echo "failed tests:"
echo $fails
else
echo "build failed"
fi
10 changes: 0 additions & 10 deletions examples/testall

This file was deleted.

0 comments on commit 5c57671

Please sign in to comment.