silence output from hwloc when launching LAMMPS
This commit is contained in:
@ -7,7 +7,7 @@ add_test(NAME RunLammps
|
|||||||
COMMAND $<TARGET_FILE:lmp> -log none -echo none -in in.empty
|
COMMAND $<TARGET_FILE:lmp> -log none -echo none -in in.empty
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
|
||||||
set_tests_properties(RunLammps PROPERTIES
|
set_tests_properties(RunLammps PROPERTIES
|
||||||
ENVIRONMENT "TSAN_OPTIONS=ignore_noninstrumented_modules=1"
|
ENVIRONMENT "TSAN_OPTIONS=ignore_noninstrumented_modules=1;HWLOC_HIDE_ERRORS=1"
|
||||||
PASS_REGULAR_EXPRESSION "^LAMMPS \\([0-9]+ [A-Za-z]+ 2[0-9][0-9][0-9]\\)")
|
PASS_REGULAR_EXPRESSION "^LAMMPS \\([0-9]+ [A-Za-z]+ 2[0-9][0-9][0-9]\\)")
|
||||||
|
|
||||||
# check if the compiled executable will print the help message
|
# check if the compiled executable will print the help message
|
||||||
@ -15,7 +15,7 @@ add_test(NAME HelpMessage
|
|||||||
COMMAND $<TARGET_FILE:lmp> -h
|
COMMAND $<TARGET_FILE:lmp> -h
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
|
||||||
set_tests_properties(HelpMessage PROPERTIES
|
set_tests_properties(HelpMessage PROPERTIES
|
||||||
ENVIRONMENT "TSAN_OPTIONS=ignore_noninstrumented_modules=1"
|
ENVIRONMENT "TSAN_OPTIONS=ignore_noninstrumented_modules=1;HWLOC_HIDE_ERRORS=1"
|
||||||
PASS_REGULAR_EXPRESSION ".*Large-scale Atomic/Molecular Massively Parallel Simulator -.*Usage example:.*")
|
PASS_REGULAR_EXPRESSION ".*Large-scale Atomic/Molecular Massively Parallel Simulator -.*Usage example:.*")
|
||||||
|
|
||||||
# check if the compiled executable will error out on an invalid command line flag
|
# check if the compiled executable will error out on an invalid command line flag
|
||||||
@ -23,7 +23,7 @@ add_test(NAME InvalidFlag
|
|||||||
COMMAND $<TARGET_FILE:lmp> -xxx
|
COMMAND $<TARGET_FILE:lmp> -xxx
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
|
||||||
set_tests_properties(InvalidFlag PROPERTIES
|
set_tests_properties(InvalidFlag PROPERTIES
|
||||||
ENVIRONMENT "TSAN_OPTIONS=ignore_noninstrumented_modules=1"
|
ENVIRONMENT "TSAN_OPTIONS=ignore_noninstrumented_modules=1;HWLOC_HIDE_ERRORS=1"
|
||||||
PASS_REGULAR_EXPRESSION "ERROR: Invalid command-line argument.*")
|
PASS_REGULAR_EXPRESSION "ERROR: Invalid command-line argument.*")
|
||||||
|
|
||||||
if(BUILD_MPI)
|
if(BUILD_MPI)
|
||||||
|
|||||||
Reference in New Issue
Block a user