clixon/test
2019-02-11 14:17:29 +01:00
..
jenkins Added make test and travis experiment 2019-02-04 14:13:20 +01:00
travis Added docker/base as minimal clixon container and docker/system as full clixon system. 2019-02-11 14:17:29 +01:00
all.sh test scripts: added sum.sh 2019-02-02 13:19:49 +01:00
lib.sh Added docker/base as minimal clixon container and docker/system as full clixon system. 2019-02-11 14:17:29 +01:00
Makefile.in * clixon-config YAML file has new revision: 2019-02-06. 2019-02-06 14:33:04 +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 Added Clixon example full system docker container, see [docker/system]. 2019-02-07 22:23:58 +01:00
sum.sh test scripts: added sum.sh 2019-02-02 13:19:49 +01:00
test_choice.sh Added Clixon example full system docker container, see [docker/system]. 2019-02-07 22:23:58 +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 Added Clixon example full system docker container, see [docker/system]. 2019-02-07 22:23:58 +01:00
test_nacm_ext.sh Added Clixon example full system docker container, see [docker/system]. 2019-02-07 22:23:58 +01:00
test_nacm_module_read.sh Added Clixon example full system docker container, see [docker/system]. 2019-02-07 22:23:58 +01:00
test_nacm_module_write.sh Added Clixon example full system docker container, see [docker/system]. 2019-02-07 22:23:58 +01:00
test_nacm_protocol.sh Added Clixon example full system docker container, see [docker/system]. 2019-02-07 22:23:58 +01:00
test_netconf.sh groupadd socket 2019-02-04 17:35:18 +01:00
test_openconfig.sh Added docker/base as minimal clixon container and docker/system as full clixon system. 2019-02-11 14:17:29 +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 Merge branch 'master' of https://github.com/clicon/clixon 2019-02-08 16:19:22 +01:00
test_restconf2.sh Merge branch 'master' of https://github.com/clicon/clixon 2019-02-08 16:19:22 +01:00
test_rpc.sh Merge branch 'master' of https://github.com/clicon/clixon 2019-02-08 16:19:22 +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 * Partially corrected: [yang type range statement does not support multiple values](https://github.com/clicon/clixon/issues/59). 2019-02-05 14:03:58 +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 Merge branch 'master' of https://github.com/clicon/clixon 2019-02-08 16:19:22 +01:00
test_yangmodels.sh Added docker/base as minimal clixon container and docker/system as full clixon system. 2019-02-11 14:17:29 +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

  • 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