Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nettle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Brian Smith
nettle
Commits
4b85f67d
Commit
4b85f67d
authored
12 years ago
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
run-tests: Added (c) notice. Some whitespace cleanup.
parent
79f4ded0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
run-tests
+22
-7
22 additions, 7 deletions
run-tests
with
22 additions
and
7 deletions
run-tests
+
22
−
7
View file @
4b85f67d
#! /bin/sh
#! /bin/sh
# Copyright (C) 2000, 2001, 2002, 2004, 2005, 2011, 2012 Niels Möller
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
failed
=
0
failed
=
0
all
=
0
all
=
0
...
@@ -13,7 +29,7 @@ fi
...
@@ -13,7 +29,7 @@ fi
export
srcdir
export
srcdir
# When used in make rules, we sometimes get the filenames VPATH
# When used in make rules, we sometimes get the filenames VPATH
# expanded, but usually not.
# expanded, but usually not.
find_program
()
{
find_program
()
{
case
"
$1
"
in
case
"
$1
"
in
*
/
*
)
*
/
*
)
...
@@ -48,14 +64,14 @@ test_program () {
...
@@ -48,14 +64,14 @@ test_program () {
fi
fi
case
"
$?
"
in
case
"
$?
"
in
0
)
0
)
echo
PASS:
$testname
echo
PASS:
$testname
all
=
`
expr
$all
+ 1
`
all
=
`
expr
$all
+ 1
`
;;
;;
77
)
77
)
echo
SKIP:
$testname
echo
SKIP:
$testname
;;
;;
*
)
*
)
echo
FAIL:
$testname
echo
FAIL:
$testname
failed
=
`
expr
$failed
+ 1
`
failed
=
`
expr
$failed
+ 1
`
all
=
`
expr
$all
+ 1
`
all
=
`
expr
$all
+ 1
`
;;
;;
...
@@ -74,7 +90,7 @@ do
...
@@ -74,7 +90,7 @@ do
testflags
=
'-v'
testflags
=
'-v'
;;
;;
-
*
)
-
*
)
echo
>
&2
'Unknown option `'
"
$1
'"
echo
>
&2
'Unknown option `'
"
$1
'"
exit
1
exit
1
;;
;;
*
)
*
)
...
@@ -83,7 +99,7 @@ do
...
@@ -83,7 +99,7 @@ do
esac
esac
shift
shift
done
done
if
[
$#
-eq
0
]
;
then
if
[
$#
-eq
0
]
;
then
for
f
in
*
-test
;
do
test_program
"./
$f
"
;
done
for
f
in
*
-test
;
do
test_program
"./
$f
"
;
done
else
else
...
@@ -105,4 +121,3 @@ if [ "x$debug" = xno ] ; then
...
@@ -105,4 +121,3 @@ if [ "x$debug" = xno ] ; then
fi
fi
[
"
$failed
"
-eq
0
]
[
"
$failed
"
-eq
0
]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment