[Swan-dev] testing libipsecconf
D. Hugh Redelmeier
hugh at mimosa.com
Wed Nov 26 09:02:55 EET 2014
I'm trying to get the testing/scripts/readwriteconf-* tests going.
I don't know how one is supposed to run these tests so I've created my
own temporary hack (attached). I put it in ~/try to keep it out of
the tree for now.
Running each runit.sh script creates a .gdbinit file. These seem to
be in the git tree and should not be. I will remove them.
readwriteconf-05 fails because there is no
testing/pluto/esp-pluto-01/east.conf
Where has it gone?
readwriteconf-19 and -20 are empty except for a reference output.
I'll delete them.
readwriteconf-22 found something that surprised me.
It didn't like
crlcheckinterval=60
complaining that it expected a string but found an integer.
Is that what we want???
Maybe we need a "time" lexical type that accepts an integer with the
usual suffixes.
readwriteconf-23 fails to parse the config file.
It may be correct, but the message is off in left field.
I hope the changes I'm working on will fix this.
-------------- next part --------------
# try: run a testing/scripts/readwriteconf* test
# we are in the directory
# HACK: ROOTDIR and OBJDIRTOP are set assuming that we are running in host tree, not KVM
# If you want to run them all, try this from the scripts directory:
# for i in readwriteconf*/ ; do echo "################ $i #######################" ; set -xie ; cd "$i" ; ~/try ; cd .. ; done
set -ue
set -x
# make sure we are where we think we are
test -f runit.sh
export ROOTDIR=$(readlink -e ../../..)
export OBJDIRTOP="${ROOTDIR}/OBJ.linux."$(arch)
mkdir -p OUTPUT
. ./testparams.sh
sh -xue runit.sh >OUTPUT/${REF_CONSOLE_OUTPUT} || echo "######### fail $? #############"
More information about the Swan-dev
mailing list