clixon/test
2019-02-04 11:49:53 +01:00
..
all.sh test scripts: added sum.sh 2019-02-02 13:19:49 +01:00
Jenkinsfile Jenkinsfile sudo 2018-06-17 23:12:39 +02:00
lib.sh Test script change: merged new2+new functions 2019-02-02 12:20:47 +01:00
nacm.sh * NACM extension (RFC8341) 2018-12-16 19:49:19 +01:00
plot_perf.sh restconf performance test 2018-01-27 14:46:53 +01:00
README.md test scripts: added sum.sh 2019-02-02 13:19:49 +01:00
sum.sh test scripts: added sum.sh 2019-02-02 13:19:49 +01:00
test_choice.sh Test script change: merged new2+new functions 2019-02-02 12:20:47 +01:00
test_cli.sh * Added -o "<option>=<value>" command-line option to all programs: backend, cli, netconf, restconf. 2019-01-13 17:34:15 +01:00
test_compat.sh * Added -o "<option>=<value>" command-line option to all programs: backend, cli, netconf, restconf. 2019-01-13 17:34:15 +01:00
test_datastore.sh * Strict namespace setting can be a problem when upgrading existing database files, such as startup-db or persistent running-db, or any other saved XML file. 2019-01-02 15:18:29 +01:00
test_feature.sh * xml_cmp() respects 'ordered-by user' for state nodes, which violates RFC 7950 [https://github.com/clicon/clixon/issues/63. (Thanks JDL) 2019-02-03 16:19:33 +01:00
test_identity.sh * Added -o "<option>=<value>" command-line option to all programs: backend, cli, netconf, restconf. 2019-01-13 17:34:15 +01:00
test_install.sh Added new clixon-lib yang module for internal netconf protocol. Currently only extends the standard with a debug RPC. 2019-01-02 22:50:03 +01:00
test_json.sh JSON updates 2019-01-20 19:13:40 +01:00
test_leafref.sh * Added -o "<option>=<value>" command-line option to all programs: backend, cli, netconf, restconf. 2019-01-13 17:34:15 +01:00
test_list.sh NACM module access control point for edit-config 2019-02-01 14:56:45 +01:00
test_nacm.sh Test script change: merged new2+new functions 2019-02-02 12:20:47 +01:00
test_nacm_ext.sh * xml_cmp() respects 'ordered-by user' for state nodes, which violates RFC 7950 [https://github.com/clicon/clixon/issues/63. (Thanks JDL) 2019-02-03 16:19:33 +01:00
test_nacm_module_read.sh * xml_cmp() respects 'ordered-by user' for state nodes, which violates RFC 7950 [https://github.com/clicon/clixon/issues/63. (Thanks JDL) 2019-02-03 16:19:33 +01:00
test_nacm_module_write.sh Test script change: merged new2+new functions 2019-02-02 12:20:47 +01:00
test_nacm_protocol.sh Test script change: merged new2+new functions 2019-02-02 12:20:47 +01:00
test_netconf.sh * xml_cmp() respects 'ordered-by user' for state nodes, which violates RFC 7950 [https://github.com/clicon/clixon/issues/63. (Thanks JDL) 2019-02-03 16:19:33 +01:00
test_openconfig.sh * Added -o "<option>=<value>" command-line option to all programs: backend, cli, netconf, restconf. 2019-01-13 17:34:15 +01:00
test_order.sh xml_cmp() compares numeric nodes based on string value [https://github.com/clicon/clixon/issues/64] 2019-02-04 11:49:53 +01:00
test_perf.sh * Added -o "<option>=<value>" command-line option to all programs: backend, cli, netconf, restconf. 2019-01-13 17:34:15 +01:00
test_restconf.sh * xml_cmp() respects 'ordered-by user' for state nodes, which violates RFC 7950 [https://github.com/clicon/clixon/issues/63. (Thanks JDL) 2019-02-03 16:19:33 +01:00
test_restconf2.sh Test script change: merged new2+new functions 2019-02-02 12:20:47 +01:00
test_rpc.sh Test script change: merged new2+new functions 2019-02-02 12:20:47 +01:00
test_startup.sh * Added -o "<option>=<value>" command-line option to all programs: backend, cli, netconf, restconf. 2019-01-13 17:34:15 +01:00
test_stream.sh * Added -o "<option>=<value>" command-line option to all programs: backend, cli, netconf, restconf. 2019-01-13 17:34:15 +01:00
test_type.sh * xsd regular expression support for character classes [https://github.com/clicon/clixon/issues/68] 2019-01-17 16:13:34 +01:00
test_union.sh * Added -o "<option>=<value>" command-line option to all programs: backend, cli, netconf, restconf. 2019-01-13 17:34:15 +01:00
test_when_must.sh * Added -o "<option>=<value>" command-line option to all programs: backend, cli, netconf, restconf. 2019-01-13 17:34:15 +01:00
test_xml.sh * XML<>JSON conversion problems [https://github.com/clicon/clixon/issues/66] 2019-01-19 21:39:19 +01:00
test_xpath.sh memleaks 2018-07-20 23:16:26 +02:00
test_yang.sh * Added -o "<option>=<value>" command-line option to all programs: backend, cli, netconf, restconf. 2019-01-13 17:34:15 +01:00
test_yang_load.sh * Added -o "<option>=<value>" command-line option to all programs: backend, cli, netconf, restconf. 2019-01-13 17:34:15 +01:00
test_yang_namespace.sh Test script change: merged new2+new functions 2019-02-02 12:20:47 +01:00
test_yangmodels.sh * Added -o "<option>=<value>" command-line option to all programs: backend, cli, netconf, restconf. 2019-01-13 17:34:15 +01:00

Clixon tests

This directory contains testing code for clixon and the example application. Assumes setup of http daemon as describe under apps/restonf

  • Jenkinsfile Makefile for Jenkins tests. Build clixon and run tests.
  • all.sh Run through all tests with detailed output, and stop on first error.
  • sum.sh Run though all tests and print summary
  • mem.sh Make valgrind
  • site.sh Add your site-specific modifications here
  • test_nacm.sh Auth tests using internal NACM
  • test_nacm_ext.sh Auth tests using external NACM (separate file)
  • test_nacm_protocol.sh Auth tests for incoming RPC:s
  • test_nacm_module_read.sh Auth tests for data node read operations
  • test_nacm_module_write.sh Auth tests for data node write operations
  • test_cli.sh CLI tests
  • test_netconf.sh Netconf tests
  • test_restconf.sh Restconf tests
  • test_yang.sh Yang tests for constructs not in the example.
  • test_leafref.sh Yang leafref tests
  • test_datastore.sh Datastore tests
  • and many more...

Tests called 'test*.sh' and placed in this directory will be automatically run as part of the all.sh, sum.sh tests etc.

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

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

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:

  all.sh summary