omnet
aien-dev/omnet
Brought by drakestapleton
omnet / cmd / tkad / test / run.sh
| 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: Apache-2.0 |
| 3 | set -eu |
| 4 | root=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) |
| 5 | if [ "${REGEN:-0}" = 1 ] || [ ! -f "$root/cmd/tkad/test/fixture.json" ]; then |
| 6 | (cd "$root/om/tka/test/oracle" && "${GO:-go}" run -mod=readonly "$root/cmd/tkad/test/fixture.go") > "$root/cmd/tkad/test/fixture.json" |
| 7 | fi |
| 8 | bin=$(sh "$root/tools/build-tkad.sh") |
| 9 | python3 "$root/cmd/tkad/test/smoke.py" "$bin" |
| 10 | python3 "$root/cmd/tkad/test/mutant.py" "$root" "$bin" |
| 11 | python3 "$root/cmd/tkad/test/rollover.py" "$root" "$bin" |
| 12 | python3 "$root/cmd/tkad/test/directory.py" "$bin" |
| 13 | python3 "$root/cmd/tkad/test/identity.py" "$bin" |
| 14 | python3 "$root/cmd/tkad/test/faults.py" "$root" "$bin" |