Cleaned up sample directory

This commit is contained in:
Snaipe 2015-09-09 02:43:01 +02:00
parent d9af4fc614
commit f7d4d7616a
56 changed files with 10 additions and 7 deletions

View file

@ -39,4 +39,6 @@ be merged.
|- po/: Translation files, i18n stuff
|- test/: Unit tests for libcriterion
`- samples/: Sample files
|- outputs/: Expected output files for the current samples
`- tests/: Internal regression tests
`- outputs/: Expected output files for the regression tests

View file

@ -7,28 +7,22 @@ include_directories(../include)
set(SAMPLES
signal.c
exit.c
report.c
suites.c
fixtures.c
asserts.c
more-suites.c
long-messages.c
description.c
other-crashes.c
simple.c
theories.c
signal.cc
exit.cc
report.cc
suites.cc
fixtures.cc
asserts.cc
more-suites.cc
long-messages.cc
description.cc
other-crashes.cc
simple.cc
theories.cc
)
@ -56,7 +50,7 @@ macro(add_samples DIR_ SAMPLES_)
)
if (NOT MSVC) # we disable the scripted tests when building with MSVC
add_test(${sample}_compare sh ${DIR_}/run_test.sh "${CMAKE_CURRENT_LIST_DIR}" . . ${sample}.bin)
add_test(${sample}_compare sh ${DIR_}/run_test.sh "${CMAKE_CURRENT_LIST_DIR}/out_dir" . . ${sample}.bin)
set_property(TEST ${sample}_compare PROPERTY
ENVIRONMENT "LC_ALL=en_US.utf8"
ENVIRONMENT "CRITERION_ALWAYS_SUCCEED=1"

View file

@ -1,5 +1,12 @@
set(SAMPLES
failmessages.c
exit.c
long-messages.c
other-crashes.c
exit.cc
long-messages.cc
other-crashes.cc
)
add_samples("${CMAKE_CURRENT_LIST_DIR}" "${SAMPLES}")