meta-openembedded/meta-networking/recipes-support/geoip/geoip-perl/run-ptest
Joe Slater 1e67431ece geoip-perl: add recipe for version 1.45
The package includes a few data files.  Despite the names,
these are very small databases only useful for running the
perl test scripts.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2015-01-26 09:32:32 -05:00

16 lines
244 B
Bash

#!/bin/sh
# The tests contain hard-coded relative paths and must be
# executed from $pdir.
#
pdir=`dirname $0`
cd ${pdir}
for i in t/*.t ; do
perl ${i} 1>/dev/null 2>&1;
if [ $? == 0 ]; then
echo PASS: $i;
else
echo FAIL: $i;
fi;
done