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
352503a0
Commit
352503a0
authored
Apr 01, 2001
by
Niels Möller
Browse files
Bugfixes.
Rev: src/sftp/testsuite/run-tests:1.2
parent
31e10978
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sftp/testsuite/run-tests
View file @
352503a0
...
@@ -5,17 +5,18 @@ all=0
...
@@ -5,17 +5,18 @@ all=0
function
env_program
()
{
function
env_program
()
{
if
[
-x
./
"
$1
"
]
;
then
if
[
-x
./
"
$1
"
]
;
then
if
./
"
$1
"
then
:
;
else
if
./
"
$1
"
;
then
:
;
else
echo
FAIL:
$1
echo
FAIL:
$1
exit
1
exit
1
fi
fi
fi
fi
}
function
test_program
()
{
function
test_program
()
{
if
$1
;
then
if
"./
$1
"
;
then
echo
PASS:
${
$
1
%-test
}
echo
PASS:
${
1
%-test
}
else
else
echo
FAIL:
${
$
1
%-test
}
echo
FAIL:
${
1
%-test
}
failed
=
`
expr
$failed
+ 1
`
failed
=
`
expr
$failed
+ 1
`
fi
fi
all
=
`
expr
$all
+ 1
`
all
=
`
expr
$all
+ 1
`
...
@@ -24,9 +25,9 @@ function test_program () {
...
@@ -24,9 +25,9 @@ function test_program () {
env_program setup-env
env_program setup-env
if
[
$#
-eq
0
]
;
then
if
[
$#
-eq
0
]
;
then
for
f
in
*
-test
;
do
test_program
$1
;
done
for
f
in
*
-test
;
do
test_program
"
$f
"
;
done
else
else
for
f
in
"
$@
"
;
then
do
test_program
$1
;
done
for
f
in
"
$@
"
;
do
test_program
"
$f
"
;
done
fi
fi
if
[
$failed
-eq
0
]
;
then
if
[
$failed
-eq
0
]
;
then
...
...
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