From: Michal Sojka Date: Tue, 29 Mar 2011 10:26:49 +0000 (+0200) Subject: fwp: Add skeleton of admctrl test X-Git-Url: https://rtime.felk.cvut.cz/gitweb/frescor/frsh-forb.git/commitdiff_plain/d8df8e8dc6e3445c412cf94fb16af70f30f15b48 fwp: Add skeleton of admctrl test --- diff --git a/src/fwp/fwp/mngr/test/Makefile b/src/fwp/fwp/mngr/test/Makefile new file mode 100644 index 00000000..b22a3576 --- /dev/null +++ b/src/fwp/fwp/mngr/test/Makefile @@ -0,0 +1,14 @@ +# Generic directory or leaf node makefile for OCERA make framework + +ifndef MAKERULES_DIR +MAKERULES_DIR := $(shell ( old_pwd="" ; while [ ! -e Makefile.rules ] ; do if [ "$$old_pwd" = `pwd` ] ; then exit 1 ; else old_pwd=`pwd` ; cd -L .. 2>/dev/null ; fi ; done ; pwd ) ) +endif + +ifeq ($(MAKERULES_DIR),) +all : default +.DEFAULT:: + @echo -e "\nThe Makefile.rules has not been found in this or partent directory\n" +else +include $(MAKERULES_DIR)/Makefile.rules +endif + diff --git a/src/fwp/fwp/mngr/test/Makefile.omk b/src/fwp/fwp/mngr/test/Makefile.omk new file mode 100644 index 00000000..4cd3b299 --- /dev/null +++ b/src/fwp/fwp/mngr/test/Makefile.omk @@ -0,0 +1,3 @@ +CFLAGS += -DWVTEST_CONFIGURED + +wvtest_SCRIPTS += adm-test.sh diff --git a/src/fwp/fwp/mngr/test/adm-test.sh b/src/fwp/fwp/mngr/test/adm-test.sh new file mode 100755 index 00000000..624bfca3 --- /dev/null +++ b/src/fwp/fwp/mngr/test/adm-test.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +. $(dirname $0)/wvtest.sh + +cat > expected < actual" + +WVPASS diff -u expected actual + diff --git a/src/fwp/fwp/mngr/test/wvtest.sh b/src/fwp/fwp/mngr/test/wvtest.sh new file mode 120000 index 00000000..ea46621f --- /dev/null +++ b/src/fwp/fwp/mngr/test/wvtest.sh @@ -0,0 +1 @@ +..//../../../wvtest.sh \ No newline at end of file