From 734f65e25ac267b2dde88b898e4bbf771df99f71 Mon Sep 17 00:00:00 2001 From: Olof Hagsand Date: Sun, 13 Oct 2019 07:04:05 -1000 Subject: [PATCH] freebsd test script modifications --- test/README.md | 6 ++++++ test/lib.sh | 21 +++++++++++---------- test/test_choice.sh | 2 +- test/test_identity.sh | 2 +- test/test_nacm.sh | 2 +- test/test_nacm_default.sh | 2 +- test/test_nacm_ext.sh | 2 +- test/test_nacm_module_read.sh | 2 +- test/test_nacm_module_write.sh | 2 +- test/test_nacm_protocol.sh | 2 +- test/test_perf.sh | 2 +- test/test_perf_state.sh | 2 +- test/test_restconf.sh | 2 +- test/test_restconf2.sh | 2 +- test/test_restconf_err.sh | 2 +- test/test_restconf_jukebox.sh | 2 +- test/test_restconf_listkey.sh | 2 +- test/test_restconf_patch.sh | 2 +- test/test_restconf_startup.sh | 2 +- test/test_rpc.sh | 2 +- test/test_stream.sh | 2 +- test/test_submodule.sh | 2 +- test/test_upgrade_auto.sh | 2 +- test/test_upgrade_interfaces.sh | 2 +- test/test_upgrade_repair.sh | 2 +- test/test_yang_namespace.sh | 2 +- 26 files changed, 41 insertions(+), 34 deletions(-) diff --git a/test/README.md b/test/README.md index 809f00db..5cc925c5 100644 --- a/test/README.md +++ b/test/README.md @@ -78,3 +78,9 @@ You may add your site-specific modifications in a `site.sh` file. Example: IETFRFC=$YANGMODELS/standard/ietf/RFC ``` +## FreeBSD + +To run on freebsd: +``` +wwwuser=www clixon_restconf=/usr/local/sbin/clixon_restconf ./all.sh +``` \ No newline at end of file diff --git a/test/lib.sh b/test/lib.sh index fa601e19..87f3d8fb 100755 --- a/test/lib.sh +++ b/test/lib.sh @@ -190,7 +190,7 @@ stop_backend(){ # Wait for restconf to stop sending 502 Bad Gateway wait_backend(){ - reply=$(echo ']]>]]>' | clixon_netconf -qef $cfg 2> /dev/null) + reply=$(echo ']]>]]>' | $clixon_netconf -qef $cfg 2> /dev/null) let i=0; while [[ $reply != "