4
4
push :
5
5
branches :
6
6
- master
7
+ - prepare-litmus-toml-translator
7
8
# pull_request: {}
8
9
9
10
# cancel in-progress job when a new push is performed
@@ -23,22 +24,64 @@ jobs:
23
24
24
25
timeout-minutes : 5
25
26
steps :
27
+ - run : mkdir -p rems-project litmus-tests
28
+
26
29
- uses : actions/checkout@v3
30
+ with :
31
+ path : rems-project/system-litmus-harness
27
32
28
33
- name : System dependencies (ubuntu)
29
34
run : |
30
35
sudo apt update
31
36
sudo apt install build-essential gcc-aarch64-linux-gnu qemu-system-aarch64
32
37
38
+ - name : Get rust toolchain
39
+ uses : actions-rs/toolchain@v1
40
+ with :
41
+ profile : minimal
42
+ toolchain : stable
43
+
44
+ - name : Setup rems-project dependencies
45
+ working-directory : rems-project
46
+ run : |
47
+ git clone https://github.com/rems-project/isla
48
+ git clone https://github.com/rems-project/isla-snapshots
49
+
50
+ - name : Setup litmus-tests org dependencies
51
+ working-directory : litmus-tests
52
+ run : |
53
+ git clone https://github.com/litmus-tests/litmus-tests-armv8a-system-vmsa/
54
+
33
55
- name : Build harness
56
+ working-directory : rems-project/system-litmus-harness
34
57
run : |
35
58
make build
36
59
37
60
- name : Check for compiler warnings
61
+ working-directory : rems-project/system-litmus-harness
38
62
run : |
39
63
make -B -s check
40
64
41
65
- name : Run unittests
66
+ working-directory : rems-project/system-litmus-harness
42
67
run : |
43
68
./qemu_unittests --no-test-linear-concretization | tee log
44
69
[ $(tail -c -2 log) -eq 0 ]
70
+
71
+ - name : Build tools
72
+ working-directory : rems-project/system-litmus-harness
73
+ run : |
74
+ make tools
75
+
76
+ - name : Run TOML translator
77
+ working-directory : rems-project/system-litmus-harness
78
+ run : |
79
+ make translate-toml-tests
80
+
81
+ - name : Compile translated tests
82
+ working-directory : rems-project/system-litmus-harness
83
+ run : |
84
+ # should automatically discover and build new tests
85
+ make build
86
+ # validate by checking an arbitrarily-picked test was actually compiled
87
+ [ -f ./bin/litmus/litmus_tests/generated/pgtable/CoWinvT+po.litmus.toml.o ]
0 commit comments