diff options
| author | Sudar <sudar@sudarmuthu.com> | 2014-09-21 12:05:12 +0530 |
|---|---|---|
| committer | Sudar <sudar@sudarmuthu.com> | 2014-09-21 12:05:12 +0530 |
| commit | ee1855c6b1aabf4d50afcfba69cecd2417d27237 (patch) | |
| tree | 05db0503f3cb1ffbd41f077ecf6135a429d5b66b /script/runtests.sh | |
| parent | 6f46722abb40c60dcaa0e40292342d015906c8bf (diff) | |
| parent | d092c14d7ec845246f6588704e22718615626982 (diff) | |
Merge pull request #268 from peplin/259-move-examples
Move tests back to 'examples', skip non-testable examples when testing.
Fix #259
Fix #260
Diffstat (limited to 'script/runtests.sh')
| -rwxr-xr-x | script/runtests.sh | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/script/runtests.sh b/script/runtests.sh deleted file mode 100755 index ad42f74..0000000 --- a/script/runtests.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash - -failures=() - -for dir in tests/*/ -do - dir=${dir%*/} - example=${dir##*/} - pushd $dir - echo "Compiling $example..." - make_output=`make clean` - make_output=`make` - if [[ $? -ne 0 ]]; then - failures+=("$example") - echo "Example $example failed" - fi - popd -done - -for failure in "${failures[@]}"; do - echo "Example $failure failed" -done - -if [[ ${#failures[@]} -eq 0 ]]; then - echo "All tests passed." -else - exit 1 -fi |
