- move the test checking the help message from the c++ library to running the executable and checking the output - add a command line test for errors on invalid command line flags - add a c++ library test checking if ntreads is set to 1 without OMP_NUM_THREADS
10 lines
451 B
CMake
10 lines
451 B
CMake
|
|
add_executable(test_lammps_class test_lammps_class.cpp)
|
|
target_link_libraries(test_lammps_class PRIVATE lammps GTest::GMockMain GTest::GTest GTest::GMock)
|
|
add_test(LammpsClass test_lammps_class)
|
|
set_tests_properties(LammpsClass PROPERTIES ENVIRONMENT "OMP_NUM_THREADS=1")
|
|
|
|
add_executable(test_input_class test_input_class.cpp)
|
|
target_link_libraries(test_input_class PRIVATE lammps GTest::GTest GTest::GTestMain)
|
|
add_test(InputClass test_input_class)
|