Debian Codegraph @

scripts/vsts-vs2013.cmd

raw
1
2 set
3 echo "Build"
4 md build
5 cd build
6 call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64
7 cmake -DBUILD_DOTNET_BINDINGS=True -DBUILD_JAVA_BINDINGS=True -DBUILD_PYTHON_BINDINGS=True -G "NMake Makefiles" ../
8 nmake
9 if ERRORLEVEL 1 exit 1
10
11 rem echo "Test python bindings"
12 rem pushd python
13 rem python z3test.py z3
14 rem if ERRORLEVEL 1 exit 1
15 rem python z3test.py z3num
16 rem if ERRORLEVEL 1 exit 1
17 rem popd
18
19 echo "Build and run examples"
20 nmake cpp_example
21 examples\cpp_example_build_dir\cpp_example.exe
22 if ERRORLEVEL 1 exit 1
23
24 nmake c_example
25 examples\c_example_build_dir\c_example.exe
26 if ERRORLEVEL 1 exit 1
27
28 rem nmake java_example
29 rem java_example.exe
30 if ERRORLEVEL 1 exit 1
31
32 rem nmake dotnet_example
33 rem dotnet_example.exe
34 if ERRORLEVEL 1 exit 1
35
36 echo "Build and run unit tests"
37 nmake test-z3
38 rem TBD: test error level
39 rem test-z3.exe -a
40
41
42 cd ..
43 echo "Run regression tests"
44 git clone https://github.com/z3prover/z3test z3test
45 echo "test-benchmarks"
46 python z3test\scripts\test_benchmarks.py build\z3.exe z3test\regressions\smt2
47 if ERRORLEVEL 1 exit 1
48 echo "benchmarks tested"
49