Added make test and travis experiment

This commit is contained in:
Olof hagsand 2019-02-04 14:13:20 +01:00
parent 14343810ca
commit 10d841f4be
8 changed files with 21 additions and 3 deletions

1
.gitignore vendored
View file

@ -12,6 +12,7 @@ etc/Makefile
example/Makefile
lib/Makefile
lib/*/Makefile
test/Makefile
yang/Makefile
yang/*/Makefile
autom4te.cache/

View file

@ -1 +1,9 @@
language: c
language: c
# safelist
branches:
only:
- master
- develop
before_script:
- ./test/travis/before_script.sh

View file

@ -119,6 +119,7 @@
* For backward compatibility, define CLICON_CLI_MODEL_TREENAME_PATCH in clixon_custom.h
### Minor changes
* Added make test from top-level
* Added `xml_rootchild_node()` lib function as variant of `xml_rootchild()`
* Added -o "<option>=<value>" command-line option to all programs: backend, cli, netconf, restconf.
* Any config option from file can be overrided by giving them on command-line.

View file

@ -54,7 +54,7 @@ SHELL = /bin/sh
SUBDIRS = lib apps include etc datastore util yang
.PHONY: doc all clean depend $(SUBDIRS) install loc TAGS .config.status docker
.PHONY: doc all clean depend $(SUBDIRS) install loc TAGS .config.status docker test
all: $(SUBDIRS)
@ -138,6 +138,9 @@ pkg-rpm: dist
pkg-srpm: dist
make -C extras/rpm srpm
test: install-include
(cd $@ && $(MAKE) $(MFLAGS) all)
docker:
for i in docker; \
do (cd $$i && $(MAKE) $(MFLAGS) $@); done

3
configure vendored
View file

@ -4433,7 +4433,7 @@ _ACEOF
ac_config_files="$ac_config_files Makefile lib/Makefile lib/src/Makefile lib/clixon/Makefile apps/Makefile apps/cli/Makefile apps/backend/Makefile apps/netconf/Makefile apps/restconf/Makefile include/Makefile etc/Makefile etc/clixonrc example/Makefile extras/rpm/Makefile docker/Makefile datastore/Makefile datastore/text/Makefile util/Makefile yang/Makefile yang/clixon/Makefile yang/standard/Makefile doc/Makefile"
ac_config_files="$ac_config_files Makefile lib/Makefile lib/src/Makefile lib/clixon/Makefile apps/Makefile apps/cli/Makefile apps/backend/Makefile apps/netconf/Makefile apps/restconf/Makefile include/Makefile etc/Makefile etc/clixonrc example/Makefile extras/rpm/Makefile docker/Makefile datastore/Makefile datastore/text/Makefile util/Makefile yang/Makefile yang/clixon/Makefile yang/standard/Makefile doc/Makefile test/Makefile"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
@ -5149,6 +5149,7 @@ do
"yang/clixon/Makefile") CONFIG_FILES="$CONFIG_FILES yang/clixon/Makefile" ;;
"yang/standard/Makefile") CONFIG_FILES="$CONFIG_FILES yang/standard/Makefile" ;;
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
"test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
esac

View file

@ -249,5 +249,6 @@ AC_OUTPUT(Makefile
yang/clixon/Makefile
yang/standard/Makefile
doc/Makefile
test/Makefile
)

View file

@ -0,0 +1,3 @@
#!/bin/sh
git clone https://github.com/olofhagsand/cligen.git
(cd cligen && ./configure && make && sudo make install)