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 | |
Michal Vasko | 4a4bfe8 | 2021-09-01 14:22:32 +0200 | [diff] [blame] | 17 | ly_add_utest(NAME uint8 SOURCES types/uint8.c) |
| 18 | ly_add_utest(NAME uint16 SOURCES types/uint16.c) |
| 19 | ly_add_utest(NAME uint32 SOURCES types/uint32.c) |
| 20 | ly_add_utest(NAME uint64 SOURCES types/uint64.c) |
Radek Iša | a9ff2b8 | 2021-01-13 21:44:13 +0100 | [diff] [blame] | 21 | ly_add_utest(NAME int8 SOURCES types/int8.c) |
Michal Vasko | 4a4bfe8 | 2021-09-01 14:22:32 +0200 | [diff] [blame] | 22 | ly_add_utest(NAME int16 SOURCES types/int16.c) |
| 23 | ly_add_utest(NAME int32 SOURCES types/int32.c) |
| 24 | ly_add_utest(NAME int64 SOURCES types/int64.c) |
Radek Iša | a3b653e | 2021-02-05 19:05:30 +0100 | [diff] [blame] | 25 | ly_add_utest(NAME string SOURCES types/string.c) |
Radek Iša | ded3105 | 2021-03-10 13:22:53 +0100 | [diff] [blame] | 26 | ly_add_utest(NAME bits SOURCES types/bits.c) |
Michal Vasko | 495f450 | 2021-04-27 14:48:05 +0200 | [diff] [blame] | 27 | ly_add_utest(NAME binary SOURCES types/binary.c) |
Michal Vasko | 3e52de5 | 2021-04-13 13:45:55 +0200 | [diff] [blame] | 28 | ly_add_utest(NAME inet_types SOURCES types/inet_types.c) |
Michal Vasko | de4a341 | 2021-04-14 15:38:27 +0200 | [diff] [blame] | 29 | ly_add_utest(NAME yang_types SOURCES types/yang_types.c) |
aPiecek | a0319a1 | 2021-08-18 14:05:20 +0200 | [diff] [blame] | 30 | ly_add_utest(NAME enumeration SOURCES types/enumeration.c) |
aPiecek | 507562c | 2021-08-23 10:10:29 +0200 | [diff] [blame] | 31 | ly_add_utest(NAME instanceid SOURCES types/instanceid.c) |
aPiecek | 3ecd4bf | 2021-08-23 15:01:57 +0200 | [diff] [blame] | 32 | ly_add_utest(NAME union SOURCES types/union.c) |
aPiecek | ea304e3 | 2021-08-18 09:13:47 +0200 | [diff] [blame] | 33 | ly_add_utest(NAME boolean SOURCES types/boolean.c) |
| 34 | ly_add_utest(NAME decimal64 SOURCES types/decimal64.c) |
| 35 | ly_add_utest(NAME empty SOURCES types/empty.c) |
| 36 | ly_add_utest(NAME identityref SOURCES types/identityref.c) |
| 37 | ly_add_utest(NAME leafref SOURCES types/leafref.c) |
Radek Iša | a9ff2b8 | 2021-01-13 21:44:13 +0100 | [diff] [blame] | 38 | |
Radek Iša | 59bf327 | 2021-03-10 11:22:52 +0100 | [diff] [blame] | 39 | ly_add_utest(NAME range SOURCES restriction/test_range.c) |
| 40 | ly_add_utest(NAME pattern SOURCES restriction/test_pattern.c) |
| 41 | |
Radek Iša | a76902f | 2021-03-29 08:52:51 +0200 | [diff] [blame] | 42 | ly_add_utest(NAME list SOURCES node/list.c) |
| 43 | |
Radek Iša | 56ca9e4 | 2020-09-08 18:42:00 +0200 | [diff] [blame] | 44 | ly_add_utest(NAME common SOURCES basic/test_common.c) |
| 45 | ly_add_utest(NAME set SOURCES basic/test_set.c) |
| 46 | ly_add_utest(NAME hash_table SOURCES basic/test_hash_table.c) |
| 47 | ly_add_utest(NAME inout SOURCES basic/test_inout.c) |
| 48 | ly_add_utest(NAME context SOURCES basic/test_context.c) |
Radek Krejci | 5902be9 | 2021-03-25 21:25:14 +0100 | [diff] [blame] | 49 | ly_add_utest(NAME plugins SOURCES basic/test_plugins.c) |
Radek Iša | 56ca9e4 | 2020-09-08 18:42:00 +0200 | [diff] [blame] | 50 | ly_add_utest(NAME xml SOURCES basic/test_xml.c) |
| 51 | ly_add_utest(NAME json SOURCES basic/test_json.c) |
| 52 | ly_add_utest(NAME xpath SOURCES basic/test_xpath.c) |
| 53 | ly_add_utest(NAME yanglib SOURCES basic/test_yanglib.c) |
| 54 | |
Radek Krejci | 85ac831 | 2021-03-03 20:21:33 +0100 | [diff] [blame] | 55 | 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] | 56 | ly_add_utest(NAME parser_yang SOURCES schema/test_parser_yang.c) |
| 57 | ly_add_utest(NAME parser_yin SOURCES schema/test_parser_yin.c) |
Radek Krejci | 18abde4 | 2020-06-13 20:04:39 +0200 | [diff] [blame] | 58 | 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] | 59 | ly_add_utest(NAME printer_tree SOURCES schema/test_printer_tree.c) |
Radek Krejci | 18abde4 | 2020-06-13 20:04:39 +0200 | [diff] [blame] | 60 | ly_add_utest(NAME printer_yang SOURCES schema/test_printer_yang.c) |
| 61 | 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] | 62 | |
Radek Krejci | 18abde4 | 2020-06-13 20:04:39 +0200 | [diff] [blame] | 63 | ly_add_utest(NAME tree_data SOURCES data/test_tree_data.c) |
| 64 | ly_add_utest(NAME new SOURCES data/test_new.c) |
| 65 | ly_add_utest(NAME parser_xml SOURCES data/test_parser_xml.c) |
| 66 | ly_add_utest(NAME printer_xml SOURCES data/test_printer_xml.c) |
Radek Krejci | 1798aae | 2020-07-14 13:26:06 +0200 | [diff] [blame] | 67 | ly_add_utest(NAME parser_json SOURCES data/test_parser_json.c) |
Michal Vasko | 60ea635 | 2020-06-29 13:39:39 +0200 | [diff] [blame] | 68 | ly_add_utest(NAME lyb SOURCES data/test_lyb.c) |
Radek Krejci | 18abde4 | 2020-06-13 20:04:39 +0200 | [diff] [blame] | 69 | ly_add_utest(NAME validation SOURCES data/test_validation.c) |
Michal Vasko | 4490d31 | 2020-06-16 13:08:55 +0200 | [diff] [blame] | 70 | ly_add_utest(NAME merge SOURCES data/test_merge.c) |
Michal Vasko | e893ddd | 2020-06-23 13:35:20 +0200 | [diff] [blame] | 71 | ly_add_utest(NAME diff SOURCES data/test_diff.c) |
Radek Iša | 56ca9e4 | 2020-09-08 18:42:00 +0200 | [diff] [blame] | 72 | |
Radek Krejci | 18abde4 | 2020-06-13 20:04:39 +0200 | [diff] [blame] | 73 | ly_add_utest(NAME metadata SOURCES extensions/test_metadata.c) |
| 74 | ly_add_utest(NAME nacm SOURCES extensions/test_nacm.c) |
Radek Krejci | 038db94 | 2021-02-09 16:18:47 +0100 | [diff] [blame] | 75 | ly_add_utest(NAME yangdata SOURCES extensions/test_yangdata.c) |