Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nettle
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Brian Smith
nettle
Commits
4b85f67d
Commit
4b85f67d
authored
Nov 22, 2012
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
run-tests: Added (c) notice. Some whitespace cleanup.
parent
79f4ded0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
7 deletions
+22
-7
run-tests
run-tests
+22
-7
No files found.
run-tests
View file @
4b85f67d
#! /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
all
=
0
...
...
@@ -13,7 +29,7 @@ fi
export
srcdir
# When used in make rules, we sometimes get the filenames VPATH
# expanded, but usually not.
# expanded, but usually not.
find_program
()
{
case
"
$1
"
in
*
/
*
)
...
...
@@ -48,14 +64,14 @@ test_program () {
fi
case
"
$?
"
in
0
)
echo
PASS:
$testname
echo
PASS:
$testname
all
=
`
expr
$all
+ 1
`
;;
77
)
echo
SKIP:
$testname
echo
SKIP:
$testname
;;
*
)
echo
FAIL:
$testname
echo
FAIL:
$testname
failed
=
`
expr
$failed
+ 1
`
all
=
`
expr
$all
+ 1
`
;;
...
...
@@ -74,7 +90,7 @@ do
testflags
=
'-v'
;;
-
*
)
echo
>
&2
'Unknown option `'
"
$1
'"
echo
>
&2
'Unknown option `'
"
$1
'"
exit
1
;;
*
)
...
...
@@ -83,7 +99,7 @@ do
esac
shift
done
if
[
$#
-eq
0
]
;
then
for
f
in
*
-test
;
do
test_program
"./
$f
"
;
done
else
...
...
@@ -105,4 +121,3 @@ if [ "x$debug" = xno ] ; then
fi
[
"
$failed
"
-eq
0
]
Write
Preview
Markdown
is supported
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