| .. | ||
| jenkins | ||
| travis | ||
| all.sh | ||
| lib.sh | ||
| Makefile.in | ||
| nacm.sh | ||
| plot_perf.sh | ||
| README.md | ||
| sum.sh | ||
| test_choice.sh | ||
| test_cli.sh | ||
| test_compat.sh | ||
| test_datastore.sh | ||
| test_feature.sh | ||
| test_identity.sh | ||
| test_install.sh | ||
| test_json.sh | ||
| test_leafref.sh | ||
| test_list.sh | ||
| test_nacm.sh | ||
| test_nacm_ext.sh | ||
| test_nacm_module_read.sh | ||
| test_nacm_module_write.sh | ||
| test_nacm_protocol.sh | ||
| test_netconf.sh | ||
| test_openconfig.sh | ||
| test_order.sh | ||
| test_perf.sh | ||
| test_restconf.sh | ||
| test_restconf2.sh | ||
| test_rpc.sh | ||
| test_startup.sh | ||
| test_stream.sh | ||
| test_type.sh | ||
| test_union.sh | ||
| test_when_must.sh | ||
| test_xml.sh | ||
| test_xpath.sh | ||
| test_yang.sh | ||
| test_yang_load.sh | ||
| test_yang_namespace.sh | ||
| test_yangmodels.sh | ||
Clixon tests
This directory contains testing code for clixon and the example application. Assumes setup of http daemon as describe under apps/restonf
- jenkins Directory w Jenkins specific stuff
- travis Directory w Travis specific stuff
- 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 (see example below)
- 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
You need to start nginx. There are instructions in the example
Example site.sh file:
#!/bin/bash
Add your local site specific env variables (or tests) here.
get from: https://github.com/openconfig/public
OPENCONFIG=/home/olof/src/clixon/test/public
get from: https://github.com/YangModels/yang
YANGMODELS=/usr/local/share/yangmodels IETFRFC=$YANGMODELS/standard/ietf/RFC