main.cpp 621 B

1234567891011121314151617181920212223
  1. ///////////////////////////////////////////////////////////////////////////////////////
  2. /// \file main.cpp
  3. /// \brief Main function for the unit tests
  4. ///
  5. /// \author Joe Siltberg
  6. /// $Date: 2013-10-10 10:20:33 +0200 (Thu, 10 Oct 2013) $
  7. ///
  8. ///////////////////////////////////////////////////////////////////////////////////////
  9. #define CATCH_CONFIG_RUNNER
  10. #include "catch.hpp"
  11. #include "shell.h"
  12. int main(int argc, char** argv) {
  13. // Set a shell so we have working dprintf, fail etc.
  14. set_shell(new CommandLineShell("tests.log"));
  15. // Let CATCH do the rest
  16. int result = Catch::Main(argc, argv);
  17. return result;
  18. }