summaryrefslogtreecommitdiff
path: root/test-postmap.sh
diff options
context:
space:
mode:
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