summaryrefslogtreecommitdiff
path: root/tests/test-postmap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-postmap.sh')
-rwxr-xr-xtests/test-postmap.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test-postmap.sh b/tests/test-postmap.sh
index 460e26b..62021b4 100755
--- a/tests/test-postmap.sh
+++ b/tests/test-postmap.sh
@@ -1,5 +1,7 @@
#!/bin/sh
+DOMAIN=$(hostname -d)
+
test_postmap () {
echo -n "get $1, port 2244:"
postmap -v -q $1 tcp:localhost:2244 2>&1 |grep recv:
@@ -9,9 +11,9 @@ test_postmap () {
}
test_postmap dummy
-test_postmap dummy@dev.bitmask.net
+test_postmap dummy@$DOMAIN
test_postmap dummy@nowhe.re
test_postmap fooooo
-test_postmap fooooo@dev.bitmask.net
+test_postmap fooooo@$DOMAIN
test_postmap fooooo@nowhe.re