Skip to content

Commit

Permalink
Rename janatests to jana-unit-tests
Browse files Browse the repository at this point in the history
This makes it symmetric with jana-perf-tests, and also easier for people to understand what's going on.
  • Loading branch information
nathanwbrei committed Nov 10, 2023
1 parent 21bcc66 commit d1c08e8
Show file tree
Hide file tree
Showing 52 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ccpp-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
steps:
- name: Build and run
id: build_and_run
uses: faustus123/[email protected].0
uses: nathanwbrei/[email protected].1

2 changes: 1 addition & 1 deletion .github/workflows/ccpp-epscimac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ jobs:
needs: build-n-install-jana
steps:
- name: run jana tests
run: $GITHUB_WORKSPACE/Darwin/bin/janatests
run: $GITHUB_WORKSPACE/Darwin/bin/jana-unit-tests
4 changes: 2 additions & 2 deletions .github/workflows/ccpp-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ jobs:
$GITHUB_WORKSPACE/Linux/bin/jana -PPLUGINS=JTest -Pjana:nevents=100
- name: janatests
run: |
echo "--- Running janatests ------------------------------"
$GITHUB_WORKSPACE/Linux/bin/janatests
echo "--- Running jana-unit-tests ------------------------------"
$GITHUB_WORKSPACE/Linux/bin/jana-unit-tests
- name: BlockExample
run: |
echo "--- Running BlockExample ------------------------------"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ccpp-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ jobs:
export JANA_PLUGIN_PATH=$GITHUB_WORKSPACE/Darwin/plugins
echo "--- Running JTest plugin -----------------------"
$GITHUB_WORKSPACE/Darwin/bin/jana -PPLUGINS=JTest -Pjana:nevents=100
echo "--- Running janatests ------------------------------"
$GITHUB_WORKSPACE/Darwin/bin/janatests
echo "--- Running jana-unit-tests ------------------------------"
$GITHUB_WORKSPACE/Darwin/bin/jana-unit-tests
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ add_subdirectory(src/libraries/JANA)
add_subdirectory(src/examples)
add_subdirectory(src/plugins)
add_subdirectory(src/programs/jana)
add_subdirectory(src/programs/tests)
add_subdirectory(src/programs/unit_tests)
add_subdirectory(src/programs/perf_tests)

add_subdirectory(src/python)
Expand Down
2 changes: 1 addition & 1 deletion src/examples/UnitTestingExample/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set (UnitTestingExample_SOURCES
add_executable(UnitTestingExample ${UnitTestingExample_SOURCES})

# Our copy of catch.hpp lives in this weird place. Maybe we should move it to ${CMAKE_SOURCE_DIR}/src/external
target_include_directories(UnitTestingExample PRIVATE ${CMAKE_SOURCE_DIR}/src/programs/tests)
target_include_directories(UnitTestingExample PRIVATE ${CMAKE_SOURCE_DIR}/src/programs/unit_tests)

target_link_libraries(UnitTestingExample Tutorial_plugin jana2)
set_target_properties(UnitTestingExample PROPERTIES PREFIX "" OUTPUT_NAME "UnitTestingExample")
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,16 @@ if (${USE_PODIO})
)
endif()

add_executable(janatests ${TEST_SOURCES})
add_executable(jana-unit-tests ${TEST_SOURCES})
find_package(Threads REQUIRED)
target_include_directories(janatests PUBLIC .)
target_link_libraries(janatests jana2)
target_include_directories(jana-unit-tests PUBLIC .)
target_link_libraries(jana-unit-tests jana2)

if (${USE_PODIO})
# Pull in the data model from examples/PodioExample.
# We don't want to have two separate toy data models in the JANA codebase
target_link_libraries(janatests PodioExampleDatamodel PodioExampleDatamodelDict)
target_link_libraries(jana-unit-tests PodioExampleDatamodel PodioExampleDatamodelDict)
endif()

install(TARGETS janatests DESTINATION bin)
install(TARGETS jana-unit-tests DESTINATION bin)
install(FILES catch.hpp DESTINATION include/external)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit d1c08e8

Please sign in to comment.