forked from rmacnak/primordialsoup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test
executable file
·74 lines (58 loc) · 2.26 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
#!/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
}
case $(uname -m) in
x86_64)
case $(uname -s) in
Darwin) test_x64 ;;
*) test_x64_and_ia32
esac ;;
aarch64) test_arm64 ;;
armv7l) test_arm ;;
armv6l) test_arm ;;
mips) test_mips ;;
*) echo Unknown architecture $(uname -m)
esac