clixon/test/README.md

1.2 KiB

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 named 'test*.sh' in this directory. Therefore, if you place a test in this directory matching 'test*.sh' it will be run automatically. By default the script will exit on first error. Run as all.sh summary to continue and print a summary on all tests.
  • 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_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...

Example runs:

> run.sh
# Runs through all tests matching 'test_*.sh' in the directory. Prints test output
# and stops on first error

> run.sh summary
# Same as above but continues after errors and does not print test output.