Browse Source

moved tests to src folder, have several binaries now instead of a single monolithic test

tempestpy_adaptions
sjunges 8 years ago
parent
commit
f196afcb66
  1. 6
      CMakeLists.txt
  2. 9
      src/CMakeLists.txt
  3. 4
      src/storm/CMakeLists.txt
  4. 28
      src/test/CMakeLists.txt
  5. 0
      src/test/adapter/MathsatExpressionAdapterTest.cpp
  6. 0
      src/test/adapter/Z3ExpressionAdapterTest.cpp
  7. 0
      src/test/builder/DdJaniModelBuilderTest.cpp
  8. 0
      src/test/builder/DdPrismModelBuilderTest.cpp
  9. 0
      src/test/builder/ExplicitJaniModelBuilderTest.cpp
  10. 0
      src/test/builder/ExplicitJitJaniModelBuilderTest.cpp
  11. 0
      src/test/builder/ExplicitPrismModelBuilderTest.cpp
  12. 0
      src/test/builder/SmallPrismTest.nm
  13. 0
      src/test/builder/SmallPrismTest2.nm
  14. 0
      src/test/builder/brp-16-2.pm
  15. 0
      src/test/builder/cluster2.sm
  16. 0
      src/test/builder/coin2-2-illegalSynchronizingWrite.nm
  17. 0
      src/test/builder/coin2-2.nm
  18. 0
      src/test/builder/crowds-5-5.pm
  19. 0
      src/test/builder/csma2-2.nm
  20. 0
      src/test/builder/die.pm
  21. 0
      src/test/builder/die_c1.nm
  22. 0
      src/test/builder/die_selection.nm
  23. 0
      src/test/builder/die_selection.nm.backup
  24. 0
      src/test/builder/embedded2.sm
  25. 0
      src/test/builder/firewire3-0.5.nm
  26. 0
      src/test/builder/fms2.sm
  27. 0
      src/test/builder/hybrid_states.ma
  28. 0
      src/test/builder/leader-3-5.pm
  29. 0
      src/test/builder/leader3.nm
  30. 0
      src/test/builder/leader4.nm
  31. 0
      src/test/builder/nand-5-2.pm
  32. 0
      src/test/builder/parametric_die.pm
  33. 0
      src/test/builder/polling2.sm
  34. 0
      src/test/builder/simple.ma
  35. 0
      src/test/builder/stream2.ma
  36. 0
      src/test/builder/system_composition.nm
  37. 0
      src/test/builder/system_composition2.nm
  38. 0
      src/test/builder/tandem5.sm
  39. 0
      src/test/builder/two_dice.nm
  40. 0
      src/test/builder/wlan0-2-2.nm
  41. 0
      src/test/logic/FragmentCheckerTest.cpp
  42. 0
      src/test/modelchecker/EigenDtmcPrctlModelCheckerTest.cpp
  43. 0
      src/test/modelchecker/EigenDtmcPrctlModelCheckerTest.hpp
  44. 0
      src/test/modelchecker/GmmxxCtmcCslModelCheckerTest.cpp
  45. 0
      src/test/modelchecker/GmmxxDtmcPrctlModelCheckerTest.cpp
  46. 0
      src/test/modelchecker/GmmxxHybridCtmcCslModelCheckerTest.cpp
  47. 0
      src/test/modelchecker/GmmxxHybridDtmcPrctlModelCheckerTest.cpp
  48. 0
      src/test/modelchecker/GmmxxHybridMdpPrctlModelCheckerTest.cpp
  49. 0
      src/test/modelchecker/GmmxxMdpPrctlModelCheckerTest.cpp
  50. 0
      src/test/modelchecker/NativeCtmcCslModelCheckerTest.cpp
  51. 0
      src/test/modelchecker/NativeDtmcPrctlModelCheckerTest.cpp
  52. 0
      src/test/modelchecker/NativeHybridCtmcCslModelCheckerTest.cpp
  53. 0
      src/test/modelchecker/NativeHybridDtmcPrctlModelCheckerTest.cpp
  54. 0
      src/test/modelchecker/NativeHybridMdpPrctlModelCheckerTest.cpp
  55. 0
      src/test/modelchecker/NativeMdpPrctlModelCheckerTest.cpp
  56. 0
      src/test/modelchecker/SparseDtmcEliminationModelCheckerTest.cpp
  57. 0
      src/test/modelchecker/SparseDtmcRegionModelCheckerTest.cpp
  58. 0
      src/test/modelchecker/SparseExplorationModelCheckerTest.cpp
  59. 0
      src/test/modelchecker/SparseMaPcaaModelCheckerTest.cpp
  60. 0
      src/test/modelchecker/SparseMdpPcaaModelCheckerTest.cpp
  61. 0
      src/test/modelchecker/SparseMdpRegionModelCheckerTest.cpp
  62. 0
      src/test/modelchecker/SymbolicDtmcPrctlModelCheckerTest.cpp
  63. 0
      src/test/modelchecker/SymbolicMdpPrctlModelCheckerTest.cpp
  64. 0
      src/test/modelchecker/TopologicalValueIterationMdpPrctlModelCheckerTest.cpp
  65. 0
      src/test/modelchecker/multiobjective1.nm
  66. 0
      src/test/modelchecker/multiobjective2.nm
  67. 0
      src/test/modelchecker/scheduler_generation.nm
  68. 0
      src/test/modelchecker/test_conditional.pm
  69. 0
      src/test/modelchecker/tiny_rewards.nm
  70. 0
      src/test/parser/.gitignore
  71. 0
      src/test/parser/AtomicPropositionLabelingParserTest.cpp
  72. 0
      src/test/parser/AutoParserTest.cpp
  73. 0
      src/test/parser/DeterministicModelParserTest.cpp
  74. 0
      src/test/parser/DeterministicSparseTransitionParserTest.cpp
  75. 0
      src/test/parser/FormulaParserTest.cpp
  76. 0
      src/test/parser/JaniParserTest.cpp
  77. 0
      src/test/parser/MappedFileTest.cpp
  78. 0
      src/test/parser/MarkovAutomatonParserTest.cpp
  79. 0
      src/test/parser/MarkovAutomatonSparseTransitionParserTest.cpp
  80. 0
      src/test/parser/NondeterministicModelParserTest.cpp
  81. 0
      src/test/parser/NondeterministicSparseTransitionParserTest.cpp
  82. 0
      src/test/parser/PrismParserTest.cpp
  83. 0
      src/test/parser/SparseStateRewardParserTest.cpp
  84. 0
      src/test/parser/lab_files/autoParser.lab
  85. 0
      src/test/parser/lab_files/dtmc_actionTest.lab
  86. 0
      src/test/parser/lab_files/dtmc_general.lab
  87. 0
      src/test/parser/lab_files/dtmc_mismatched.lab
  88. 0
      src/test/parser/lab_files/labParser/declarationMisspell.lab
  89. 0
      src/test/parser/lab_files/labParser/doubledLines.lab
  90. 0
      src/test/parser/lab_files/labParser/doubledLinesSkipped.lab
  91. 0
      src/test/parser/lab_files/labParser/endMisspell.lab
  92. 0
      src/test/parser/lab_files/labParser/labelForNonexistentState.lab
  93. 0
      src/test/parser/lab_files/labParser/noDeclarationTag.lab
  94. 0
      src/test/parser/lab_files/labParser/noEndTag.lab
  95. 0
      src/test/parser/lab_files/labParser/noLabelsDecNoneGiven.lab
  96. 0
      src/test/parser/lab_files/labParser/swappedStateAndProposition.lab
  97. 0
      src/test/parser/lab_files/labParser/undeclaredLabelsGiven.lab
  98. 0
      src/test/parser/lab_files/labParser/withWhitespaces.lab
  99. 0
      src/test/parser/lab_files/labParser/withoutWhitespaces.lab
  100. 0
      src/test/parser/lab_files/ma_cslFilterTest.lab

6
CMakeLists.txt

@ -79,7 +79,7 @@ if(STORM_COMPILE_WITH_CCACHE)
endif()
# Base path for test files
set(STORM_CPP_TESTS_BASE_PATH "${PROJECT_SOURCE_DIR}/test")
set(STORM_CPP_TESTS_BASE_PATH "${PROJECT_SOURCE_DIR}/src/test")
set(STORMPY_OUTPUT_DIR "${PROJECT_BINARY_DIR}/stormpy")
set(STORMPY_SOURCE_DIR "${PROJECT_SOURCE_DIR}/stormpy")
@ -330,7 +330,9 @@ set(STORM_GENERATED_SOURCES "${PROJECT_BINARY_DIR}/src/storm/utility/storm-versi
# Add the binary dir include directory for storm-config.h
include_directories("${PROJECT_BINARY_DIR}/include")
include(CTest)
add_subdirectory(src)
add_subdirectory(test)
include(StormCPackConfig.cmake)

9
src/CMakeLists.txt

@ -1,3 +1,12 @@
add_subdirectory(storm)
add_subdirectory(storm-pgcl)
add_subdirectory(storm-pgcl-cli)
add_subdirectory(test)
file(GLOB_RECURSE ALL_FILES ${PROJECT_SOURCE_DIR}/src/*.h ${PROJECT_SOURCE_DIR}/src/*.cpp)
register_source_groups_from_filestructure("${ALL_FILES}")

4
src/storm/CMakeLists.txt

@ -18,10 +18,6 @@ set(STORM_MAIN_SOURCES ${STORM_MAIN_FILE})
set(STORM_DFT_MAIN_SOURCES ${STORM_DFT_MAIN_FILE})
set(STORM_GSPN_MAIN_SOURCES ${STORM_GSPN_MAIN_FILE})
file(GLOB_RECURSE ALL_FILES ${PROJECT_SOURCE_DIR}/src/storm/*.h ${PROJECT_SOURCE_DIR}/src/storm/*.cpp)
register_source_groups_from_filestructure("${ALL_FILES}")
# Add custom additional include or link directories
if (ADDITIONAL_INCLUDE_DIRS)
message(STATUS "StoRM - Using additional include directories ${ADDITIONAL_INCLUDE_DIRS}")

28
src/test/CMakeLists.txt

@ -0,0 +1,28 @@
# Test Sources
# Note that the tests also need the source files, except for the main file
include_directories(${GTEST_INCLUDE_DIR})
configure_file (
"${PROJECT_SOURCE_DIR}/src/test/storm-test-config.h.in"
"${PROJECT_BINARY_DIR}/src/test/storm-config.h"
)
foreach (testsuite adapter builder logic modelchecker parser permissiveschedulers solver storage transformer utility)
file(GLOB_RECURSE TEST_${testsuite}_FILES ${STORM_CPP_TESTS_BASE_PATH}/${testsuite}/*.h ${STORM_CPP_TESTS_BASE_PATH}/${testsuite}/*.cpp)
add_executable (test-${testsuite} ${TEST_${testsuite}_FILES})
target_link_libraries(test-${testsuite} storm)
target_link_libraries(test-${testsuite} ${STORM_TEST_LINK_LIBRARIES})
add_dependencies(test-${testsuite} test-resources)
add_test(run-test-${testsuite} test-${testsuite})
endforeach ()
#INSTALL(TARGETS storm-functional-tests
# RUNTIME DESTINATION bin
# LIBRARY DESTINATION lib
# ARCHIVE DESTINATION lib
#)

0
test/functional/adapter/MathsatExpressionAdapterTest.cpp → src/test/adapter/MathsatExpressionAdapterTest.cpp

0
test/functional/adapter/Z3ExpressionAdapterTest.cpp → src/test/adapter/Z3ExpressionAdapterTest.cpp

0
test/functional/builder/DdJaniModelBuilderTest.cpp → src/test/builder/DdJaniModelBuilderTest.cpp

0
test/functional/builder/DdPrismModelBuilderTest.cpp → src/test/builder/DdPrismModelBuilderTest.cpp

0
test/functional/builder/ExplicitJaniModelBuilderTest.cpp → src/test/builder/ExplicitJaniModelBuilderTest.cpp

0
test/functional/builder/ExplicitJitJaniModelBuilderTest.cpp → src/test/builder/ExplicitJitJaniModelBuilderTest.cpp

0
test/functional/builder/ExplicitPrismModelBuilderTest.cpp → src/test/builder/ExplicitPrismModelBuilderTest.cpp

0
test/functional/builder/SmallPrismTest.nm → src/test/builder/SmallPrismTest.nm

0
test/functional/builder/SmallPrismTest2.nm → src/test/builder/SmallPrismTest2.nm

0
test/functional/builder/brp-16-2.pm → src/test/builder/brp-16-2.pm

0
test/functional/builder/cluster2.sm → src/test/builder/cluster2.sm

0
test/functional/builder/coin2-2-illegalSynchronizingWrite.nm → src/test/builder/coin2-2-illegalSynchronizingWrite.nm

0
test/functional/builder/coin2-2.nm → src/test/builder/coin2-2.nm

0
test/functional/builder/crowds-5-5.pm → src/test/builder/crowds-5-5.pm

0
test/functional/builder/csma2-2.nm → src/test/builder/csma2-2.nm

0
test/functional/builder/die.pm → src/test/builder/die.pm

0
test/functional/builder/die_c1.nm → src/test/builder/die_c1.nm

0
test/functional/builder/die_selection.nm → src/test/builder/die_selection.nm

0
test/functional/builder/die_selection.nm.backup → src/test/builder/die_selection.nm.backup

0
test/functional/builder/embedded2.sm → src/test/builder/embedded2.sm

0
test/functional/builder/firewire3-0.5.nm → src/test/builder/firewire3-0.5.nm

0
test/functional/builder/fms2.sm → src/test/builder/fms2.sm

0
test/functional/builder/hybrid_states.ma → src/test/builder/hybrid_states.ma

0
test/functional/builder/leader-3-5.pm → src/test/builder/leader-3-5.pm

0
test/functional/builder/leader3.nm → src/test/builder/leader3.nm

0
test/functional/builder/leader4.nm → src/test/builder/leader4.nm

0
test/functional/builder/nand-5-2.pm → src/test/builder/nand-5-2.pm

0
test/functional/builder/parametric_die.pm → src/test/builder/parametric_die.pm

0
test/functional/builder/polling2.sm → src/test/builder/polling2.sm

0
test/functional/builder/simple.ma → src/test/builder/simple.ma

0
test/functional/builder/stream2.ma → src/test/builder/stream2.ma

0
test/functional/builder/system_composition.nm → src/test/builder/system_composition.nm

0
test/functional/builder/system_composition2.nm → src/test/builder/system_composition2.nm

0
test/functional/builder/tandem5.sm → src/test/builder/tandem5.sm

0
test/functional/builder/two_dice.nm → src/test/builder/two_dice.nm

0
test/functional/builder/wlan0-2-2.nm → src/test/builder/wlan0-2-2.nm

0
test/functional/logic/FragmentCheckerTest.cpp → src/test/logic/FragmentCheckerTest.cpp

0
test/functional/modelchecker/EigenDtmcPrctlModelCheckerTest.cpp → src/test/modelchecker/EigenDtmcPrctlModelCheckerTest.cpp

0
test/functional/modelchecker/EigenDtmcPrctlModelCheckerTest.hpp → src/test/modelchecker/EigenDtmcPrctlModelCheckerTest.hpp

0
test/functional/modelchecker/GmmxxCtmcCslModelCheckerTest.cpp → src/test/modelchecker/GmmxxCtmcCslModelCheckerTest.cpp

0
test/functional/modelchecker/GmmxxDtmcPrctlModelCheckerTest.cpp → src/test/modelchecker/GmmxxDtmcPrctlModelCheckerTest.cpp

0
test/functional/modelchecker/GmmxxHybridCtmcCslModelCheckerTest.cpp → src/test/modelchecker/GmmxxHybridCtmcCslModelCheckerTest.cpp

0
test/functional/modelchecker/GmmxxHybridDtmcPrctlModelCheckerTest.cpp → src/test/modelchecker/GmmxxHybridDtmcPrctlModelCheckerTest.cpp

0
test/functional/modelchecker/GmmxxHybridMdpPrctlModelCheckerTest.cpp → src/test/modelchecker/GmmxxHybridMdpPrctlModelCheckerTest.cpp

0
test/functional/modelchecker/GmmxxMdpPrctlModelCheckerTest.cpp → src/test/modelchecker/GmmxxMdpPrctlModelCheckerTest.cpp

0
test/functional/modelchecker/NativeCtmcCslModelCheckerTest.cpp → src/test/modelchecker/NativeCtmcCslModelCheckerTest.cpp

0
test/functional/modelchecker/NativeDtmcPrctlModelCheckerTest.cpp → src/test/modelchecker/NativeDtmcPrctlModelCheckerTest.cpp

0
test/functional/modelchecker/NativeHybridCtmcCslModelCheckerTest.cpp → src/test/modelchecker/NativeHybridCtmcCslModelCheckerTest.cpp

0
test/functional/modelchecker/NativeHybridDtmcPrctlModelCheckerTest.cpp → src/test/modelchecker/NativeHybridDtmcPrctlModelCheckerTest.cpp

0
test/functional/modelchecker/NativeHybridMdpPrctlModelCheckerTest.cpp → src/test/modelchecker/NativeHybridMdpPrctlModelCheckerTest.cpp

0
test/functional/modelchecker/NativeMdpPrctlModelCheckerTest.cpp → src/test/modelchecker/NativeMdpPrctlModelCheckerTest.cpp

0
test/functional/modelchecker/SparseDtmcEliminationModelCheckerTest.cpp → src/test/modelchecker/SparseDtmcEliminationModelCheckerTest.cpp

0
test/functional/modelchecker/SparseDtmcRegionModelCheckerTest.cpp → src/test/modelchecker/SparseDtmcRegionModelCheckerTest.cpp

0
test/functional/modelchecker/SparseExplorationModelCheckerTest.cpp → src/test/modelchecker/SparseExplorationModelCheckerTest.cpp

0
test/functional/modelchecker/SparseMaPcaaModelCheckerTest.cpp → src/test/modelchecker/SparseMaPcaaModelCheckerTest.cpp

0
test/functional/modelchecker/SparseMdpPcaaModelCheckerTest.cpp → src/test/modelchecker/SparseMdpPcaaModelCheckerTest.cpp

0
test/functional/modelchecker/SparseMdpRegionModelCheckerTest.cpp → src/test/modelchecker/SparseMdpRegionModelCheckerTest.cpp

0
test/functional/modelchecker/SymbolicDtmcPrctlModelCheckerTest.cpp → src/test/modelchecker/SymbolicDtmcPrctlModelCheckerTest.cpp

0
test/functional/modelchecker/SymbolicMdpPrctlModelCheckerTest.cpp → src/test/modelchecker/SymbolicMdpPrctlModelCheckerTest.cpp

0
test/functional/modelchecker/TopologicalValueIterationMdpPrctlModelCheckerTest.cpp → src/test/modelchecker/TopologicalValueIterationMdpPrctlModelCheckerTest.cpp

0
test/functional/modelchecker/multiobjective1.nm → src/test/modelchecker/multiobjective1.nm

0
test/functional/modelchecker/multiobjective2.nm → src/test/modelchecker/multiobjective2.nm

0
test/functional/modelchecker/scheduler_generation.nm → src/test/modelchecker/scheduler_generation.nm

0
test/functional/modelchecker/test_conditional.pm → src/test/modelchecker/test_conditional.pm

0
test/functional/modelchecker/tiny_rewards.nm → src/test/modelchecker/tiny_rewards.nm

0
test/functional/parser/.gitignore → src/test/parser/.gitignore

0
test/functional/parser/AtomicPropositionLabelingParserTest.cpp → src/test/parser/AtomicPropositionLabelingParserTest.cpp

0
test/functional/parser/AutoParserTest.cpp → src/test/parser/AutoParserTest.cpp

0
test/functional/parser/DeterministicModelParserTest.cpp → src/test/parser/DeterministicModelParserTest.cpp

0
test/functional/parser/DeterministicSparseTransitionParserTest.cpp → src/test/parser/DeterministicSparseTransitionParserTest.cpp

0
test/functional/parser/FormulaParserTest.cpp → src/test/parser/FormulaParserTest.cpp

0
test/functional/parser/JaniParserTest.cpp → src/test/parser/JaniParserTest.cpp

0
test/functional/parser/MappedFileTest.cpp → src/test/parser/MappedFileTest.cpp

0
test/functional/parser/MarkovAutomatonParserTest.cpp → src/test/parser/MarkovAutomatonParserTest.cpp

0
test/functional/parser/MarkovAutomatonSparseTransitionParserTest.cpp → src/test/parser/MarkovAutomatonSparseTransitionParserTest.cpp

0
test/functional/parser/NondeterministicModelParserTest.cpp → src/test/parser/NondeterministicModelParserTest.cpp

0
test/functional/parser/NondeterministicSparseTransitionParserTest.cpp → src/test/parser/NondeterministicSparseTransitionParserTest.cpp

0
test/functional/parser/PrismParserTest.cpp → src/test/parser/PrismParserTest.cpp

0
test/functional/parser/SparseStateRewardParserTest.cpp → src/test/parser/SparseStateRewardParserTest.cpp

0
test/functional/parser/lab_files/autoParser.lab → src/test/parser/lab_files/autoParser.lab

0
test/functional/parser/lab_files/dtmc_actionTest.lab → src/test/parser/lab_files/dtmc_actionTest.lab

0
test/functional/parser/lab_files/dtmc_general.lab → src/test/parser/lab_files/dtmc_general.lab

0
test/functional/parser/lab_files/dtmc_mismatched.lab → src/test/parser/lab_files/dtmc_mismatched.lab

0
test/functional/parser/lab_files/labParser/declarationMisspell.lab → src/test/parser/lab_files/labParser/declarationMisspell.lab

0
test/functional/parser/lab_files/labParser/doubledLines.lab → src/test/parser/lab_files/labParser/doubledLines.lab

0
test/functional/parser/lab_files/labParser/doubledLinesSkipped.lab → src/test/parser/lab_files/labParser/doubledLinesSkipped.lab

0
test/functional/parser/lab_files/labParser/endMisspell.lab → src/test/parser/lab_files/labParser/endMisspell.lab

0
test/functional/parser/lab_files/labParser/labelForNonexistentState.lab → src/test/parser/lab_files/labParser/labelForNonexistentState.lab

0
test/functional/parser/lab_files/labParser/noDeclarationTag.lab → src/test/parser/lab_files/labParser/noDeclarationTag.lab

0
test/functional/parser/lab_files/labParser/noEndTag.lab → src/test/parser/lab_files/labParser/noEndTag.lab

0
test/functional/parser/lab_files/labParser/noLabelsDecNoneGiven.lab → src/test/parser/lab_files/labParser/noLabelsDecNoneGiven.lab

0
test/functional/parser/lab_files/labParser/swappedStateAndProposition.lab → src/test/parser/lab_files/labParser/swappedStateAndProposition.lab

0
test/functional/parser/lab_files/labParser/undeclaredLabelsGiven.lab → src/test/parser/lab_files/labParser/undeclaredLabelsGiven.lab

0
test/functional/parser/lab_files/labParser/withWhitespaces.lab → src/test/parser/lab_files/labParser/withWhitespaces.lab

0
test/functional/parser/lab_files/labParser/withoutWhitespaces.lab → src/test/parser/lab_files/labParser/withoutWhitespaces.lab

0
test/functional/parser/lab_files/ma_cslFilterTest.lab → src/test/parser/lab_files/ma_cslFilterTest.lab

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save