Radek Krejci | b4ac5a9 | 2020-11-23 17:54:33 +0100 | [diff] [blame] | 1 | |
| 2 | include_directories(${CMAKE_CURRENT_SOURCE_DIR}) |
| 3 | |
| 4 | set(format_sources |
| 5 | ${format_sources} |
Radek Krejci | b4ac5a9 | 2020-11-23 17:54:33 +0100 | [diff] [blame] | 6 | ${CMAKE_CURRENT_SOURCE_DIR}/*.h |
Radek Iša | 56ca9e4 | 2020-09-08 18:42:00 +0200 | [diff] [blame] | 7 | ${CMAKE_CURRENT_SOURCE_DIR}/basic/*.c |
Radek Krejci | b4ac5a9 | 2020-11-23 17:54:33 +0100 | [diff] [blame] | 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 |
Radek Iša | a9ff2b8 | 2021-01-13 21:44:13 +0100 | [diff] [blame] | 12 | ${CMAKE_CURRENT_SOURCE_DIR}/types/*.c |
Radek Iša | 59bf327 | 2021-03-10 11:22:52 +0100 | [diff] [blame] | 13 | ${CMAKE_CURRENT_SOURCE_DIR}/restriction/*.c |
Radek Iša | a76902f | 2021-03-29 08:52:51 +0200 | [diff] [blame] | 14 | ${CMAKE_CURRENT_SOURCE_DIR}/node/*.c |
Radek Krejci | b4ac5a9 | 2020-11-23 17:54:33 +0100 | [diff] [blame] | 15 | PARENT_SCOPE) |
| 16 | |
Radek Iša | a9ff2b8 | 2021-01-13 21:44:13 +0100 | [diff] [blame] | 17 | ly_add_utest(NAME int8 SOURCES types/int8.c) |
Radek Iša | a3b653e | 2021-02-05 19:05:30 +0100 | [diff] [blame] | 18 | ly_add_utest(NAME string SOURCES types/string.c) |
Radek Iša | ded3105 | 2021-03-10 13:22:53 +0100 | [diff] [blame] | 19 | ly_add_utest(NAME bits SOURCES types/bits.c) |
Michal Vasko | 495f450 | 2021-04-27 14:48:05 +0200 | [diff] [blame] | 20 | ly_add_utest(NAME binary SOURCES types/binary.c) |
Michal Vasko | 3e52de5 | 2021-04-13 13:45:55 +0200 | [diff] [blame] | 21 | ly_add_utest(NAME inet_types SOURCES types/inet_types.c) |
Michal Vasko | de4a341 | 2021-04-14 15:38:27 +0200 | [diff] [blame] | 22 | ly_add_utest(NAME yang_types SOURCES types/yang_types.c) |
Radek Iša | a9ff2b8 | 2021-01-13 21:44:13 +0100 | [diff] [blame] | 23 | |
Radek Iša | 59bf327 | 2021-03-10 11:22:52 +0100 | [diff] [blame] | 24 | ly_add_utest(NAME range SOURCES restriction/test_range.c) |
| 25 | ly_add_utest(NAME pattern SOURCES restriction/test_pattern.c) |
| 26 | |
Radek Iša | a76902f | 2021-03-29 08:52:51 +0200 | [diff] [blame] | 27 | ly_add_utest(NAME list SOURCES node/list.c) |
| 28 | |
Radek Iša | 56ca9e4 | 2020-09-08 18:42:00 +0200 | [diff] [blame] | 29 | ly_add_utest(NAME common SOURCES basic/test_common.c) |
| 30 | ly_add_utest(NAME set SOURCES basic/test_set.c) |
| 31 | ly_add_utest(NAME hash_table SOURCES basic/test_hash_table.c) |
| 32 | ly_add_utest(NAME inout SOURCES basic/test_inout.c) |
| 33 | ly_add_utest(NAME context SOURCES basic/test_context.c) |
Radek Krejci | 5902be9 | 2021-03-25 21:25:14 +0100 | [diff] [blame] | 34 | ly_add_utest(NAME plugins SOURCES basic/test_plugins.c) |
Radek Iša | 56ca9e4 | 2020-09-08 18:42:00 +0200 | [diff] [blame] | 35 | ly_add_utest(NAME xml SOURCES basic/test_xml.c) |
| 36 | ly_add_utest(NAME json SOURCES basic/test_json.c) |
| 37 | ly_add_utest(NAME xpath SOURCES basic/test_xpath.c) |
| 38 | ly_add_utest(NAME yanglib SOURCES basic/test_yanglib.c) |
| 39 | |
Radek Krejci | 85ac831 | 2021-03-03 20:21:33 +0100 | [diff] [blame] | 40 | ly_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 Vasko | 63f3d84 | 2020-07-08 10:10:14 +0200 | [diff] [blame] | 41 | ly_add_utest(NAME parser_yang SOURCES schema/test_parser_yang.c) |
| 42 | ly_add_utest(NAME parser_yin SOURCES schema/test_parser_yin.c) |
Radek Krejci | 18abde4 | 2020-06-13 20:04:39 +0200 | [diff] [blame] | 43 | ly_add_utest(NAME tree_schema_compile SOURCES schema/test_tree_schema_compile.c) |
aPiecek | 20ddf8b | 2021-01-08 11:50:37 +0100 | [diff] [blame] | 44 | ly_add_utest(NAME printer_tree SOURCES schema/test_printer_tree.c) |
Radek Krejci | 18abde4 | 2020-06-13 20:04:39 +0200 | [diff] [blame] | 45 | ly_add_utest(NAME printer_yang SOURCES schema/test_printer_yang.c) |
| 46 | ly_add_utest(NAME printer_yin SOURCES schema/test_printer_yin.c) |
Radek Iša | 56ca9e4 | 2020-09-08 18:42:00 +0200 | [diff] [blame] | 47 | |
Radek Krejci | 18abde4 | 2020-06-13 20:04:39 +0200 | [diff] [blame] | 48 | ly_add_utest(NAME tree_data SOURCES data/test_tree_data.c) |
| 49 | ly_add_utest(NAME new SOURCES data/test_new.c) |
| 50 | ly_add_utest(NAME parser_xml SOURCES data/test_parser_xml.c) |
| 51 | ly_add_utest(NAME printer_xml SOURCES data/test_printer_xml.c) |
Radek Krejci | 1798aae | 2020-07-14 13:26:06 +0200 | [diff] [blame] | 52 | ly_add_utest(NAME parser_json SOURCES data/test_parser_json.c) |
Michal Vasko | 60ea635 | 2020-06-29 13:39:39 +0200 | [diff] [blame] | 53 | ly_add_utest(NAME lyb SOURCES data/test_lyb.c) |
Radek Krejci | 18abde4 | 2020-06-13 20:04:39 +0200 | [diff] [blame] | 54 | ly_add_utest(NAME validation SOURCES data/test_validation.c) |
| 55 | ly_add_utest(NAME types SOURCES data/test_types.c) |
Michal Vasko | 4490d31 | 2020-06-16 13:08:55 +0200 | [diff] [blame] | 56 | ly_add_utest(NAME merge SOURCES data/test_merge.c) |
Michal Vasko | e893ddd | 2020-06-23 13:35:20 +0200 | [diff] [blame] | 57 | ly_add_utest(NAME diff SOURCES data/test_diff.c) |
Radek Iša | 56ca9e4 | 2020-09-08 18:42:00 +0200 | [diff] [blame] | 58 | |
Radek Krejci | 18abde4 | 2020-06-13 20:04:39 +0200 | [diff] [blame] | 59 | ly_add_utest(NAME metadata SOURCES extensions/test_metadata.c) |
| 60 | ly_add_utest(NAME nacm SOURCES extensions/test_nacm.c) |
Radek Krejci | 038db94 | 2021-02-09 16:18:47 +0100 | [diff] [blame] | 61 | ly_add_utest(NAME yangdata SOURCES extensions/test_yangdata.c) |