interplane.Get Omega
Read in your language

omnet

aien-dev/omnet

Brought by drakestapleton

branch main Branches Tags History

omnet / tools / test.sh

18 lines · 462 bytes Raw Blame History
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.
4set -eu
5root=$(cd "$(dirname "$0")/.." && pwd)
6omc=$("$root/tools/omc.sh")
7fail=0
8for 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
17done
18exit "$fail"