diff --git a/Tests/Functional/Python/PyCore/CMakeLists.txt b/Tests/Functional/Python/PyCore/CMakeLists.txt index c7b1d79d16343e901daa1efcf045d46a164027aa..9d195c49ec556d2b9f26b5c25a5f7fb7dd0c69a6 100644 --- a/Tests/Functional/Python/PyCore/CMakeLists.txt +++ b/Tests/Functional/Python/PyCore/CMakeLists.txt @@ -5,8 +5,6 @@ set(OUTPUT_DIR ${TEST_OUTPUT_DIR_PY_CORE}) file(MAKE_DIRECTORY ${OUTPUT_DIR}) -set(PYCORE_REFERENCE_DIR ${TEST_REFERENCE_DIR}/Python) - file(GLOB sources RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.py") if(NOT BORNAGAIN_TIFF_SUPPORT) list(REMOVE_ITEM sources "intensitydata_io_tiff.py") diff --git a/Tests/Functional/Python/PyCore/polmagcylinders2.py b/Tests/Functional/Python/PyCore/polmagcylinders2.py index 9a1451c461523717006cfb6937659672c5ef73c3..ec285f015e08041865fbd260f57c45445b637767 100644 --- a/Tests/Functional/Python/PyCore/polmagcylinders2.py +++ b/Tests/Functional/Python/PyCore/polmagcylinders2.py @@ -8,8 +8,7 @@ from utils import get_difference from bornagain import * -REFERENCE_DIR = "@TEST_REFERENCE_DIR@/Python" - +REFERENCE_DIR = "@TEST_REFERENCE_DIR_PY_CORE@" # ---------------------------------- # describe sample and run simulation diff --git a/Tests/Functional/Python/PyCore/utils.py b/Tests/Functional/Python/PyCore/utils.py index 1fa8b32f3c4327409c59dbd8e56e3dc14dba4861..7b279cd6a60ed1a07c3465c077aa1f9b027e78eb 100644 --- a/Tests/Functional/Python/PyCore/utils.py +++ b/Tests/Functional/Python/PyCore/utils.py @@ -8,7 +8,7 @@ sys.path.append("@CMAKE_LIBRARY_OUTPUT_DIRECTORY@") import bornagain as ba from bornagain import deg, angstrom -REFERENCE_DIR = "@PYCORE_REFERENCE_DIR@" +REFERENCE_DIR = "@TEST_REFERENCE_DIR_PY_CORE@" def get_difference(data, reference): diff --git a/Tests/ReferenceData/Python/mesocrystal01_reference.int.gz b/Tests/ReferenceData/PyCore/mesocrystal01_reference.int.gz similarity index 100% rename from Tests/ReferenceData/Python/mesocrystal01_reference.int.gz rename to Tests/ReferenceData/PyCore/mesocrystal01_reference.int.gz diff --git a/Tests/ReferenceData/Python/polmagcylinders1_reference.int.gz b/Tests/ReferenceData/PyCore/polmagcylinders1_reference.int.gz similarity index 100% rename from Tests/ReferenceData/Python/polmagcylinders1_reference.int.gz rename to Tests/ReferenceData/PyCore/polmagcylinders1_reference.int.gz diff --git a/Tests/ReferenceData/Python/polmagcylinders2_reference_00.int.gz b/Tests/ReferenceData/PyCore/polmagcylinders2_reference_00.int.gz similarity index 100% rename from Tests/ReferenceData/Python/polmagcylinders2_reference_00.int.gz rename to Tests/ReferenceData/PyCore/polmagcylinders2_reference_00.int.gz diff --git a/Tests/ReferenceData/Python/polmagcylinders2_reference_01.int.gz b/Tests/ReferenceData/PyCore/polmagcylinders2_reference_01.int.gz similarity index 100% rename from Tests/ReferenceData/Python/polmagcylinders2_reference_01.int.gz rename to Tests/ReferenceData/PyCore/polmagcylinders2_reference_01.int.gz diff --git a/Tests/ReferenceData/Python/polmagcylinders2_reference_10.int.gz b/Tests/ReferenceData/PyCore/polmagcylinders2_reference_10.int.gz similarity index 100% rename from Tests/ReferenceData/Python/polmagcylinders2_reference_10.int.gz rename to Tests/ReferenceData/PyCore/polmagcylinders2_reference_10.int.gz diff --git a/Tests/ReferenceData/Python/polmagcylinders2_reference_11.int.gz b/Tests/ReferenceData/PyCore/polmagcylinders2_reference_11.int.gz similarity index 100% rename from Tests/ReferenceData/Python/polmagcylinders2_reference_11.int.gz rename to Tests/ReferenceData/PyCore/polmagcylinders2_reference_11.int.gz diff --git a/cmake/BornAgain/Directories.cmake b/cmake/BornAgain/Directories.cmake index b72823621cdfcb97cccf54d8671dd361a072f8a2..6941aae790e9e660569f5a0c28bae21f80618056 100644 --- a/cmake/BornAgain/Directories.cmake +++ b/cmake/BornAgain/Directories.cmake @@ -3,9 +3,11 @@ # ----------------------------------------------------------------------------- set(WRAP_DIR ${CMAKE_SOURCE_DIR}/Wrap) -set(TEST_REFERENCE_DIR ${CMAKE_SOURCE_DIR}/Tests/ReferenceData) set(PY_EXAMPLES_DIR ${CMAKE_SOURCE_DIR}/Examples/Python) +set(TEST_REFERENCE_DIR ${CMAKE_SOURCE_DIR}/Tests/ReferenceData) +set(TEST_REFERENCE_DIR_PY_CORE ${CMAKE_SOURCE_DIR}/Tests/ReferenceData/PyCore) + # ----------------------------------------------------------------------------- # auto directories (refreshed when CONFIGURE options are set) # ----------------------------------------------------------------------------- @@ -18,23 +20,23 @@ file(MAKE_DIRECTORY ${AUTO_DIR}) # output directories # ----------------------------------------------------------------------------- -set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) -set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) -set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}) +set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) +set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) +set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}) set(BUILD_VAR_DIR ${CMAKE_BINARY_DIR}/var) set(BUILD_INC_DIR ${CMAKE_BINARY_DIR}/inc) set(BUILD_SRC_DIR ${CMAKE_BINARY_DIR}/src) -set(TEST_OUTPUT_DIR ${CMAKE_BINARY_DIR}/test_output) -set(TEST_OUTPUT_DIR_CORE ${CMAKE_BINARY_DIR}/test_output/Core) +set(TEST_OUTPUT_DIR ${CMAKE_BINARY_DIR}/test_output) +set(TEST_OUTPUT_DIR_CORE ${CMAKE_BINARY_DIR}/test_output/Core) set(TEST_OUTPUT_DIR_PY_EXAMPLES ${CMAKE_BINARY_DIR}/test_output/PyExamples) -set(TEST_OUTPUT_DIR_PY_CORE ${CMAKE_BINARY_DIR}/test_output/PyCore) -set(TEST_OUTPUT_DIR_PY_FIT ${CMAKE_BINARY_DIR}/test_output/PyFit) -set(TEST_OUTPUT_DIR_PY_PERSIST ${CMAKE_BINARY_DIR}/test_output/PyPersist) -set(TEST_OUTPUT_DIR_PY_STD ${CMAKE_BINARY_DIR}/test_output/PyStd) -set(TEST_OUTPUT_DIR_STD ${CMAKE_BINARY_DIR}/test_output/Std) +set(TEST_OUTPUT_DIR_PY_CORE ${CMAKE_BINARY_DIR}/test_output/PyCore) +set(TEST_OUTPUT_DIR_PY_FIT ${CMAKE_BINARY_DIR}/test_output/PyFit) +set(TEST_OUTPUT_DIR_PY_PERSIST ${CMAKE_BINARY_DIR}/test_output/PyPersist) +set(TEST_OUTPUT_DIR_PY_STD ${CMAKE_BINARY_DIR}/test_output/PyStd) +set(TEST_OUTPUT_DIR_STD ${CMAKE_BINARY_DIR}/test_output/Std) configure_file("${CONFIGURABLES_DIR}/auto_README.in" "${CMAKE_SOURCE_DIR}/auto/README" @ONLY)