Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
fbb2c863
Commit
fbb2c863
authored
Feb 23, 2006
by
Niels Möller
Browse files
Use new gateway flags. Deleted function need_lshg.
Rev: src/testsuite/functions.sh:1.40.2.7
parent
3d1bce7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/testsuite/functions.sh
View file @
fbb2c863
...
...
@@ -87,12 +87,6 @@ need_tsocks () {
fi
}
need_lshg
()
{
if
[
-x
../lshg
]
;
then
:
;
else
test_skip
fi
}
at_exit
()
{
ATEXIT
=
"
$ATEXIT
;
$1
"
}
...
...
@@ -134,13 +128,14 @@ run_lsh () {
cmd
=
"
$1
"
shift
echo
"
$cmd
"
|
HOME
=
"
$TEST_HOME
"
../lsh
$LSH_FLAGS
-nt
\
--sloppy-host-authentication
\
--no-use-gateway
--sloppy-host-authentication
\
--capture-to
/dev/null
-p
$PORT
"
$@
"
localhost
}
exec_lsh
()
{
HOME
=
"
$TEST_HOME
"
../lsh
$LSH_FLAGS
-nt
--sloppy-host-authentication
\
--no-use-gateway
\
--capture-to
/dev/null
-z
-p
$PORT
localhost
"
$@
"
}
...
...
@@ -148,18 +143,19 @@ exec_lsh () {
spawn_lsh
()
{
# echo spawn_lsh "$@"
HOME
=
"
$TEST_HOME
"
../lsh
$LSH_FLAGS
-nt
--sloppy-host-authentication
\
--no-use-gateway
\
--capture-to
/dev/null
-z
-p
$PORT
"
$@
"
--write-pid
-B
localhost
>
"
$LSH_PIDFILE
"
at_exit
'kill `cat $LSH_PIDFILE`'
}
exec_lshg
()
{
../lshg
$LSHG_FLAGS
-nt
-p
$PORT
localhost
"
$@
"
../
lsh
--use-gateway
--program-name
lshg
$LSHG_FLAGS
-nt
-p
$PORT
localhost
"
$@
"
}
spawn_lshg
()
{
# echo spawn_lshg "$@"
../lshg
$LSHG_FLAGS
-p
$PORT
"
$@
"
--write-pid
-B
localhost
>
"
$LSHG_PIDFILE
"
../
lsh
--use-gateway
--program-name
lshg
$LSHG_FLAGS
-p
$PORT
"
$@
"
--write-pid
-B
localhost
>
"
$LSHG_PIDFILE
"
at_exit
'kill `cat $LSHG_PIDFILE`'
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment