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 |
| 12 | PARENT_SCOPE) |
| 13 | |
Radek Iša | 56ca9e4 | 2020-09-08 18:42:00 +0200 | [diff] [blame] | 14 | ly_add_utest(NAME common SOURCES basic/test_common.c) |
| 15 | ly_add_utest(NAME set SOURCES basic/test_set.c) |
| 16 | ly_add_utest(NAME hash_table SOURCES basic/test_hash_table.c) |
| 17 | ly_add_utest(NAME inout SOURCES basic/test_inout.c) |
| 18 | ly_add_utest(NAME context SOURCES basic/test_context.c) |
| 19 | ly_add_utest(NAME xml SOURCES basic/test_xml.c) |
| 20 | ly_add_utest(NAME json SOURCES basic/test_json.c) |
| 21 | ly_add_utest(NAME xpath SOURCES basic/test_xpath.c) |
| 22 | ly_add_utest(NAME yanglib SOURCES basic/test_yanglib.c) |
| 23 | |
Radek Krejci | 18abde4 | 2020-06-13 20:04:39 +0200 | [diff] [blame] | 24 | ly_add_utest(NAME schema SOURCES schema/test_schema.c schema/test_schema_common.c schema/test_schema_stmts.c) |
Michal Vasko | 63f3d84 | 2020-07-08 10:10:14 +0200 | [diff] [blame] | 25 | ly_add_utest(NAME parser_yang SOURCES schema/test_parser_yang.c) |
| 26 | ly_add_utest(NAME parser_yin SOURCES schema/test_parser_yin.c) |
Radek Krejci | 18abde4 | 2020-06-13 20:04:39 +0200 | [diff] [blame] | 27 | ly_add_utest(NAME tree_schema_compile SOURCES schema/test_tree_schema_compile.c) |
| 28 | ly_add_utest(NAME printer_yang SOURCES schema/test_printer_yang.c) |
| 29 | 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] | 30 | |
Radek Krejci | 18abde4 | 2020-06-13 20:04:39 +0200 | [diff] [blame] | 31 | ly_add_utest(NAME tree_data SOURCES data/test_tree_data.c) |
| 32 | ly_add_utest(NAME new SOURCES data/test_new.c) |
| 33 | ly_add_utest(NAME parser_xml SOURCES data/test_parser_xml.c) |
| 34 | ly_add_utest(NAME printer_xml SOURCES data/test_printer_xml.c) |
Radek Krejci | 1798aae | 2020-07-14 13:26:06 +0200 | [diff] [blame] | 35 | ly_add_utest(NAME parser_json SOURCES data/test_parser_json.c) |
Michal Vasko | 60ea635 | 2020-06-29 13:39:39 +0200 | [diff] [blame] | 36 | ly_add_utest(NAME lyb SOURCES data/test_lyb.c) |
Radek Krejci | 18abde4 | 2020-06-13 20:04:39 +0200 | [diff] [blame] | 37 | ly_add_utest(NAME validation SOURCES data/test_validation.c) |
| 38 | ly_add_utest(NAME types SOURCES data/test_types.c) |
Michal Vasko | 4490d31 | 2020-06-16 13:08:55 +0200 | [diff] [blame] | 39 | ly_add_utest(NAME merge SOURCES data/test_merge.c) |
Michal Vasko | e893ddd | 2020-06-23 13:35:20 +0200 | [diff] [blame] | 40 | ly_add_utest(NAME diff SOURCES data/test_diff.c) |
Radek Iša | 56ca9e4 | 2020-09-08 18:42:00 +0200 | [diff] [blame] | 41 | |
Radek Krejci | 18abde4 | 2020-06-13 20:04:39 +0200 | [diff] [blame] | 42 | ly_add_utest(NAME metadata SOURCES extensions/test_metadata.c) |
| 43 | ly_add_utest(NAME nacm SOURCES extensions/test_nacm.c) |