Skip to content

Commit 9c58510

Browse files
committed
Register test_import_04
1 parent a788c4b commit 9c58510

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

integration_tests/CMakeLists.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ macro(RUN)
6161
if (import_path)
6262
add_custom_command(
6363
OUTPUT ${name}.o
64-
COMMAND lpython -c -I ${import_path} ${CMAKE_CURRENT_SOURCE_DIR}/${name}.py -o ${name}.o
64+
COMMAND lpython -c -I ${CMAKE_CURRENT_SOURCE_DIR}/${import_path} ${CMAKE_CURRENT_SOURCE_DIR}/${name}.py -o ${name}.o
6565
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${name}.py
6666
VERBATIM)
6767
else ()
@@ -109,7 +109,7 @@ macro(RUN)
109109

110110
add_test(${name} python ${CMAKE_CURRENT_SOURCE_DIR}/${name}.py)
111111
set_tests_properties(${name} PROPERTIES
112-
ENVIRONMENT "PYTHONPATH=${CMAKE_SOURCE_DIR}/../src/runtime/ltypes;LPYTHON_PY_MOD_NAME=${PY_MOD};LPYTHON_PY_MOD_PATH=${CMAKE_CURRENT_BINARY_DIR}")
112+
ENVIRONMENT "PYTHONPATH=${CMAKE_SOURCE_DIR}/../src/runtime/ltypes:${CMAKE_SOURCE_DIR}/..;LPYTHON_PY_MOD_NAME=${PY_MOD};LPYTHON_PY_MOD_PATH=${CMAKE_CURRENT_BINARY_DIR}")
113113
if (RUN_LABELS)
114114
set_tests_properties(${name} PROPERTIES LABELS "${RUN_LABELS}")
115115
endif()
@@ -248,9 +248,10 @@ RUN(NAME test_for_loop LABELS cpython llvm c)
248248
RUN(NAME modules_01 LABELS cpython llvm wasm wasm_x86)
249249
RUN(NAME modules_02 LABELS cpython llvm wasm wasm_x86)
250250
RUN(NAME test_import_01 LABELS cpython llvm)
251-
RUN(NAME test_import_02 IMPORT_PATH integration_tests
252-
LABELS cpython llvm)
251+
RUN(NAME test_import_02 LABELS cpython llvm)
253252
RUN(NAME test_import_03 LABELS cpython llvm)
253+
RUN(NAME test_import_04 IMPORT_PATH ..
254+
LABELS cpython llvm)
254255
RUN(NAME test_math LABELS cpython llvm)
255256
RUN(NAME test_numpy_01 LABELS cpython llvm c)
256257
RUN(NAME test_numpy_02 LABELS cpython llvm c)

0 commit comments

Comments
 (0)