#!/bin/sh
#
-# "$Id: run-stp-tests.sh 5091 2006-02-08 18:39:56Z mike $"
+# "$Id: run-stp-tests.sh 5262 2006-03-09 21:26:27Z mike $"
#
# Perform the complete set of IPP compliance tests specified in the
# CUPS Software Test Plan.
# Information for the server/tests...
#
-user=`whoami`
+user="$USER"
+if test -z "$user"; then
+ if test -x /usr/ucb/whoami; then
+ user=`/usr/ucb/whoami`
+ else
+ user=`whoami`
+ fi
+
+ if test -z "$user"; then
+ user="unknown"
+ fi
+fi
+
port=8631
cwd=`pwd`
root=`dirname $cwd`
# Create the test report source file...
#
-strfile=cups-str-1.2-`date +%Y-%m-%d`-`whoami`.html
+strfile=cups-str-1.2-`date +%Y-%m-%d`-$user.html
rm -f $strfile
cat str-header.html >$strfile
echo "<H1>1 - IPP Compliance Tests</H1>" >>$strfile
echo "<P>This section provides the results to the IPP compliance tests" >>$strfile
echo "outlined in the CUPS Software Test Plan. These tests were run on" >>$strfile
-echo `date "+%Y-%m-%d"` by `whoami` on `hostname`. >>$strfile
+echo `date "+%Y-%m-%d"` by $user on `hostname`. >>$strfile
echo "<PRE>" >>$strfile
fail=0
echo "<H1>2 - Command Tests</H1>" >>$strfile
echo "<P>This section provides the results to the command tests" >>$strfile
echo "outlined in the CUPS Software Test Plan. These tests were run on" >>$strfile
-echo `date "+%Y-%m-%d"` by `whoami` on `hostname`. >>$strfile
+echo `date "+%Y-%m-%d"` by $user on `hostname`. >>$strfile
echo "<PRE>" >>$strfile
for file in 5*.sh; do
echo ""
#
-# End of "$Id: run-stp-tests.sh 5091 2006-02-08 18:39:56Z mike $"
+# End of "$Id: run-stp-tests.sh 5262 2006-03-09 21:26:27Z mike $"
#