Skip to content
Snippets Groups Projects
  • Jonathan Hanks's avatar
    a5629100
    Update local_dc to better support running a standalone edc. · a5629100
    Jonathan Hanks authored
    Standalone edc's don't need a par file.  We use par files to get dcuid's and model rates.  This update expands local_dc to allow specifying a dcuid & rate on the command line.
    
    Added some unit testing code to local_dc
    Updated the standalone edc test to use inline dcuid notation
    Converted local_dc to use the arg library
    a5629100
    History
    Update local_dc to better support running a standalone edc.
    Jonathan Hanks authored
    Standalone edc's don't need a par file.  We use par files to get dcuid's and model rates.  This update expands local_dc to allow specifying a dcuid & rate on the command line.
    
    Added some unit testing code to local_dc
    Updated the standalone edc test to use inline dcuid notation
    Converted local_dc to use the arg library
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
CMakeLists.txt 685 B
add_executable(local_dc local_dc.c ${CMAKE_CURRENT_SOURCE_DIR}/../drv/rfm.c)

target_link_libraries(local_dc PUBLIC
        args
        util)

configure_file(test_local_dc.sh.in test_local_dc.sh @ONLY)

add_executable(test_local_dc_unit_tests tests/test_local_dc_unit_tests.c)
target_include_directories(test_local_dc_unit_tests PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

add_test(NAME "test_local_dc"
        COMMAND /bin/bash ./test_local_dc.sh
        WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")

add_test(NAME "test_local_dc_unit_tests"
        COMMAND ./test_local_dc_unit_tests
        WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")

install(TARGETS local_dc DESTINATION bin)