forked from lcompilers/lpython
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.xsh
33 lines (29 loc) · 1.06 KB
/
test.xsh
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
#!/usr/bin/env xonsh
#
$RAISE_SUBPROC_ERROR = True
trace on
# Run some simple compilation tests, works everywhere:
src/bin/lpython --version
# Compile and link separately
src/bin/lpython -c examples/expr2.py -o expr2.o
src/bin/lpython -o expr2 expr2.o
./expr2
# Test the new Python frontend, manually for now:
src/bin/lpython --show-ast tests/doconcurrentloop_01.py
src/bin/lpython --show-asr tests/doconcurrentloop_01.py
src/bin/lpython --show-cpp tests/doconcurrentloop_01.py
if $WIN == "1":
python run_tests.py --skip-run-with-dbg --no-color
else:
python run_tests.py
src/bin/lpython examples/expr2.py
src/bin/lpython --backend=c examples/expr2.py
cd integration_tests
if $(uname).strip() == "Linux":
python run_tests.py -j16 -b llvm cpython c wasm
python run_tests.py -j16 -b llvm cpython c wasm -f
python run_tests.py -j16 -b x86 wasm_x86 wasm_x64
python run_tests.py -j16 -b x86 wasm_x86 wasm_x64 -f
else:
python run_tests.py -j1 -b llvm cpython c wasm
python run_tests.py -j1 -b llvm cpython c wasm -f