Add location tracking, syntax error and invalid character reporting
[pitree.git] / n.sh
1 #!/bin/sh
2 if ! test -d tests
3 then
4   mkdir tests
5   cp ../c_to_python.git/ansi_c.t tests
6   cp ../c_to_python.git/t_def.py tests/ansi_c.py.ok
7   cp ../pilex.git/pilex.t tests
8   cp ../pilex.git/t_def.py tests/pilex.py.ok
9   cp ../piyacc.git/piyacc.t tests
10   cp ../piyacc.git/t_def.py tests/piyacc.py.ok
11   cp ../piyacc.git/tests_ast/cal_py.t tests
12   cp ../piyacc.git/tests_ast/t_def.py tests/cal_py.py.ok
13 fi
14 ./pitree.py --python -o tests/ansi_c.py tests/ansi_c.t
15 diff -q tests/ansi_c.py.ok tests/ansi_c.py
16 ./pitree.py --python -o tests/pilex.py tests/pilex.t
17 diff -q tests/pilex.py.ok tests/pilex.py
18 ./pitree.py --python -o tests/piyacc.py tests/piyacc.t
19 diff -q tests/piyacc.py.ok tests/piyacc.py
20 ./pitree.py --python -o tests/cal_py.py tests/cal_py.t
21 diff -q tests/cal_py.py.ok tests/cal_py.py