Skip to content

Commit

Permalink
Rename test_lfortran to test_lpython
Browse files Browse the repository at this point in the history
  • Loading branch information
Thirumalai-Shaktivel committed Mar 27, 2022
1 parent 7546443 commit 567e966
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ src/lpython/tests/test_stacktrace*
src/lpython/tests/test_serialization*
src/lpython/tests/test_cwrapper
src/lpython/tests/test_serialization
src/lpython/tests/test_lfortran
src/lpython/tests/test_lpython
src/lpython/tests/write32
src/lpython/tests/write32.asm
src/lpython/tests/subroutines32
Expand Down
2 changes: 1 addition & 1 deletion ci/build.xsh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ cd test-bld
BUILD_TYPE = "Release"
cmake -G $LFORTRAN_CMAKE_GENERATOR -DCMAKE_VERBOSE_MAKEFILE=ON -DWITH_LLVM=yes -DWITH_XEUS=yes -DCMAKE_PREFIX_PATH=$CONDA_PREFIX -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DWITH_LFORTRAN_BINARY_MODFILES=no -DCMAKE_BUILD_TYPE=@(BUILD_TYPE) ..
cmake --build . --target install
./src/lpython/tests/test_lfortran
./src/lpython/tests/test_lpython
#./src/bin/lpython < ../src/bin/example_input.txt
ctest --output-on-failure
cpack -V
Expand Down
10 changes: 5 additions & 5 deletions src/lpython/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ endif()


# Add one main test suite for LFortran, composed of many individual cpp files:
add_executable(test_lfortran ${SRC})
target_link_libraries(test_lfortran lfortran_lib p::doctest)
add_test(test_lfortran ${PROJECT_BINARY_DIR}/test_lfortran)
add_executable(test_lpython ${SRC})
target_link_libraries(test_lpython lfortran_lib p::doctest)
add_test(test_lpython ${PROJECT_BINARY_DIR}/test_lpython)

set_target_properties(test_lfortran PROPERTIES
set_target_properties(test_lpython PROPERTIES
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/$<0:>
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/$<0:>
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/$<0:>)

if (WITH_LLVM)
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
target_link_options(test_lfortran PRIVATE "LINKER:--export-dynamic")
target_link_options(test_lpython PRIVATE "LINKER:--export-dynamic")
endif()
endif()

0 comments on commit 567e966

Please sign in to comment.