forked from rmacnak/primordialsoup
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtest
executable file
·95 lines (73 loc) · 2.96 KB
/
test
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/bin/sh -e
test_x64() {
set -x
out/DebugX64/primordialsoup out/snapshots/HelloApp.vfuel
out/ReleaseX64/primordialsoup out/snapshots/HelloApp.vfuel
out/DebugX64/primordialsoup out/snapshots/TestRunner.vfuel
out/ReleaseX64/primordialsoup out/snapshots/TestRunner.vfuel
out/ReleaseX64/primordialsoup out/snapshots/BenchmarkRunner.vfuel
}
test_x64_and_ia32() {
set -x
out/DebugIA32/primordialsoup out/snapshots/HelloApp.vfuel
out/DebugX64/primordialsoup out/snapshots/HelloApp.vfuel
out/ReleaseIA32/primordialsoup out/snapshots/HelloApp.vfuel
out/ReleaseX64/primordialsoup out/snapshots/HelloApp.vfuel
out/DebugIA32/primordialsoup out/snapshots/TestRunner.vfuel
out/DebugX64/primordialsoup out/snapshots/TestRunner.vfuel
out/ReleaseIA32/primordialsoup out/snapshots/TestRunner.vfuel
out/ReleaseX64/primordialsoup out/snapshots/TestRunner.vfuel
out/ReleaseIA32/primordialsoup out/snapshots/BenchmarkRunner.vfuel
out/ReleaseX64/primordialsoup out/snapshots/BenchmarkRunner.vfuel
}
test_arm64() {
set -x
out/DebugARM64/primordialsoup out/snapshots/HelloApp.vfuel
out/ReleaseARM64/primordialsoup out/snapshots/HelloApp.vfuel
out/DebugARM64/primordialsoup out/snapshots/TestRunner.vfuel
out/ReleaseARM64/primordialsoup out/snapshots/TestRunner.vfuel
out/ReleaseARM64/primordialsoup out/snapshots/BenchmarkRunner.vfuel
}
test_arm() {
set -x
out/DebugARM/primordialsoup out/snapshots/HelloApp.vfuel
out/ReleaseARM/primordialsoup out/snapshots/HelloApp.vfuel
out/DebugARM/primordialsoup out/snapshots/TestRunner.vfuel
out/ReleaseARM/primordialsoup out/snapshots/TestRunner.vfuel
out/ReleaseARM/primordialsoup out/snapshots/BenchmarkRunner.vfuel
}
test_mips() {
set -x
out/DebugMIPS/primordialsoup out/snapshots/HelloApp.vfuel
out/ReleaseMIPS/primordialsoup out/snapshots/HelloApp.vfuel
out/DebugMIPS/primordialsoup out/snapshots/TestRunner.vfuel
out/ReleaseMIPS/primordialsoup out/snapshots/TestRunner.vfuel
out/ReleaseMIPS/primordialsoup out/snapshots/BenchmarkRunner.vfuel
}
test_riscv64() {
set -x
out/DebugRISCV64/primordialsoup out/snapshots/HelloApp.vfuel
out/ReleaseRISCV64/primordialsoup out/snapshots/HelloApp.vfuel
out/DebugRISCV64/primordialsoup out/snapshots/TestRunner.vfuel
out/ReleaseRISCV64/primordialsoup out/snapshots/TestRunner.vfuel
out/ReleaseRISCV64/primordialsoup out/snapshots/BenchmarkRunner.vfuel
}
test_riscv32() {
set -x
out/DebugRISCV32/primordialsoup out/snapshots/HelloApp.vfuel
out/ReleaseRISCV32/primordialsoup out/snapshots/HelloApp.vfuel
out/DebugRISCV32/primordialsoup out/snapshots/TestRunner.vfuel
out/ReleaseRISCV32/primordialsoup out/snapshots/TestRunner.vfuel
out/ReleaseRISCV32/primordialsoup out/snapshots/BenchmarkRunner.vfuel
}
case $(uname -m) in
x86_64) test_x64 ;;
aarch64) test_arm64 ;;
arm64) test_arm64 ;;
armv7l) test_arm ;;
armv6l) test_arm ;;
mips) test_mips ;;
riscv64) test_riscv64 ;;
riscv32) test_riscv32 ;;
*) echo Unknown architecture $(uname -m)
esac