summaryrefslogtreecommitdiff
path: root/test/aarch64_small/run_tests.sh
blob: 619ee8d2035b8dea11050e6395b82e2634f30fa8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env bash
set -e

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR
SAILDIR="$DIR/../.."

rm -f $DIR/tests.xml

# shellcheck source=../test_helpers.sh
source "$SAILDIR/test/test_helpers.sh"

printf "<testsuites>\n" >> $DIR/tests.xml

if make -B -C ../../aarch64_small armV8.lem SAIL="$SAILDIR/sail"
then
    green "built aarch64_small to lem" "ok"
else
    red "failed to build lem" "fail"
fi

if make -B -C ../../aarch64_small armV8.smt_model SAIL="$SAILDIR/sail"
then
    green "compiled aarch64_small for SMT generation" "ok"
else
    red "failed to build aarch64_small for SMT generation" "fail"
fi

finish_suite "aarch64_small tests"

printf "</testsuites>\n" >> $DIR/tests.xml