blob: 81b8e83d6d058d84b684ccdd9f936a2f0b341f1f [file] [log] [blame]
onqtam1586ea22016-05-21 18:02:26 +03001#!/usr/bin/python2.7
2
3import os
4import sys
5
6os.chdir("../")
7
8if not os.path.exists("build"): os.makedirs("build")
9if not os.path.exists("build-mingw"): os.makedirs("build-mingw")
10
11res = 0
12
13os.chdir("build")
14res = res + os.system("cmake .. -G \"Visual Studio 14 2015 Win64\"");
15res = res + os.system("cmake .. -DTEST_MODE=COLLECT");
16res = res + os.system("cmake --build .");
17res = res + os.system("ctest -C Debug --output-on-failure");
18res = res + os.system("cmake .. -DTEST_MODE=COMPARE");
19res = res + os.system("ctest -C Debug --output-on-failure");
20os.chdir("../")
21
22os.chdir("build-mingw")
23res = res + os.system("cmake .. -G \"MinGW Makefiles\" -DCMAKE_BUILD_TYPE=Debug");
24res = res + os.system("cmake .. -G \"MinGW Makefiles\"");
25res = res + os.system("cmake .. -DTEST_MODE=COMPARE");
26res = res + os.system("cmake --build .");
27res = res + os.system("ctest --output-on-failure");
28os.chdir("../")
29
30os.chdir("scripts")
31
32if res != 0:
33 print "!!! OMGOMGOMG SOMETHING FAILED!\n"
34 print "!!! OMGOMGOMG SOMETHING FAILED!\n"
35 print "!!! OMGOMGOMG SOMETHING FAILED!\n"
36 sys.exit(1)