Skip to content
GitLab
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
524b507b
Commit
524b507b
authored
Mar 19, 2002
by
Pontus Freyhult
Browse files
Replaced bashims
Rev: src/testsuite/run-tests:1.2 Rev: src/testsuite/seed-test:1.3
parent
b9b0524a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/testsuite/run-tests
View file @
524b507b
#! /bin/
ba
sh
#! /bin/sh
failed
=
0
all
=
0
...
...
@@ -28,16 +28,17 @@ env_program () {
test_program
()
{
"
$1
"
testname
=
`
echo
"
$1
"
|
sed
-e
's/-test//'
`
case
"
$?
"
in
0
)
echo
PASS:
$
{
1
%-test
}
echo
PASS:
$
testname
all
=
`
expr
$all
+ 1
`
;;
77
)
echo
SKIP:
$
{
1
%-test
}
echo
SKIP:
$
testname
;;
*
)
echo
FAIL:
$
{
1
%-test
}
echo
FAIL:
$
testname
failed
=
`
expr
$failed
+ 1
`
all
=
`
expr
$all
+ 1
`
;;
...
...
src/testsuite/seed-test
View file @
524b507b
...
...
@@ -19,7 +19,7 @@ done
if
cmp test-seed-1 test-seed-2
;
then
test_fail
else
if
[
$?
==
1
]
;
then
if
[
$?
-eq
1
]
;
then
test_success
else
test_fail
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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