omnet
aien-dev/omnet
Brought by drakestapleton
| 1 | #!/bin/sh |
| 2 | # Run library and executable suites with the pinned compiler path as $1. |
| 3 | # Each suite exits 0 only when its behavior checks pass. |
| 4 | set -eu |
| 5 | root=$(cd "$(dirname "$0")/.." && pwd) |
| 6 | omc=$("$root/tools/omc.sh") |
| 7 | fail=0 |
| 8 | for t in "$root"/om/*/test/run.sh "$root"/cmd/*/test/run.sh; do |
| 9 | [ -f "$t" ] || continue |
| 10 | unit=$(basename "$(dirname "$(dirname "$t")")") |
| 11 | if sh "$t" "$omc"; then |
| 12 | echo "PASS $unit" |
| 13 | else |
| 14 | echo "FAIL $unit" |
| 15 | fail=1 |
| 16 | fi |
| 17 | done |
| 18 | exit "$fail" |