diff --git a/test/config.sh.in b/test/config.sh.in index 76587c43..a72a6069 100755 --- a/test/config.sh.in +++ b/test/config.sh.in @@ -4,4 +4,5 @@ WITH_RESTCONF=@with_restconf@ # evhtp, fcgi or "" WITH_LIBXML2=@with_libxml2@ # yes or "" CXX=@CXX@ +CC=@CC@ diff --git a/test/test_api.sh b/test/test_api.sh index fb488593..bc00d74a 100755 --- a/test/test_api.sh +++ b/test/test_api.sh @@ -210,7 +210,8 @@ clixon_plugin_init(clicon_handle h) EOF new "compile $cfile" -cc -g -Wall -rdynamic -fPIC -shared $cfile -o $sofile +# -I /usr/local_include for eg freebsd +expectpart "$($CC -g -Wall -rdynamic -fPIC -shared -I/usr/local/include $cfile -o $sofile)" 0 "" new "test params: -s running -f $cfg" diff --git a/test/test_c++.sh b/test/test_c++.sh index 8f6fa256..41985e40 100755 --- a/test/test_c++.sh +++ b/test/test_c++.sh @@ -63,9 +63,6 @@ class netconf_test { private: struct clixon_plugin_api api; - plginit2_t *ca_init; - plgstart_t *ca_start; - plgexit_t *ca_exit; public: netconf_test(plginit2_t* init, plgstart_t* start, plgexit_t* exit, const char* str = "c++ netconf test") : api() @@ -138,7 +135,8 @@ clixon_plugin_api* clixon_plugin_init(clicon_handle h) EOF new "C++ compile" -expectpart "$($CXX -g -Wall -rdynamic -fPIC -shared $cfile -o $dir/backend/c++.so)" 0 "" +# -I /usr/local_include for eg freebsd +expectpart "$($CXX -g -Wall -rdynamic -fPIC -shared -I/usr/local/include $cfile -o $dir/backend/c++.so)" 0 "" new "test params: -f $cfg" if [ $BE -ne 0 ]; then diff --git a/test/vagrant/clixon.sh b/test/vagrant/clixon.sh index 07687444..c56f8bea 100755 --- a/test/vagrant/clixon.sh +++ b/test/vagrant/clixon.sh @@ -72,5 +72,4 @@ cd test echo "#!/usr/bin/env bash" > ./site.sh if [ $release = "freebsd" ]; then echo "make=gmake" >> ./site.sh - echo 'SKIPLIST="test_api.sh test_c++.sh"' >> ./site.sh fi