blob: ebf5c7e087c208dba2ef2b5f28bb871769409812 [file] [log] [blame]
Radek Krejcib4ac5a92020-11-23 17:54:33 +01001
2include_directories(${CMAKE_CURRENT_SOURCE_DIR})
3
4set(format_sources
5 ${format_sources}
6 ${CMAKE_CURRENT_SOURCE_DIR}/*.c
7 ${CMAKE_CURRENT_SOURCE_DIR}/*.h
8 ${CMAKE_CURRENT_SOURCE_DIR}/data/*.c
9 ${CMAKE_CURRENT_SOURCE_DIR}/extensions/*.c
10 ${CMAKE_CURRENT_SOURCE_DIR}/schema/*.c
11 ${CMAKE_CURRENT_SOURCE_DIR}/schema/*.h
12 PARENT_SCOPE)
13
Radek Krejci18abde42020-06-13 20:04:39 +020014ly_add_utest(NAME common WRAP "-Wl,--wrap=realloc" SOURCES test_common.c)
15ly_add_utest(NAME set SOURCES test_set.c)
16ly_add_utest(NAME hash_table SOURCES test_hash_table.c)
17ly_add_utest(NAME inout SOURCES test_inout.c)
18ly_add_utest(NAME context SOURCES test_context.c)
19ly_add_utest(NAME xml SOURCES test_xml.c)
Radek Krejci50f0c6b2020-06-18 16:31:48 +020020ly_add_utest(NAME json SOURCES test_json.c)
Radek Krejci18abde42020-06-13 20:04:39 +020021ly_add_utest(NAME xpath SOURCES test_xpath.c)
22ly_add_utest(NAME yanglib SOURCES test_yanglib.c)
23ly_add_utest(NAME schema SOURCES schema/test_schema.c schema/test_schema_common.c schema/test_schema_stmts.c)
Michal Vasko63f3d842020-07-08 10:10:14 +020024ly_add_utest(NAME parser_yang SOURCES schema/test_parser_yang.c)
25ly_add_utest(NAME parser_yin SOURCES schema/test_parser_yin.c)
Radek Krejci18abde42020-06-13 20:04:39 +020026ly_add_utest(NAME tree_schema_compile SOURCES schema/test_tree_schema_compile.c)
27ly_add_utest(NAME printer_yang SOURCES schema/test_printer_yang.c)
28ly_add_utest(NAME printer_yin SOURCES schema/test_printer_yin.c)
29ly_add_utest(NAME tree_data SOURCES data/test_tree_data.c)
30ly_add_utest(NAME new SOURCES data/test_new.c)
31ly_add_utest(NAME parser_xml SOURCES data/test_parser_xml.c)
32ly_add_utest(NAME printer_xml SOURCES data/test_printer_xml.c)
Radek Krejci1798aae2020-07-14 13:26:06 +020033ly_add_utest(NAME parser_json SOURCES data/test_parser_json.c)
Michal Vasko60ea6352020-06-29 13:39:39 +020034ly_add_utest(NAME lyb SOURCES data/test_lyb.c)
Radek Krejci18abde42020-06-13 20:04:39 +020035ly_add_utest(NAME validation SOURCES data/test_validation.c)
36ly_add_utest(NAME types SOURCES data/test_types.c)
Michal Vasko4490d312020-06-16 13:08:55 +020037ly_add_utest(NAME merge SOURCES data/test_merge.c)
Michal Vaskoe893ddd2020-06-23 13:35:20 +020038ly_add_utest(NAME diff SOURCES data/test_diff.c)
Radek Krejci18abde42020-06-13 20:04:39 +020039ly_add_utest(NAME metadata SOURCES extensions/test_metadata.c)
40ly_add_utest(NAME nacm SOURCES extensions/test_nacm.c)