aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/geoip/files/run-ptest
diff options
context:
space:
mode:
authorJoe Slater <jslater@windriver.com>2016-01-12 14:56:04 -0800
committerJoe MacDonald <joe_macdonald@mentor.com>2016-01-20 21:41:47 -0500
commita9c2fe6cd1fe7dd8555772cd2bfde2952e8de564 (patch)
treee045e3cb62dad6ba17376fca5d04d1dbacfa4402 /meta-networking/recipes-support/geoip/files/run-ptest
parent514149c972489479dbb3f9babf4f6257c5dd5ab6 (diff)
downloadmeta-openembedded-a9c2fe6cd1fe7dd8555772cd2bfde2952e8de564.tar.gz
geoip: add ptest functionality
Also make geoip package rdepend on geoip-database and add symbolic link to GeoIPCity.dat. 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>
Diffstat (limited to 'meta-networking/recipes-support/geoip/files/run-ptest')
-rw-r--r--meta-networking/recipes-support/geoip/files/run-ptest11
1 files changed, 11 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/geoip/files/run-ptest b/meta-networking/recipes-support/geoip/files/run-ptest
new file mode 100644
index 0000000000..14e96191f3
--- /dev/null
+++ b/meta-networking/recipes-support/geoip/files/run-ptest
@@ -0,0 +1,11 @@
+#!/bin/sh
+pdir=`dirname $0`
+cd ${pdir}/tests
+for i in ./benchmark ./test-geoip-city ; do
+ ${i} 1>/dev/null 2>&1;
+ if [ $? == 0 ]; then
+ echo PASS: $i;
+ else
+ echo FAIL: $i;
+ fi;
+done