buildAndTest.cmd 588 B

1234567891011121314151617
  1. rem Start at the root of the Catch project directory, for example:
  2. rem cd Catch2
  3. rem begin-snippet: catch2-build-and-test-win
  4. rem 1. Regenerate the amalgamated distribution
  5. python tools\scripts\generateAmalgamatedFiles.py
  6. rem 2. Configure the full test build
  7. cmake -Bdebug-build -H. -DCMAKE_BUILD_TYPE=Debug -DCATCH_DEVELOPMENT_BUILD=ON -DCATCH_BUILD_EXAMPLES=ON -DCATCH_BUILD_EXTRA_TESTS=ON -DCATCH_ENABLE_CONFIGURE_TESTS=ON
  8. rem 3. Run the actual build
  9. cmake --build debug-build
  10. rem 4. Run the tests using CTest
  11. cd debug-build
  12. ctest -j 4 --output-on-failure -C Debug
  13. rem end-snippet