summaryrefslogtreecommitdiff
path: root/test-postmap.sh
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-08-29 17:11:17 +0200
committervarac <varacanero@zeromail.org>2013-08-29 17:11:17 +0200
commit7599fc6cf78ad274b7432228f5125e595cc57e31 (patch)
tree54f0cb455cf088dcb3422bdb9cbf7a3c827534e0 /test-postmap.sh
parentfe68c294b646dfdec0bad4e7823b9f412df01660 (diff)
added leap-mx test scripts
Diffstat (limited to 'test-postmap.sh')
-rwxr-xr-xtest-postmap.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/test-postmap.sh b/test-postmap.sh
new file mode 100755
index 0000000..ceee206
--- /dev/null
+++ b/test-postmap.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+test_postmap () {
+ echo -n "get $1, port 2244:"
+ postmap -v -q $1 tcp:localhost:2244 2>&1 |grep recv:
+ echo -n "get $1, port 4242:"
+ postmap -v -q $1 tcp:localhost:4242 2>&1 |grep recv:
+ echo
+}
+
+test_postmap dummy
+test_postmap dummy@dev.bitmask.net
+test_postmap dummy@nowhe.re
+
+test_postmap nobody
+test_postmap nobody@dev.bitmask.net
+test_postmap nobody@nowhe.re