-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·49 lines (40 loc) · 785 Bytes
/
test.sh
File metadata and controls
executable file
·49 lines (40 loc) · 785 Bytes
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
#!/bin/bash
set -e
cyan="\033[0;36m"
nc="\033[0m"
function err_check {
echo -e ${1}
if [[ ${1} != "Hello World! 255" ]]; then
>&2 echo "Invalid output"
exit 1
fi
}
echo -e "${cyan}Installing Python dependencies${nc}"
python3 -m pip install -r requirements.txt
echo
echo -e "${cyan}Linting Python code${nc}"
black --check bin_tests
echo
echo -e "${cyan}Building 64-bit${nc}"
mkdir -p build64
cd build64
cmake .. -DBITS=64
cmake --build .
cd ..
echo
echo -e "${cyan}Building 32-bit${nc}"
mkdir -p build32
cd build32
cmake .. -DBITS=32
cmake --build .
cd ..
echo
echo -e "${cyan}Building 16-bit${nc}"
mkdir -p build16
cd build16
cmake .. -DBITS=16
cmake --build .
cd ..
echo
echo -e "${cyan}Running Python tests${nc}"
pytest -n auto bin_tests/main.py