mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-27 08:31:03 +08:00
Changed naming
so that it is parent folder name _pass or _fail (e.g.) date_test_fail_<test_name> and date_test_pass_<test_name> As this should be easier to sort
This commit is contained in:
parent
2d2b65906a
commit
f8cc62c396
@ -71,7 +71,7 @@ function( add_pass_tests TEST_GLOB TEST_PREFIX )
|
||||
get_filename_component( TEST_NAME ${TEST_FILE} NAME_WE )
|
||||
get_filename_component( TEST_EXT ${TEST_FILE} EXT )
|
||||
if( NOT ${TEST_EXT} STREQUAL ".fail.cpp" )
|
||||
set( PREFIX "${TEST_PREFIX}_${TEST_NAME}_pass" )
|
||||
set( PREFIX "${TEST_PREFIX}_pass_${TEST_NAME}" )
|
||||
set( BIN_NAME ${PREFIX}_bin )
|
||||
set( TST_NAME ${PREFIX}_test )
|
||||
add_executable( ${BIN_NAME} EXCLUDE_FROM_ALL ${TEST_FILE} )
|
||||
@ -92,7 +92,7 @@ function( add_fail_tests TEST_GLOB TEST_PREFIX )
|
||||
|
||||
set( TEST_TYPE "_fail" )
|
||||
|
||||
set( PREFIX "${TEST_PREFIX}_${TEST_NAME}_fail" )
|
||||
set( PREFIX "${TEST_PREFIX}_fail_${TEST_NAME}" )
|
||||
set( BIN_NAME ${PREFIX}_bin )
|
||||
set( TST_NAME ${PREFIX}_test )
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user