-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompile_all.sh
executable file
·52 lines (44 loc) · 1.12 KB
/
compile_all.sh
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
#!/bin/bash
echo "########## Building and running tests for MIPS on x86..."
if [ $# -ne 0 ]; then
if [ $1 == debug ]; then
# This compile with debug mode.
echo "########## Building custom mips tests"
./compile_mips-test.sh
if [ $? != 0 ]; then
echo "Error building v8."
exit
fi
fi
fi
echo "########## Building v8"
scons simulator=mips regexp=interpreted -j3
if [ $? != 0 ]; then
echo "Error building v8."
exit
fi
echo "########## Building shell"
scons simulator=mips regexp=interpreted sample=shell -j3
if [ $? != 0 ]; then
echo "Error building shell."
exit
fi
echo "########## Building d8"
scons simulator=mips regexp=interpreted d8 -j3
if [ $? != 0 ]; then
echo "Error building d8."
exit
fi
echo "########## Building cctests"
scons simulator=mips regexp=interpreted cctests -j3
if [ $? != 0 ]; then
echo "Error building cctests."
exit
fi
echo "########## Starting mips tests..."
tools/test.py --simulator=mips -S regexp=interpreted cctest/test-assembler-mips cctest/test-mips
if [ $? != 0 ]; then
echo "Error running test-assembler-mips."
exit
fi
echo "########## Everything was built and tested successfully"