File tree 1 file changed +5
-4
lines changed 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ macro(RUN)
61
61
if (import_path)
62
62
add_custom_command (
63
63
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
65
65
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR} /${name} .py
66
66
VERBATIM )
67
67
else ()
@@ -109,7 +109,7 @@ macro(RUN)
109
109
110
110
add_test (${name} python ${CMAKE_CURRENT_SOURCE_DIR} /${name} .py)
111
111
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} " )
113
113
if (RUN_LABELS)
114
114
set_tests_properties (${name} PROPERTIES LABELS "${RUN_LABELS} " )
115
115
endif ()
@@ -248,9 +248,10 @@ RUN(NAME test_for_loop LABELS cpython llvm c)
248
248
RUN(NAME modules_01 LABELS cpython llvm wasm wasm_x86)
249
249
RUN(NAME modules_02 LABELS cpython llvm wasm wasm_x86)
250
250
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)
253
252
RUN(NAME test_import_03 LABELS cpython llvm)
253
+ RUN(NAME test_import_04 IMPORT_PATH ..
254
+ LABELS cpython llvm)
254
255
RUN(NAME test_math LABELS cpython llvm)
255
256
RUN(NAME test_numpy_01 LABELS cpython llvm c)
256
257
RUN(NAME test_numpy_02 LABELS cpython llvm c)
You can’t perform that action at this time.
0 commit comments