blob: 0b91121f90d2b7c636efa370327af5ba1c2865d0 [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)
Michal Vasko495f4502021-04-27 14:48:05 +020020ly_add_utest(NAME binary SOURCES types/binary.c)
Michal Vasko3e52de52021-04-13 13:45:55 +020021ly_add_utest(NAME inet_types SOURCES types/inet_types.c)
Michal Vaskode4a3412021-04-14 15:38:27 +020022ly_add_utest(NAME yang_types SOURCES types/yang_types.c)
Radek Išaa9ff2b82021-01-13 21:44:13 +010023
Radek Iša59bf3272021-03-10 11:22:52 +010024ly_add_utest(NAME range SOURCES restriction/test_range.c)
25ly_add_utest(NAME pattern SOURCES restriction/test_pattern.c)
26
Radek Išaa76902f2021-03-29 08:52:51 +020027ly_add_utest(NAME list SOURCES node/list.c)
28
Radek Iša56ca9e42020-09-08 18:42:00 +020029ly_add_utest(NAME common SOURCES basic/test_common.c)
30ly_add_utest(NAME set SOURCES basic/test_set.c)
31ly_add_utest(NAME hash_table SOURCES basic/test_hash_table.c)
32ly_add_utest(NAME inout SOURCES basic/test_inout.c)
33ly_add_utest(NAME context SOURCES basic/test_context.c)
Radek Krejci5902be92021-03-25 21:25:14 +010034ly_add_utest(NAME plugins SOURCES basic/test_plugins.c)
Radek Iša56ca9e42020-09-08 18:42:00 +020035ly_add_utest(NAME xml SOURCES basic/test_xml.c)
36ly_add_utest(NAME json SOURCES basic/test_json.c)
37ly_add_utest(NAME xpath SOURCES basic/test_xpath.c)
38ly_add_utest(NAME yanglib SOURCES basic/test_yanglib.c)
39
Radek Krejci85ac8312021-03-03 20:21:33 +010040ly_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 +020041ly_add_utest(NAME parser_yang SOURCES schema/test_parser_yang.c)
42ly_add_utest(NAME parser_yin SOURCES schema/test_parser_yin.c)
Radek Krejci18abde42020-06-13 20:04:39 +020043ly_add_utest(NAME tree_schema_compile SOURCES schema/test_tree_schema_compile.c)
aPiecek20ddf8b2021-01-08 11:50:37 +010044ly_add_utest(NAME printer_tree SOURCES schema/test_printer_tree.c)
Radek Krejci18abde42020-06-13 20:04:39 +020045ly_add_utest(NAME printer_yang SOURCES schema/test_printer_yang.c)
46ly_add_utest(NAME printer_yin SOURCES schema/test_printer_yin.c)
Radek Iša56ca9e42020-09-08 18:42:00 +020047
Radek Krejci18abde42020-06-13 20:04:39 +020048ly_add_utest(NAME tree_data SOURCES data/test_tree_data.c)
49ly_add_utest(NAME new SOURCES data/test_new.c)
50ly_add_utest(NAME parser_xml SOURCES data/test_parser_xml.c)
51ly_add_utest(NAME printer_xml SOURCES data/test_printer_xml.c)
Radek Krejci1798aae2020-07-14 13:26:06 +020052ly_add_utest(NAME parser_json SOURCES data/test_parser_json.c)
Michal Vasko60ea6352020-06-29 13:39:39 +020053ly_add_utest(NAME lyb SOURCES data/test_lyb.c)
Radek Krejci18abde42020-06-13 20:04:39 +020054ly_add_utest(NAME validation SOURCES data/test_validation.c)
55ly_add_utest(NAME types SOURCES data/test_types.c)
Michal Vasko4490d312020-06-16 13:08:55 +020056ly_add_utest(NAME merge SOURCES data/test_merge.c)
Michal Vaskoe893ddd2020-06-23 13:35:20 +020057ly_add_utest(NAME diff SOURCES data/test_diff.c)
Radek Iša56ca9e42020-09-08 18:42:00 +020058
Radek Krejci18abde42020-06-13 20:04:39 +020059ly_add_utest(NAME metadata SOURCES extensions/test_metadata.c)
60ly_add_utest(NAME nacm SOURCES extensions/test_nacm.c)
Radek Krejci038db942021-02-09 16:18:47 +010061ly_add_utest(NAME yangdata SOURCES extensions/test_yangdata.c)