-
Notifications
You must be signed in to change notification settings - Fork 53
/
manual_ci.sh
executable file
·47 lines (41 loc) · 1.1 KB
/
manual_ci.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
#!/bin/bash
failed_tests=false
run_test() {
eval "$*"
status=$?
if [ $status -ne 0 ];
then
failed_tests=true
echo "============================================================="
echo "= test_failed!"
echo "= $*"
echo "============================================================="
fi
}
cd "$(dirname "${BASH_SOURCE[0]}")"
run_test './bin/lib/dynamic_type/test_dynamic_type_17'
run_test './bin/lib/dynamic_type/test_dynamic_type_20'
run_test './bin/nvfuser_tests'
run_test './bin/test_rng'
run_test './bin/test_host_ir'
if type -p mpirun > /dev/null
then
run_test mpirun -np 1 './bin/test_multidevice'
fi
run_test './bin/test_view'
run_test './bin/test_matmul'
run_test './bin/test_external_src'
run_test './bin/tutorial'
run_test './bin/test_python_frontend'
run_test './bin/test_profiler'
run_test 'pytest tests/python/test_ops.py'
run_test 'pytest tests/python/test_python_frontend.py'
run_test 'pytest tests/python/test_schedule_ops.py'
if $failed_tests;
then
echo "=== CI tests failed, do NOT merge your PR! ==="
exit 1
else
echo "=== CI tests passed, ship it! ==="
exit 0
fi