Skip to content

Commit

Permalink
Solve metacallcli-py-tsx test.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed May 19, 2021
1 parent 5fe37ea commit 84c7eb4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/cli/metacallcli/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ if(OPTION_BUILD_LOADERS AND OPTION_BUILD_LOADERS_TS AND OPTION_BUILD_SCRIPTS AND

if(OPTION_BUILD_LOADERS_PY)
add_test(NAME ${target}-py-tsx
COMMAND ${TEST_COMMAND} "echo 'load py cli-test-tsx.py\nexit' | $<TARGET_FILE:${target}> | ${GREP_COMMAND} \"Hello metaprogrammer\""
COMMAND ${TEST_COMMAND} "echo 'load py cli-test-tsx.py\nexit' | $<TARGET_FILE:${target}> | ${GREP_COMMAND} \"Hello World\""
WORKING_DIRECTORY ${LOADER_SCRIPT_PATH}/templating
)
set_property(TEST ${target}-py-tsx
Expand All @@ -409,6 +409,9 @@ if(OPTION_BUILD_LOADERS AND OPTION_BUILD_LOADERS_TS AND OPTION_BUILD_SCRIPTS AND
""
${TESTS_ENVIRONMENT_VARIABLES}
PROJECT_METACALL_PORTS_DIRECTORY=${CMAKE_SOURCE_DIR}/source/ports/py_port
# Note: Here we have to set up the LOADER_SCRIPT_PATH to the CWD as a difference to ${target}-tsx-templating test
# which does not require this apparently (due to NodeJS resolve system), probably this has to be reviewed
LOADER_SCRIPT_PATH=${LOADER_SCRIPT_PATH}/templating
)
endif()
endif()

0 comments on commit 84c7eb4

Please sign in to comment.