Commit 30b86c7d authored by Niels Möller's avatar Niels Möller
Browse files

* src/testsuite/setup-env: New script to set up a HOME-directory

for the tests.

* src/testsuite/lshd-x11-1-test: New test.

Rev: src/testsuite/lshd-x11-1-test:1.1
Rev: src/testsuite/setup-env:1.1
parent 566a2f8d
#! /bin/sh
echo lshd X11, test 1
if [ -z "$srcdir" ] ; then
srcdir=`pwd`
fi
. $srcdir/functions.sh
spawn_lshd --x11-forward && run_lsh --x11 'test -n "$DISPLAY"' && test_success
#! /bin/sh
if [ -z "$srcdir" ] ; then
srcdir="`pwd`"
fi
. $srcdir/functions.sh
# Create home directory for tests
rm -rf "$TEST_HOME"
mkdir "$TEST_HOME"
HOME="$TEST_HOME"
export HOME
echo "Creating seed file"
../lsh-make-seed -q --sloppy
echo "Creating identity.pub for tests"
../lsh-keygen -a dsa -l2 | ../lsh-writekey
echo "Authorizing key for login"
"$srcdir/../lsh-authorize" "$HOME/.lsh/identity.pub"
test_success
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment