summaryrefslogtreecommitdiff
path: root/tests/url/exec_test
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-07-28 21:28:00 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-07-28 21:28:00 +0200
commitff98cc74fd06ef167eb2404ce93051d92dd75caf (patch)
treeab71535e9fd32bd7d9fa122b3e7937633d819c0e /tests/url/exec_test
parent3856d7214b3b3eb3e5b8c3ac025b7aeeb93cd044 (diff)
downloadcrawler-ff98cc74fd06ef167eb2404ce93051d92dd75caf.tar.gz
crawler-ff98cc74fd06ef167eb2404ce93051d92dd75caf.tar.bz2
heavy redesign of URL class, must not contain any parsing logic as
it is the caninic representation URLNormalizers are used for intepreting strings and contexts as URL currently nothing runs :-)
Diffstat (limited to 'tests/url/exec_test')
-rwxr-xr-xtests/url/exec_test10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/url/exec_test b/tests/url/exec_test
new file mode 100755
index 0000000..8628c2d
--- /dev/null
+++ b/tests/url/exec_test
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+BINARY=$1
+shift
+TITLE=$1
+shift
+
+printf "$BINARY: $TITLE .. "
+./$BINARY $* >$BINARY.RES 2>&1
+diff $BINARY.MUST $BINARY.RES > $BINARY.DIFF && printf "OK\n" || printf "ERROR\n"