Skip to content

Commit

Permalink
Add if LINK_WITH_PYTHON for some plugin-based tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Myoldmopar committed Jan 4, 2024

Verified

This commit was signed with the committer’s verified signature.
PhearZero Michael J Feher
1 parent 8c0e3da commit b1214c3
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/EnergyPlus/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1111,16 +1111,17 @@ if(BUILD_TESTING)
set(PY_FILE "${EXAMPLES_FILES_DIR}/${TEST_CASE}.py")
configure_file(${PY_FILE} "${INPUT_TEST_DIR}/${TEST_CASE}.py" COPYONLY)

add_test(NAME energyplus.TestNonASCIIDirsAndFiles.PythonPlugin.FromWithin
COMMAND energyplus -D -d "${CLI_TEST_DIR}/PythonPlugin.FromWithin/out-${NON_ASCII_DIRNAME}" ${TEST_CASE}.idf
WORKING_DIRECTORY "${CLI_TEST_DIR}/${NON_ASCII_DIRNAME}"
)

add_test(NAME energyplus.TestNonASCIIDirsAndFiles.PythonPlugin.FromOutside
COMMAND energyplus -D -d "${CLI_TEST_DIR}/PythonPlugin.FromOutside/out-${NON_ASCII_DIRNAME}" ${NON_ASCII_DIRNAME}/${TEST_CASE}.idf
WORKING_DIRECTORY "${CLI_TEST_DIR}"
)

if(LINK_WITH_PYTHON)
add_test(NAME energyplus.TestNonASCIIDirsAndFiles.PythonPlugin.FromWithin
COMMAND energyplus -D -d "${CLI_TEST_DIR}/PythonPlugin.FromWithin/out-${NON_ASCII_DIRNAME}" ${TEST_CASE}.idf
WORKING_DIRECTORY "${CLI_TEST_DIR}/${NON_ASCII_DIRNAME}"
)

add_test(NAME energyplus.TestNonASCIIDirsAndFiles.PythonPlugin.FromOutside
COMMAND energyplus -D -d "${CLI_TEST_DIR}/PythonPlugin.FromOutside/out-${NON_ASCII_DIRNAME}" ${NON_ASCII_DIRNAME}/${TEST_CASE}.idf
WORKING_DIRECTORY "${CLI_TEST_DIR}"
)
endif()
endif()

if(UNIX AND NOT APPLE)

4 comments on commit b1214c3

@nrel-bot-2c
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IsolateNonASCIITests (Myoldmopar) - x86_64-Linux-Ubuntu-22.04-gcc-11.4: OK (3584 of 3584 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IsolateNonASCIITests (Myoldmopar) - Win64-Windows-10-VisualStudio-16: OK (2756 of 2756 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot-2b
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IsolateNonASCIITests (Myoldmopar) - x86_64-Linux-Ubuntu-22.04-gcc-11.4-UnitTestsCoverage-Debug: OK (1969 of 1969 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IsolateNonASCIITests (Myoldmopar) - x86_64-Linux-Ubuntu-22.04-gcc-11.4-IntegrationCoverage-Debug: OK (790 of 790 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

Please sign in to comment.