script.cmd 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. @echo on
  2. :: Perform C Tests with standard configuration
  3. :: -----------------------------------------------------
  4. cd %APPVEYOR_BUILD_FOLDER%
  5. mkdir build
  6. cd build
  7. cmake -G "%CMAKE_PROJECT%" -DUNITTESTS=ON ..
  8. cmake --build .
  9. %APPVEYOR_BUILD_FOLDER%\build\out\osqp_tester.exe
  10. if errorlevel 1 exit /b 1
  11. :: Perform C Tests with floats
  12. :: -----------------------------------------------------
  13. cd %APPVEYOR_BUILD_FOLDER%
  14. rmdir /s /q build
  15. mkdir build
  16. cd build
  17. cmake -G "%CMAKE_PROJECT%" -DDFLOAT=ON -DUNITTESTS=ON ..
  18. cmake --build .
  19. %APPVEYOR_BUILD_FOLDER%\build\out\osqp_tester.exe
  20. if errorlevel 1 exit /b 1
  21. :: Perform C Tests with short integers
  22. :: -----------------------------------------------------
  23. cd %APPVEYOR_BUILD_FOLDER%
  24. rmdir /s /q build
  25. mkdir build
  26. cd build
  27. cmake -G "%CMAKE_PROJECT%" -DDLONG=OFF -DUNITTESTS=ON ..
  28. cmake --build .
  29. %APPVEYOR_BUILD_FOLDER%\build\out\osqp_tester.exe
  30. if errorlevel 1 exit /b 1
  31. :: Perform C Tests without printing
  32. :: -----------------------------------------------------
  33. cd %APPVEYOR_BUILD_FOLDER%
  34. rmdir /s /q build
  35. mkdir build
  36. cd build
  37. cmake -G "%CMAKE_PROJECT%" -DPRINTING=OFF -DUNITTESTS=ON ..
  38. cmake --build .
  39. %APPVEYOR_BUILD_FOLDER%\build\out\osqp_tester.exe
  40. if errorlevel 1 exit /b 1
  41. cd %APPVEYOR_BUILD_FOLDER%
  42. @echo off