You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.4 KiB

  1. #include <iostream>
  2. #include <list>
  3. #include <string>
  4. #include "storm-config.h"
  5. #include "gtest/gtest.h"
  6. #include "src/settings/SettingsManager.h"
  7. int main(int argc, char* argv[]) {
  8. std::cout << "StoRM (Functional) Testing Suite" << std::endl;
  9. testing::InitGoogleTest(&argc, argv);
  10. int result = RUN_ALL_TESTS();
  11. std::list<std::string> untestedModules;
  12. #ifndef STORM_HAVE_GUROBI
  13. untestedModules.push_back("Gurobi");
  14. #endif
  15. #ifndef STORM_HAVE_CUDA
  16. untestedModules.push_back("CUDA");
  17. #endif
  18. #ifndef STORM_HAVE_GLPK
  19. untestedModules.push_back("GLPK");
  20. #endif
  21. #ifndef STORM_HAVE_Z3
  22. untestedModules.push_back("Z3");
  23. #endif
  24. #ifndef STORM_HAVE_MSAT
  25. untestedModules.push_back("MathSAT");
  26. #endif
  27. #ifndef STORM_HAVE_INTELTBB
  28. untestedModules.push_back("Intel TBB");
  29. #endif
  30. if (result == 0) {
  31. if (untestedModules.empty()) {
  32. std::cout << std::endl << "ALL TESTS PASSED!" << std::endl;
  33. } else{
  34. std::cout << std::endl << "StoRM was built without the following optional dependencies: ";
  35. auto iter = untestedModules.begin();
  36. while (iter != untestedModules.end()) {
  37. std::cout << *iter;
  38. ++iter;
  39. if (iter != untestedModules.end()) {
  40. std::cout << ", ";
  41. }
  42. }
  43. std::cout << std::endl << "Functionality using that modules could not be tested." << std::endl << std::endl << "TESTS PASSED!" << std::endl;
  44. }
  45. } else{
  46. std::cout << std::endl << "TESTS FAILED!" << std::endl;
  47. }
  48. return result;
  49. }