blob: 5b17b5ce231c2b411997c0ce5e5b8a5d765cdb22 [file] [log] [blame]
Radek Krejcib4ac5a92020-11-23 17:54:33 +01001
2include_directories(${CMAKE_CURRENT_SOURCE_DIR})
3
4set(format_sources
5 ${format_sources}
Radek Krejcib4ac5a92020-11-23 17:54:33 +01006 ${CMAKE_CURRENT_SOURCE_DIR}/*.h
Radek Iša56ca9e42020-09-08 18:42:00 +02007 ${CMAKE_CURRENT_SOURCE_DIR}/basic/*.c
Radek Krejcib4ac5a92020-11-23 17:54:33 +01008 ${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
Radek Išaa9ff2b82021-01-13 21:44:13 +010012 ${CMAKE_CURRENT_SOURCE_DIR}/types/*.c
Radek Krejcib4ac5a92020-11-23 17:54:33 +010013 PARENT_SCOPE)
14
Radek Išaa9ff2b82021-01-13 21:44:13 +010015ly_add_utest(NAME int8 SOURCES types/int8.c)
16
Radek Iša56ca9e42020-09-08 18:42:00 +020017ly_add_utest(NAME common SOURCES basic/test_common.c)
18ly_add_utest(NAME set SOURCES basic/test_set.c)
19ly_add_utest(NAME hash_table SOURCES basic/test_hash_table.c)
20ly_add_utest(NAME inout SOURCES basic/test_inout.c)
21ly_add_utest(NAME context SOURCES basic/test_context.c)
22ly_add_utest(NAME xml SOURCES basic/test_xml.c)
23ly_add_utest(NAME json SOURCES basic/test_json.c)
24ly_add_utest(NAME xpath SOURCES basic/test_xpath.c)
25ly_add_utest(NAME yanglib SOURCES basic/test_yanglib.c)
26
Radek Krejci85ac8312021-03-03 20:21:33 +010027ly_add_utest(NAME schema SOURCES schema/test_schema.c schema/test_schema_common.c schema/test_schema_stmts.c schema/test_schema_extensions.c)
Michal Vasko63f3d842020-07-08 10:10:14 +020028ly_add_utest(NAME parser_yang SOURCES schema/test_parser_yang.c)
29ly_add_utest(NAME parser_yin SOURCES schema/test_parser_yin.c)
Radek Krejci18abde42020-06-13 20:04:39 +020030ly_add_utest(NAME tree_schema_compile SOURCES schema/test_tree_schema_compile.c)
aPiecek20ddf8b2021-01-08 11:50:37 +010031ly_add_utest(NAME printer_tree SOURCES schema/test_printer_tree.c)
Radek Krejci18abde42020-06-13 20:04:39 +020032ly_add_utest(NAME printer_yang SOURCES schema/test_printer_yang.c)
33ly_add_utest(NAME printer_yin SOURCES schema/test_printer_yin.c)
Radek Iša56ca9e42020-09-08 18:42:00 +020034
Radek Krejci18abde42020-06-13 20:04:39 +020035ly_add_utest(NAME tree_data SOURCES data/test_tree_data.c)
36ly_add_utest(NAME new SOURCES data/test_new.c)
37ly_add_utest(NAME parser_xml SOURCES data/test_parser_xml.c)
38ly_add_utest(NAME printer_xml SOURCES data/test_printer_xml.c)
Radek Krejci1798aae2020-07-14 13:26:06 +020039ly_add_utest(NAME parser_json SOURCES data/test_parser_json.c)
Michal Vasko60ea6352020-06-29 13:39:39 +020040ly_add_utest(NAME lyb SOURCES data/test_lyb.c)
Radek Krejci18abde42020-06-13 20:04:39 +020041ly_add_utest(NAME validation SOURCES data/test_validation.c)
42ly_add_utest(NAME types SOURCES data/test_types.c)
Michal Vasko4490d312020-06-16 13:08:55 +020043ly_add_utest(NAME merge SOURCES data/test_merge.c)
Michal Vaskoe893ddd2020-06-23 13:35:20 +020044ly_add_utest(NAME diff SOURCES data/test_diff.c)
Radek Iša56ca9e42020-09-08 18:42:00 +020045
Radek Krejci18abde42020-06-13 20:04:39 +020046ly_add_utest(NAME metadata SOURCES extensions/test_metadata.c)
47ly_add_utest(NAME nacm SOURCES extensions/test_nacm.c)
Radek Krejci038db942021-02-09 16:18:47 +010048ly_add_utest(NAME yangdata SOURCES extensions/test_yangdata.c)