aboutsummaryrefslogtreecommitdiff
path: root/tests/machine-unit-tests/test.sh
blob: 8378eff31d408011919bc1c13ad49eb98e04e284 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
TEST_NAME="machine-unit-test"

# Load common test shell functions
. "$(dirname "$0")/../test.sh"

# Build tests binary
qtmips_make sub-qtmips_machine-tests
# Build test data
mips_make_test

cd "$TEST_DIR"

# Run unit tests
qtmips_run qtmips_machine/tests/tst_machine || echo_fail "Test $TEST_NAME failed!"