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
ISC Open Source Projects
Kea
Commits
8a83c13c
Commit
8a83c13c
authored
Jun 06, 2011
by
Stephen Morris
Browse files
[trac976] Consistently remove temporary files created by the tests
parent
a9d0e238
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/lib/log/tests/console_test.sh.in
View file @
8a83c13c
...
...
@@ -55,8 +55,6 @@ rm -f $tempfile
./logger_example
-c
stderr
-s
error 1>
$tempfile
passfail 0
rm
-f
$tempfile
if
[
$failcount
-eq
0
]
;
then
echo
"PASS:
$testname
"
elif
[
$failcount
-eq
1
]
;
then
...
...
@@ -65,4 +63,7 @@ else
echo
"FAIL:
$testname
-
$failcount
tests failed"
fi
# Tidy up
rm
-f
$tempfile
exit
$failcount
src/lib/log/tests/destination_test.sh.in
View file @
8a83c13c
...
...
@@ -82,4 +82,7 @@ else
echo
"FAIL:
$testname
-
$failcount
tests failed"
fi
# Tidy up.
rm
-f
$tempfile
$destfile1
$destfile2
exit
$failcount
src/lib/log/tests/local_file_test.sh.in
View file @
8a83c13c
...
...
@@ -72,10 +72,6 @@ rm -f $localmes
./logger_example
-c
stdout
-s
warn
$localmes
|
cut
-d
' '
-f3-
| diff
$tempfile
-
passfail
$?
# Tidy up.
rm
-f
$tempfile
if
[
$failcount
-eq
0
]
;
then
echo
"PASS:
$testname
"
elif
[
$failcount
-eq
1
]
;
then
...
...
@@ -84,4 +80,7 @@ else
echo
"FAIL:
$testname
-
$failcount
tests failed"
fi
# Tidy up.
rm
-f
$tempfile
exit
$failcount
src/lib/log/tests/severity_test.sh.in
View file @
8a83c13c
...
...
@@ -77,8 +77,6 @@ DEBUG [example.beta] MSG_BADSEVERITY, unrecognized log severity: beta/25
./logger_example
-c
stdout
-s
debug
-d
25 |
cut
-d
' '
-f3-
| diff
$tempfile
-
passfail
$?
rm
-f
$tempfile
if
[
$failcount
-eq
0
]
;
then
echo
"PASS:
$testname
"
elif
[
$failcount
-eq
1
]
;
then
...
...
@@ -87,4 +85,7 @@ else
echo
"FAIL:
$testname
-
$failcount
tests failed"
fi
# Tidy up
rm
-f
$tempfile
exit
$failcount
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