summaryrefslogtreecommitdiff
path: root/tests/basic
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2008-10-26 01:51:13 -0400
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2008-10-26 01:51:13 -0400
commit8859ba489c1234a3920cb121c177d06b3b8779f7 (patch)
tree502d884c7f7f544143956ada37b357aff2ed5e38 /tests/basic
parent485b28a03e3f53361a4084921b1d3c68c0fda968 (diff)
testing: move ProxyCommand into a simple shell script to ease invocation (shell logical operators do not work directly in ProxyCommand argument).
Diffstat (limited to 'tests/basic')
-rwxr-xr-xtests/basic9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/basic b/tests/basic
index a04cc0e..d497d84 100755
--- a/tests/basic
+++ b/tests/basic
@@ -71,15 +71,15 @@ echo "### copying admin and testuser homes..."
cp -a "$TESTDIR"/home/admin "$TEMPDIR"/
cp -a "$TESTDIR"/home/testuser "$TEMPDIR"/
-cat <<EOF > "$TEMPDIR"/testuser/.ssh/config
+cat <<EOF >> "$TEMPDIR"/testuser/.ssh/config
UserKnownHostsFile $TEMPDIR/testuser/.ssh/known_hosts
+ProxyCommand $TEMPDIR/testuser/.ssh/proxy-command %h %p $SOCKET
EOF
-cat <<EOF > "$TEMPDIR"/testuser/.monkeysphere/monkeysphere.conf
+cat <<EOF >> "$TEMPDIR"/testuser/.monkeysphere/monkeysphere.conf
KNOWN_HOSTS=$TEMPDIR/testuser/.ssh/known_hosts
EOF
-
### SERVER TESTS
# setup monkeysphere temp gnupghome directories
@@ -142,7 +142,6 @@ gpgadmin --armor --export "$HOSTKEYID" | \
# connect to test sshd, using monkeysphere-ssh-proxycommand to verify
# the identity before connection. This should work in both directions!
echo "### testuser connecting to sshd socket..."
-PROXY_COMMAND="monkeysphere-ssh-proxycommand --no-connect %h && socat STDIO UNIX:${SOCKET}"
GNUPGHOME="$TEMPDIR"/testuser/.gnupg \
MONKEYSPHERE_HOME="$TEMPDIR"/testuser/.monkeysphere \
- ssh -F "$TEMPDIR"/testuser/.ssh/config -v -v -v -oProxyCommand="$PROXY_COMMAND" testhost
+ ssh -F "$TEMPDIR"/testuser/.ssh/config -v -v -v testhost