-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added basic test script for use via "make check" that tests whether i…
…ipsrv can be executed and whether it can create a log file.
- Loading branch information
Showing
5 changed files
with
42 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Simple script to test whether iipsrv can be executed | ||
|
||
# Define temporary log file | ||
export LOGFILE=iipsrv-test.log | ||
|
||
# Run in CGI-mode | ||
./iipsrv.fcgi | ||
|
||
# Check whether startup header exists in log file | ||
if grep -q 'IIPImage' ${LOGFILE}; then | ||
rm -f ${LOGFILE} | ||
exit 0 | ||
else | ||
rm -f ${LOGFILE} | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,3 +86,6 @@ install-exec-local: | |
|
||
uninstall-local: | ||
rm -f "$(DESTDIR)$(sbindir)/iipsrv" | ||
|
||
|
||
TESTS = ../scripts/check |