From e28e6e1241ba6326c2a2dddb607bc525ab82ce5c Mon Sep 17 00:00:00 2001 From: Joe Slater Date: Tue, 12 Jan 2016 14:56:04 -0800 Subject: geoip: add ptest functionality Also make geoip package rdepend on geoip-database and add symbolic link to GeoIPCity.dat. Signed-off-by: Joe Slater Signed-off-by: Martin Jansa Signed-off-by: Joe MacDonald Signed-off-by: Armin Kuster --- meta-networking/recipes-support/geoip/files/run-ptest | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 meta-networking/recipes-support/geoip/files/run-ptest (limited to 'meta-networking/recipes-support/geoip/files/run-ptest') 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 000000000..14e96191f --- /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 -- cgit v1.2.3-54-g00ecf