blob: e6ea88e19784e6e965e7ed7381de2154950ba153 [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 Iša59bf3272021-03-10 11:22:52 +010013 ${CMAKE_CURRENT_SOURCE_DIR}/restriction/*.c
Radek Išaa76902f2021-03-29 08:52:51 +020014 ${CMAKE_CURRENT_SOURCE_DIR}/node/*.c
Radek Krejcib4ac5a92020-11-23 17:54:33 +010015 PARENT_SCOPE)
16
Radek Išaa9ff2b82021-01-13 21:44:13 +010017ly_add_utest(NAME int8 SOURCES types/int8.c)
Radek Išaa3b653e2021-02-05 19:05:30 +010018ly_add_utest(NAME string SOURCES types/string.c)
Radek Išaded31052021-03-10 13:22:53 +010019ly_add_utest(NAME bits SOURCES types/bits.c)
Radek Išaa9ff2b82021-01-13 21:44:13 +010020
Radek Iša59bf3272021-03-10 11:22:52 +010021ly_add_utest(NAME range SOURCES restriction/test_range.c)
22ly_add_utest(NAME pattern SOURCES restriction/test_pattern.c)
23
Radek Išaa76902f2021-03-29 08:52:51 +020024ly_add_utest(NAME list SOURCES node/list.c)
25
Radek Iša56ca9e42020-09-08 18:42:00 +020026ly_add_utest(NAME common SOURCES basic/test_common.c)
27ly_add_utest(NAME set SOURCES basic/test_set.c)
28ly_add_utest(NAME hash_table SOURCES basic/test_hash_table.c)
29ly_add_utest(NAME inout SOURCES basic/test_inout.c)
30ly_add_utest(NAME context SOURCES basic/test_context.c)
Radek Krejci5902be92021-03-25 21:25:14 +010031ly_add_utest(NAME plugins SOURCES basic/test_plugins.c)
Radek Iša56ca9e42020-09-08 18:42:00 +020032ly_add_utest(NAME xml SOURCES basic/test_xml.c)
33ly_add_utest(NAME json SOURCES basic/test_json.c)
34ly_add_utest(NAME xpath SOURCES basic/test_xpath.c)
35ly_add_utest(NAME yanglib SOURCES basic/test_yanglib.c)
36
Radek Krejci85ac8312021-03-03 20:21:33 +010037ly_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 +020038ly_add_utest(NAME parser_yang SOURCES schema/test_parser_yang.c)
39ly_add_utest(NAME parser_yin SOURCES schema/test_parser_yin.c)
Radek Krejci18abde42020-06-13 20:04:39 +020040ly_add_utest(NAME tree_schema_compile SOURCES schema/test_tree_schema_compile.c)
aPiecek20ddf8b2021-01-08 11:50:37 +010041ly_add_utest(NAME printer_tree SOURCES schema/test_printer_tree.c)
Radek Krejci18abde42020-06-13 20:04:39 +020042ly_add_utest(NAME printer_yang SOURCES schema/test_printer_yang.c)
43ly_add_utest(NAME printer_yin SOURCES schema/test_printer_yin.c)
Radek Iša56ca9e42020-09-08 18:42:00 +020044
Radek Krejci18abde42020-06-13 20:04:39 +020045ly_add_utest(NAME tree_data SOURCES data/test_tree_data.c)
46ly_add_utest(NAME new SOURCES data/test_new.c)
47ly_add_utest(NAME parser_xml SOURCES data/test_parser_xml.c)
48ly_add_utest(NAME printer_xml SOURCES data/test_printer_xml.c)
Radek Krejci1798aae2020-07-14 13:26:06 +020049ly_add_utest(NAME parser_json SOURCES data/test_parser_json.c)
Michal Vasko60ea6352020-06-29 13:39:39 +020050ly_add_utest(NAME lyb SOURCES data/test_lyb.c)
Radek Krejci18abde42020-06-13 20:04:39 +020051ly_add_utest(NAME validation SOURCES data/test_validation.c)
52ly_add_utest(NAME types SOURCES data/test_types.c)
Michal Vasko4490d312020-06-16 13:08:55 +020053ly_add_utest(NAME merge SOURCES data/test_merge.c)
Michal Vaskoe893ddd2020-06-23 13:35:20 +020054ly_add_utest(NAME diff SOURCES data/test_diff.c)
Radek Iša56ca9e42020-09-08 18:42:00 +020055
Radek Krejci18abde42020-06-13 20:04:39 +020056ly_add_utest(NAME metadata SOURCES extensions/test_metadata.c)
57ly_add_utest(NAME nacm SOURCES extensions/test_nacm.c)
Radek Krejci038db942021-02-09 16:18:47 +010058ly_add_utest(NAME yangdata SOURCES extensions/test_yangdata.c)