clixon/test
2022-08-29 18:29:31 +02:00
..
cicd * HTTP/1 native parser as part of the RESTCONF client 2022-02-08 16:59:08 +01:00
fuzz * Unit test ifdef for restconf http1 parser 2022-02-17 09:16:01 +01:00
jenkins Added make test and travis experiment 2019-02-04 14:13:20 +01:00
mibs SNMP: Add IPaddress scalar to clixon mib and fix ipv4 set translation 2022-07-08 10:32:25 +02:00
vagrant Test: fixed snmp for docker/fcgi 2022-07-27 18:28:24 +02:00
virtualbox Deleted obsolete fields in clixon-config.yang 2022-03-05 12:48:37 +01:00
all.sh restconf memleaks 2021-06-24 13:09:18 +02:00
clixon.png Http data server Fixed binary data retrieval 2022-05-05 18:08:45 +02:00
config.sh.in Restconf RFC8071 call-home first working prototype 2022-07-31 09:59:52 +02:00
example_social.sh Tests: added expect script for pagination stdio 2022-03-14 14:02:21 +01:00
jukebox.sh test env bash; freebsd config 2019-09-17 22:44:01 +02:00
lib.sh Restconf callhome: Added YANG connection-type, test: added NACM 2022-08-12 15:05:18 +02:00
long.sh Only test recursive dirs for OpenConfig tests. 2021-11-09 09:23:43 +01:00
Makefile.in Updated copyright statements to 2022 2022-01-18 16:36:00 +01:00
mem.sh Restconf RFC8071 call-home first working prototype 2022-07-31 09:59:52 +02:00
nacm.sh Added error handling in yang_path_arg triggered by no filter in get paginated 2021-11-10 18:35:24 +01:00
plot_perf.sh Only test recursive dirs for OpenConfig tests. 2021-11-09 09:23:43 +01:00
README.md Test: remove obsolete test_ openconfig_system 2022-07-22 16:57:46 +02:00
site.sh * Tests: use YANG_STANDARD_DIR from ./configure --with-yang-standard-dir=DIR instead of YANGMODELS from site.sh 2021-12-16 22:44:45 +01:00
sum.sh Test: Added detail env var to sum.sh, Changed make test to include detailed test 2022-07-21 09:08:18 +02:00
test_api.sh * configure --with-wwwdir=<dir> is removed 2022-02-07 13:31:39 +01:00
test_api_path.sh * Made a separate Clixon datastore XML/JSON top-level symbol 2021-03-05 14:15:15 +01:00
test_augment.sh Fixed: [Missing/no namespace error in YANG augments with default values](https://github.com/clicon/clixon/issues/354) 2022-08-18 16:38:24 +02:00
test_augment_default.sh Fixed: [YANG ordering fails for nested choice and action](YANG ordering fails for nested choice and action) 2022-08-24 13:02:38 +02:00
test_augment_state.sh Fixed: [Missing/no namespace error in YANG augments with default values](https://github.com/clicon/clixon/issues/354) 2022-08-18 16:38:24 +02:00
test_augment_trans.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_autocli_editmode.sh Test: Fixed: show netconf pretty 2022-06-07 14:21:40 +02:00
test_autocli_extension.sh Fixed: ["autocli:hide-show" extension cause bug in xmldb_put method #343](https://github.com/clicon/clixon/issues/343) 2022-07-22 16:06:28 +02:00
test_autocli_listkey_compress.sh Module state upgrade: RFC7895 to RFC 8525 2022-03-07 10:56:54 +01:00
test_autocli_spec.sh Refactoring of if-feature parse code 2022-07-20 22:48:09 +02:00
test_autocli_strict_expand.sh CLI argument to shell example callback 2022-04-11 19:09:26 +02:00
test_autocli_sub.sh Module state upgrade: RFC7895 to RFC 8525 2022-03-07 10:56:54 +01:00
test_autocli_treeref.sh Module state upgrade: RFC7895 to RFC 8525 2022-03-07 10:56:54 +01:00
test_c++.sh Changed C-API for xml translation/print the internal cxobj tree data structure to other formats 2022-06-01 20:02:27 +02:00
test_choice.sh Fixed: [YANG ordering fails for nested choice and action](YANG ordering fails for nested choice and action) 2022-08-24 13:02:38 +02:00
test_choice_recursive.sh Fixed: [Validation of mandatory in choice/case does not work in some cases](https://github.com/clicon/clixon/issues/349) 2022-08-10 13:25:30 +02:00
test_cli.sh Augmented XML uses default namespace 2022-06-08 11:49:48 +02:00
test_cli_apipath.sh Logging fixes 2022-04-30 11:31:51 +02:00
test_cli_duplicates.sh Tests for duplication bugfix https://github.com/clicon/clixon/issues/301 2022-02-10 17:14:51 +01:00
test_cli_expand.sh test of cligen expand bug #332 2022-05-30 15:27:19 +02:00
test_cli_history.sh * configure --with-wwwdir=<dir> is removed 2022-02-07 13:31:39 +01:00
test_cli_leafref.sh SNMP frontend: forgot GET detailed type info in last commit 2022-06-26 11:28:42 +02:00
test_cli_multikey.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_cli_rest.sh Test: added test of CLI rest variables with delimiters 2022-05-10 17:37:55 +02:00
test_cli_submodes.sh * configure --with-wwwdir=<dir> is removed 2022-02-07 13:31:39 +01:00
test_cli_translate.sh * configure --with-wwwdir=<dir> is removed 2022-02-07 13:31:39 +01:00
test_cli_union.sh * Removed docker warning: set master default branch 2022-02-17 12:38:39 +01:00
test_cli_varonly.sh * configure --with-wwwdir=<dir> is removed 2022-02-07 13:31:39 +01:00
test_client.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_configdir.sh * configure --with-wwwdir=<dir> is removed 2022-02-07 13:31:39 +01:00
test_copy_config.sh Fixed: [Missing/no namespace error in YANG augments with default values](https://github.com/clicon/clixon/issues/354) 2022-08-18 16:38:24 +02:00
test_datastore.sh Internal RESTCONF changes: 2021-04-30 14:49:01 +02:00
test_datastore_format.sh Fixed: [RPC edit-config payloads are not fully validated](https://github.com/clicon/clixon/issues/337) 2022-06-20 15:08:50 +02:00
test_datastore_repair.sh Augmented XML uses default namespace 2022-06-08 11:49:48 +02:00
test_db.sh Fixed: [RPC edit-config payloads are not fully validated](https://github.com/clicon/clixon/issues/337) 2022-06-20 15:08:50 +02:00
test_debug.sh * [prevent clixon-restconf@2021-05-20.yang module from loading](https://github.com/clicon/clixon/issues/318) 2022-03-29 17:24:03 +02:00
test_dispatcher.sh Dispatcher: modified key handling and added print function 2021-10-13 21:03:59 +02:00
test_feature.sh * Full RFC 7950 if-feature-expr support (Section 7.20.2) 2022-06-26 10:58:43 +02:00
test_feature_startup.sh * [Adding feature to top level container doesn't work](https://github.com/clicon/clixon/issues/322) 2022-04-06 14:04:11 +02:00
test_helloworld.sh * Experimental text syntax parser/loader 2022-06-01 11:07:15 +02:00
test_http_data.sh Http data server Fixed binary data retrieval 2022-05-05 18:08:45 +02:00
test_identity.sh Fixed: [Missing/no namespace error in YANG augments with default values](https://github.com/clicon/clixon/issues/354) 2022-08-18 16:38:24 +02:00
test_insert.sh * configure --with-wwwdir=<dir> is removed 2022-02-07 13:31:39 +01:00
test_install.sh - Memleaks in xpath parse error 2021-10-03 18:49:25 +02:00
test_instance_id.sh * Made a separate Clixon datastore XML/JSON top-level symbol 2021-03-05 14:15:15 +01:00
test_instance_id_multi.sh * Made a separate Clixon datastore XML/JSON top-level symbol 2021-03-05 14:15:15 +01:00
test_json.sh * XML to JSON CDATA translation is NOT stripped 2021-11-13 17:11:00 +01:00
test_json_list.sh Fixed: [Returning a string while Querying leaf-list for single entry](https://github.com/clicon/clixon/issues/326) 2022-05-12 12:04:13 +02:00
test_json_null.sh * [JSON leaf-list output single element leaf-list does not use array](https://github.com/clicon/clixon/issues/289) 2021-11-29 13:43:10 +01:00
test_leaf_default.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_leafref.sh Fixed: [Missing/no namespace error in YANG augments with default values](https://github.com/clicon/clixon/issues/354) 2022-08-18 16:38:24 +02:00
test_leafref_augment.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_leafref_state.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_leafref_union.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_leafref_uses_augment.sh Module state upgrade: RFC7895 to RFC 8525 2022-03-07 10:56:54 +01:00
test_minmax.sh Fixed: [YANG min-elements within non-presence container does not work](https://github.com/clicon/clixon/issues/355) 2022-08-23 19:40:16 +02:00
test_nacm.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_nacm_credentials.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_nacm_datanode.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_nacm_datanode_paths.sh * configure --with-wwwdir=<dir> is removed 2022-02-07 13:31:39 +01:00
test_nacm_datanode_read.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_nacm_datanode_write.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_nacm_default.sh * configure --with-wwwdir=<dir> is removed 2022-02-07 13:31:39 +01:00
test_nacm_ext.sh Module state upgrade: RFC7895 to RFC 8525 2022-03-07 10:56:54 +01:00
test_nacm_module_read.sh Fixed: [RPC edit-config payloads are not fully validated](https://github.com/clicon/clixon/issues/337) 2022-06-20 15:08:50 +02:00
test_nacm_module_write.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_nacm_protocol.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_nacm_recovery.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_netconf.sh Fixed: [Missing/no namespace error in YANG augments with default values](https://github.com/clicon/clixon/issues/354) 2022-08-18 16:38:24 +02:00
test_netconf_filter.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_netconf_framing.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_netconf_hello.sh FC6243 with-defaults=report-all-tagged test cases and implementation added 2022-08-29 18:29:31 +02:00
test_netconf_notifications.sh - Misc documentation 2022-04-14 15:21:25 +02:00
test_netconf_ssh_callhome.sh FC6243 with-defaults=report-all-tagged test cases and implementation added 2022-08-29 18:29:31 +02:00
test_netconf_whitespace.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_openconfig.sh test yangmodels, filter mpls-ldp yang models due to bug(again) 2022-03-28 15:33:14 +02:00
test_openconfig_interfaces.sh Fixed: [Missing/no namespace error in YANG augments with default values](https://github.com/clicon/clixon/issues/354) 2022-08-18 16:38:24 +02:00
test_openconfig_network_instance.sh Fixed: [Missing/no namespace error in YANG augments with default values](https://github.com/clicon/clixon/issues/354) 2022-08-18 16:38:24 +02:00
test_order.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_pagination_config.sh Tests: disabled: valgrind and pagination, restconf notification 2022-05-13 15:02:20 +00:00
test_pagination_draft.sh - Misc documentation 2022-04-14 15:21:25 +02:00
test_pagination_expect.exp Changed C-API for xml translation/print the internal cxobj tree data structure to other formats 2022-06-01 20:02:27 +02:00
test_pagination_state.sh - Misc documentation 2022-04-14 15:21:25 +02:00
test_pattern.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_perf_cli.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_perf_json.sh * Partly Fixed: [String concatenation in YANG model leads to syntax error](https://github.com/clicon/clixon/issues/265) 2021-09-20 22:54:14 +02:00
test_perf_mem.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_perf_netconf.sh Test: netconf -H flag replaced with -1 caused valgrind fails 2022-05-12 21:49:34 +02:00
test_perf_restconf.sh Test: restconf CN variable, strip curl newline 2022-05-12 09:40:12 +02:00
test_perf_restconf_ssl.sh Test: netconf -H flag replaced with -1 caused valgrind fails 2022-05-12 21:49:34 +02:00
test_perf_startup.sh * configure --with-wwwdir=<dir> is removed 2022-02-07 13:31:39 +01:00
test_perf_state.sh Test: netconf -H flag replaced with -1 caused valgrind fails 2022-05-12 21:49:34 +02:00
test_perf_state_only.sh Test: netconf -H flag replaced with -1 caused valgrind fails 2022-05-12 21:49:34 +02:00
test_perf_xml.sh * Made a separate Clixon datastore XML/JSON top-level symbol 2021-03-05 14:15:15 +01:00
test_privileges.sh * configure --with-wwwdir=<dir> is removed 2022-02-07 13:31:39 +01:00
test_refine.sh * Break-out RFC 7950 Section 6.1 tokenization 2022-07-25 09:25:11 +02:00
test_restconf.sh Fixed: YANG if-feature in config file did not work, was always on 2022-04-23 16:49:09 +02:00
test_restconf_basic_auth.sh Module state upgrade: RFC7895 to RFC 8525 2022-03-07 10:56:54 +01:00
test_restconf_callhome.sh Various typos 2022-08-26 12:22:30 +00:00
test_restconf_continue.sh Fixed: YANG if-feature in config file did not work, was always on 2022-04-23 16:49:09 +02:00
test_restconf_err.sh Example main -v/-V issues breaking previous commit tests 2022-07-21 08:07:48 +02:00
test_restconf_http_upgrade.sh * [prevent clixon-restconf@2021-05-20.yang module from loading](https://github.com/clicon/clixon/issues/318) 2022-03-29 17:24:03 +02:00
test_restconf_internal.sh Clixon 5.8.0 release 2022-07-28 19:15:00 +02:00
test_restconf_internal_usecases.sh 5.7.0 release 2022-05-17 11:45:43 +02:00
test_restconf_jukebox.sh Module state upgrade: RFC7895 to RFC 8525 2022-03-07 10:56:54 +01:00
test_restconf_listkey.sh Module state upgrade: RFC7895 to RFC 8525 2022-03-07 10:56:54 +01:00
test_restconf_netns.sh 5.7.0 release 2022-05-17 11:45:43 +02:00
test_restconf_nmap.sh Test: restconf CN variable, strip curl newline 2022-05-12 09:40:12 +02:00
test_restconf_notifications.sh Tests: disabled: valgrind and pagination, restconf notification 2022-05-13 15:02:20 +00:00
test_restconf_op.sh * Fixed: HTTP/1 multiple write requests in single session appended data between writes, eg PUT+PUT. 2022-03-28 22:55:43 +02:00
test_restconf_plain_patch.sh * configure --with-wwwdir=<dir> is removed 2022-02-07 13:31:39 +01:00
test_restconf_ssl_certs.sh * Added: [Feature Request: Log SSL events](https://github.com/clicon/clixon/issues/331) 2022-06-08 13:22:38 +02:00
test_restconf_startup.sh * configure --with-wwwdir=<dir> is removed 2022-02-07 13:31:39 +01:00
test_restconf_yang_patch_json.sh * configure --with-wwwdir=<dir> is removed 2022-02-07 13:31:39 +01:00
test_restconf_yang_patch_xml.sh * configure --with-wwwdir=<dir> is removed 2022-02-07 13:31:39 +01:00
test_rpc.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_search_index.sh * Made a separate Clixon datastore XML/JSON top-level symbol 2021-03-05 14:15:15 +01:00
test_snmp_entity.sh SNMP: Internal cache handling for rowstatus 2022-07-11 10:07:48 +02:00
test_snmp_get.sh SNMP: Internal cache handling for rowstatus 2022-07-11 10:07:48 +02:00
test_snmp_ifmib.sh SNMP: Internal cache handling for rowstatus 2022-07-11 10:07:48 +02:00
test_snmp_rowstatus.sh SNMP: Internal cache handling for rowstatus 2022-07-11 10:07:48 +02:00
test_snmp_set.sh SNMP: Internal cache handling for rowstatus 2022-07-11 10:07:48 +02:00
test_snmp_system.sh SNMP: Internal cache handling for rowstatus 2022-07-11 10:07:48 +02:00
test_sock.sh Module state upgrade: RFC7895 to RFC 8525 2022-03-07 10:56:54 +01:00
test_startup.sh Fixed: [Missing/no namespace error in YANG augments with default values](https://github.com/clicon/clixon/issues/354) 2022-08-18 16:38:24 +02:00
test_submodule.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_transaction.sh Refactoring of if-feature parse code 2022-07-20 22:48:09 +02:00
test_transaction_restart.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_type.sh Test: modified test for fix [Validation of mandatory in choice/case does not work in some cases](https://github.com/clicon/clixon/issues/349) 2022-08-10 13:38:15 +02:00
test_type_range.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_union.sh * Break-out RFC 7950 Section 6.1 tokenization 2022-07-25 09:25:11 +02:00
test_unique.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_unique_descendant.sh Fixed: [RPC edit-config payloads are not fully validated](https://github.com/clicon/clixon/issues/337) 2022-06-20 15:08:50 +02:00
test_upgrade_auto.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_upgrade_checkold.sh Module state upgrade: RFC7895 to RFC 8525 2022-03-07 10:56:54 +01:00
test_upgrade_failsafe.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_upgrade_interfaces.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_upgrade_interfaces_rfc7895.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_upgrade_module.sh Module state upgrade: RFC7895 to RFC 8525 2022-03-07 10:56:54 +01:00
test_upgrade_quit.sh Module state upgrade: RFC7895 to RFC 8525 2022-03-07 10:56:54 +01:00
test_upgrade_repair.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_upgrade_simple.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_when_must.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_with_default.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_xml.sh * XML to JSON CDATA translation is NOT stripped 2021-11-13 17:11:00 +01:00
test_xml_trees.sh * configure --with-wwwdir=<dir> is removed 2022-02-07 13:31:39 +01:00
test_xml_validate.sh * Made a separate Clixon datastore XML/JSON top-level symbol 2021-03-05 14:15:15 +01:00
test_xpath.sh * XPath parser: fixing lexical issues cornercases 2022-04-07 12:53:57 +02:00
test_xpath_canonical.sh - New netconf-specific uint32 parse functions 2021-09-21 11:24:53 +02:00
test_xpath_functions.sh Added XPATH function boolean() 2022-07-08 15:12:28 +02:00
test_xpath_inverse.sh * Added nsc parameter to xml2xpath() and ensured the xpath uses prefixes. 2022-05-09 13:48:07 +02:00
test_yang.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_yang_action.sh YANG Action (RFC 7950 Section 7.15) 2022-06-21 15:44:02 +02:00
test_yang_anydata.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_yang_bind.sh Module state upgrade: RFC7895 to RFC 8525 2022-03-07 10:56:54 +01:00
test_yang_default.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_yang_deviation.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_yang_extension.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_yang_load.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_yang_models_ieee.sh Fixed: YANG parsing: unknown-stmt was not allowed within another unknown-stmt 2022-02-09 14:21:40 +01:00
test_yang_models_ietf.sh * XPath parser: fixing lexical issues cornercases 2022-04-07 12:53:57 +02:00
test_yang_namespace.sh Fixed static build typo 2022-04-09 15:14:18 +00:00
test_yang_when.sh * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. 2022-03-28 12:36:44 +02:00
test_yang_with_defaults.sh Improved testcases for RESTCONF 2022-08-29 18:29:31 +02:00
valgrind-clixon.supp Revert "Revert "* Added valgrind memory leak tests in testmem.sh for restconf"" 2019-02-20 16:25:42 +01:00

Clixon Test and CI

Overview

This directory contains Clixon test suites. Files directly under this directory called test_*.sh are part of the regression CI tests.

There are also sub-directories for various other tests:

  • cicd - Test scripts for running on remote hosts
  • fuzz - Fuzzing with american fuzzy lop
  • vagrant - Scripts for booting local vagrant hosts, installing clixon and running clixon tests

automatically run as part of the all.sh, sum.sh tests etc. The scripts need to follow some rules to work properly, please look at one or two to get the idea.

Most scripts are bash scripts using standard awk/sed etc. There is also (at least one) expect script.

Note that some IETF yangs need to be available, by default these are in /usr/local//share/yang/standard. You can change this location with configure option --with-yang-standard-dir=DIR

See also the site.sh for example for skipping tests or setting some site-specific variables.

Openconfig and Yang

To download the openconfig and yang models required for the tests:

   cd /usr/local/share/openconfig
   git clone https://github.com/openconfig/public
   cd /usr/local/share/yang
   git init
   git remote add -f origin https://github.com/YangModels/yang
   git config core.sparseCheckout true
   echo "standard/" >> .git/info/sparse-checkout
   echo "experimental/" >> .git/info/sparse-checkout
   git pull origin main

Continuous Integration

CI is done via github actions.

In the CI process, the system is built and configured and then the clixon test container is built and the tests in this directory is executed.

There are also manual cicd scripts here

Getting started

You need to build and install the clixon utility programs before running the tests as some of the tests rely on them:

  cd util
  make
  sudo make install

You need to configure and start nginx for the restconf tests:

  • The example has instructions on how to edit your nginx config files
  • If you run systemd: sudo systemctl start nginx.service

You may need to install the time utility (/usr/bin/time).

Prefix variable

You can prefix a test with BE=0 if you want to run your own backend.

You can prefix a test with RC=0 if you want to run your own restconf process.

You can prefix a test with SN=0 if you want to run your own SNMP process (in combination with BE=0)

To run with debug flags, use the DBG=<number> environment variable.

Other variables include:

  • DEMWAIT Number of seconds to sleep after daemons have started

Run all tests

You can run an individual test by itself, or run through all tests matching 'test_*.sh' in the directory. Prints test output and stops on first error:

  all.sh

Run all tests but continue after errors and only print a summary test output identifying which tests succeeded and which failed:

  sum.sh

Add a detailed error print of the first test that failed, if any:

  detail=true sum.sh

Memory leak test

The mem.sh runs memory checks using valgrind. Start it with no arguments to test all components (backend, restconf, cli, netconf), or specify which components to run:

  mem.sh    2>&1 | tee mylog        # All components
  mem.sh restconf backend           # Only backend and cli

Run pattern of tests

The above scripts work with the pattern variable to limit the scope of which tests run, eg:

  pattern="test_c*.sh" mem.sh

TLS and http/2

With default configure options, most tests run http/2 and TLS by default. To pin tests to override this use the HVER and RCPROTO variables. Example:

HVER=1.1 RCPROTO=http ./test_restconf_plain_patch.sh

Some tests are pinned to certain settings and overriding will not will not work.

Performance plots

The script plot_perf.sh produces gnuplots for some testcases.

Site.sh

You may add your site-specific modifications in a site.sh file. Example:

  # Add your local site specific env variables (or tests) here.
  # Add test to this list that you dont want run
  SKIPLIST="test_openconfig.sh test_yangmodels.sh"
  # Parse yang openconfig models from https://github.com/openconfig/public
  OPENCONFIG=/usr/local/share/openconfig/public

For example, in FreeBSD, add:

  wwwuser=www
  make=gmake

https

For fcgi/nginx you need to setup https in the nginx config file, independently of clixon.

If you use native with configure --with-restconf=http1, you can prepend the tests with RCPROTO=https which will run all restconf tests with SSL https and server certs.

Ensure the server keys are in order, as follows.

If you already have server certs, ensure the RESTCONF variable in lib.sh points to them, by default the config is

  <server-cert-path>/etc/ssl/certs/clixon-server-crt.pem</server-cert-path>
  <server-key-path>/etc/ssl/private/clixon-server-key.pem</server-key-path>
  <server-ca-cert-path>/etc/ssl/certs/clixon-ca-crt.pem</server-ca-cert-path>

If you do not have them, generate self-signed certs, eg as follows:

  openssl req -x509 -nodes -newkey rsa:4096 -keyout /etc/ssl/private/clixon-server-key.pem -out /etc/ssl/certs/clixon-server-crt.pem -days 365

There are also client-cert tests, eg test_ssl_certs.sh

SNMP

Clixon snmp frontend tests require a running netsnmpd and converted YANG files from MIB.

Netsnmpd is 5.9 or later and can be started via systemd. For the tests to run, the systems IFMIB should be disabled: -I -ifTable,ifNumber,ifXTable,, etc.

One way to start snmpd on Ubuntu, known to be working for the tests are: snmpd -Lo -p /var/run/snmpd.pid -I -ifXTable -I -ifTable -I -system_mib -I -sysORTable -I -snmpNotifyFilterTable -I -snmpNotifyTable -I -snmpNotifyFilterProfileTable

Converted YANG files are available at https://github.com/clicon/mib-yangs or alternatively use smidump version 0.5 or later. Clixon expects them to be at /usr/local/share/mib-yangs/ by default, or configured by --with-mib-generated-yang-dir=DIR.

You also need to configure a unix socket for agent. Example of /etc/snmp/snmpd.conf:

master  agentx
agentaddress  127.0.0.1,[::1]
rwcommunity     public  localhost
agentXSocket    unix:/var/run/snmp.sock
agentxperms     777 777

Known issues

Workaround: Unicode double-quote in iana-if-type@2022-03-07.yang