mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Added a bat file for running all the unit tests through different versions of visual studio.
This commit is contained in:
parent
8a9f700f1b
commit
af983d8a6b
@ -27,3 +27,5 @@ docs/docs/python/functions.txt
|
||||
syntax: glob
|
||||
dlib/test/build64/*
|
||||
*.svm
|
||||
dlib/test/build_python
|
||||
dlib/test/test_log.txt
|
||||
|
74
dlib/test/WINDOWS_build_and_run_all_unit_tests.bat
Normal file
74
dlib/test/WINDOWS_build_and_run_all_unit_tests.bat
Normal file
@ -0,0 +1,74 @@
|
||||
date /T > test_log.txt
|
||||
time /T >> test_log.txt
|
||||
|
||||
rem the pings are to wait between builds so visual studio doesn't get in a funk.
|
||||
|
||||
|
||||
|
||||
echo testing python >> test_log.txt
|
||||
rm -rf build_python
|
||||
mkdir build_python
|
||||
cd build_python
|
||||
cmake -G "Visual Studio 14 2015 Win64" ../../../tools/python -DPYTHON3=ON
|
||||
cmake --build . --config Release --target install || exit /B
|
||||
ping 127.0.0.1 -n 5 -w 1000 > null
|
||||
cd ..
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
echo testing vc2013 >> test_log.txt
|
||||
rm -rf build_vc2013_64
|
||||
mkdir build_vc2013_64
|
||||
cd build_vc2013_64
|
||||
cmake -G "Visual Studio 12 2013 Win64" ..
|
||||
cmake --build . --config Release || exit /B
|
||||
ping 127.0.0.1 -n 5 -w 1000 > null
|
||||
cmake --build . --config Debug || exit /B
|
||||
ping 127.0.0.1 -n 5 -w 1000 > null
|
||||
cd Release
|
||||
dtest --runall -d || exit /B
|
||||
cd ..
|
||||
cd ..
|
||||
|
||||
|
||||
|
||||
echo testing vc2012 >> test_log.txt
|
||||
rm -rf build_vc2012_64
|
||||
mkdir build_vc2012_64
|
||||
cd build_vc2012_64
|
||||
cmake -G "Visual Studio 11 2012 Win64" ..
|
||||
cmake --build . --config Release || exit /B
|
||||
ping 127.0.0.1 -n 5 -w 1000 > null
|
||||
cmake --build . --config Debug || exit /B
|
||||
ping 127.0.0.1 -n 5 -w 1000 > null
|
||||
cd Release
|
||||
dtest --runall -d || exit /B
|
||||
cd ..
|
||||
cd ..
|
||||
|
||||
|
||||
echo testing vc2015 >> test_log.txt
|
||||
rm -rf build_vc2015_64
|
||||
mkdir build_vc2015_64
|
||||
cd build_vc2015_64
|
||||
cmake -G "Visual Studio 14 2015 Win64" ..
|
||||
cmake --build . --config Release || exit /B
|
||||
ping 127.0.0.1 -n 5 -w 1000 > null
|
||||
cmake --build . --config Debug || exit /B
|
||||
ping 127.0.0.1 -n 5 -w 1000 > null
|
||||
cd Release
|
||||
dtest --runall -d || exit /B
|
||||
cd ..
|
||||
cd ..
|
||||
|
||||
|
||||
|
||||
del null
|
||||
type test_log.txt
|
||||
|
||||
date /T
|
||||
time /T
|
||||
|
Loading…
Reference in New Issue
Block a user