blob: f933cc1d95d7d1992390f3f011e58813c8df433d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#build the test executable
INCLUDE_DIRECTORIES( ${GLIB2_INCLUDE_DIR} )
SET(plist_test_SRC
plist_test.c)
SET(plist_cmp_SRC
plist_cmp.c)
ADD_EXECUTABLE(plist_test ${plist_test_SRC})
TARGET_LINK_LIBRARIES(plist_test plist)
ADD_EXECUTABLE(plist_cmp ${plist_cmp_SRC})
TARGET_LINK_LIBRARIES(plist_cmp plist)
INCLUDE(CTest)
SET(TEST_DATA_DIR ${CMAKE_CURRENT_SOURCE_DIR})
ADD_TEST(Empty plist_test ${TEST_DATA_DIR}/data/1.plist)
ADD_TEST(Small plist_test ${TEST_DATA_DIR}/data/2.plist)
ADD_TEST(Medium plist_test ${TEST_DATA_DIR}/data/3.plist)
ADD_TEST(Large plist_test ${TEST_DATA_DIR}/data/4.plist)
ADD_TEST(Huge plist_test ${TEST_DATA_DIR}/data/5.plist)
ADD_TEST(Big_Array plist_test ${TEST_DATA_DIR}/data/6.plist)
ADD_TEST(EmptyCmp plist_cmp ${TEST_DATA_DIR}/data/1.plist ${TEST_DATA_DIR}/data/1.plist.out)
ADD_TEST(SmallCmp plist_cmp ${TEST_DATA_DIR}/data/2.plist ${TEST_DATA_DIR}/data/2.plist.out)
ADD_TEST(MediumCmp plist_cmp ${TEST_DATA_DIR}/data/3.plist ${TEST_DATA_DIR}/data/3.plist.out)
ADD_TEST(LargeCmp plist_cmp ${TEST_DATA_DIR}/data/4.plist ${TEST_DATA_DIR}/data/4.plist.out)
ADD_TEST(HugeCmp plist_cmp ${TEST_DATA_DIR}/data/5.plist ${TEST_DATA_DIR}/data/5.plist.out)
ADD_TEST(Big_ArrayCmp plist_cmp ${TEST_DATA_DIR}/data/6.plist ${TEST_DATA_DIR}/data/6.plist.out)
|