That turned dark q
Once considered th
Chris! I told you
Concrete may have
Once considered th
Joe's Bar and Gril
That turned dark q
FTL is not possibl
Concrete may have
We've recently disChapter 1. Once
# the system variable is set, a script like this can be used to automatically
# run some tests.
#
# Note: we do not want to use .kshrc since it will get executed every time the
# user starts a new command shell.
#
test $(id -u) -eq 0 && set -
set +x # turn off automatic echo
: ${TEST_DIR:=/tests}
: ${LOGFILE:=/tests/data/tst_print_errors.log}
: ${LOGLEVEL:=ERR}
if [ "x$TEST_DIR" = "x" ]
then
TEST_DIR="/data/print_errors"
echo "TEST_DIR $TEST_DIR" >> $LOGFILE
fi
if [ -f /data/tst_print_errors.ksh ]
then
. /data/tst_print_errors.ksh
else
echo "*** cannot find tst_print_errors.ksh ***" >> $LOGFILE
echo "*** to set TEST_DIR you must use" >> $LOGFILE
echo "*** data/tst_print_errors.ksh" >> $LOGFILE
echo "*** please put this file in /data/print_errors and set" >> $LOGFILE
echo "*** TEST_DIR to this directory" >> $LOGFILE
echo "*** to prevent overwriting of log file use setenv" >> $LOGFILE
echo "*** variable LOGFILE" >> $LOGFILE
echo "*** for additional log information" >> $LOGFILE
echo "*** please use setenv TEST_DIR ..." >> $LOGFILE
echo "***" >> $LOGFILE
echo "***" >> $LOGFILE
fi
if [ -z "$LOGFILE" ]
then
echo "TEST $TEST_DIR" >> $LOGFILE
echo "***" >> $LOGFILE
fi
rm -rf $TEST_DIR/$LOGFILE.tmp
# Set the loglevel
if [ -f $TEST_DIR/set_loglevel.ksh ]
then
. $TEST_DIR/set_loglevel.ksh
fi
uname -a
ps cax | tail -n+2 | sed -e '/.*/d' > $TEST_DIR/ps-${UNAME}-${HOSTNAME}-${OS_FULL_VERSION}-${HOST_OS_RELEASE}.log
# set the log level
echo -e "test 1\t $LOGFILE $TEST_DIR/ps-${UNAME}-${HOSTNAME}-${OS_FULL_VERSION}-${HOST_OS_RELEASE}.log" | $TEST_DIR/ps_log.sh -b
echo -e "test 1\t $LOGFILE $TEST_DIR/ps-${UNAME}-${HOSTNAME}-${OS_FULL_VERSION}-${HOST_OS_RELEASE}.log" | $TEST_DIR/ps_log.sh -E
echo -e "test 1\t $LOGFILE $TEST_DIR/ps-${UNAME}-${HOSTNAME}-${OS_FULL_VERSION}-${HOST_OS_RELEASE}.log" | $TEST_DIR/ps_log.sh -L
echo -e "test 2\t $LOGFILE $TEST_DIR/ps-${UNAME}-${HOSTNAME}-${OS_FULL_VERSION}-${HOST_OS_RELEASE}.log" | $TEST_DIR/ps_log.sh -s WARNING
echo -e "test 3\t $LOGFILE $TEST_DIR/ps-${UNAME}-${HOSTNAME}-${OS_FULL_VERSION}-${HOST_OS_RELEASE}.log" | $TEST_DIR/ps_log.sh -L
echo -e "test 4\t $LOGFILE $TEST_DIR/ps-${UNAME}-${HOSTNAME}-${OS_FULL_VERSION}-${HOST_OS_RELEASE}.log" | $TEST_DIR/ps_log.sh -L
echo -e "test 5\t $LOGFILE $TEST_DIR/ps-${UNAME}-${HOSTNAME}-${OS_FULL_VERSION}-${HOST_OS_RELEASE}.log" | $TEST_DIR/ps_log.sh -L
echo -e "test 6\t $LOGFILE $TEST_DIR/ps-${UNAME}-${HOSTNAME}-${OS_FULL_VERSION}-${HOST_OS_RELEASE}.log" | $TEST_DIR/ps_log.sh -L
echo -e "test 7\t $LOGFILE $TEST_DIR/ps-${UNAME}-${HOSTNAME}-${OS_FULL_VERSION}-${HOST_OS_RELEASE}.log" | $TEST_DIR/ps_log.sh -L
echo -e "test 8\t $LOGFILE $TEST_DIR/ps-${UNAME}-${HOSTNAME}-${OS_FULL_VERSION}-${HOST_OS_RELEASE}.log" | $TEST_DIR/ps_log.sh -L
echo -e "test 9\t $LOGFILE $TEST_DIR/ps-${UNAME}-${HOSTNAME}-${OS_FULL_VERSION}-${HOST_OS_RELEASE}.log" | $TEST_DIR/ps_log.sh -L
echo -e "test 10\t $LOGFILE $TEST_DIR/ps-${UNAME}-${HOSTNAME}-${OS_FULL_VERSION}-${HOST_OS_RELEASE}.log" | $TEST_DIR/ps_log.sh -L
echo -e "test 11\t $LOGFILE $TEST_DIR/ps-${UNAME}-${HOSTNAME}-${OS_FULL_VERSION}-${HOST_OS_RELEASE}.log" | $TEST_DIR/ps_log.sh -L
echo -e "test 12\t $LOGFILE $TEST_DIR/ps-${UNAME}-${HOSTNAME}-${OS_FULL_VERSION}-${HOST_OS_RELEASE}.log" | $TEST_DIR/ps_log.sh -L
echo -e "test 13\t $LOGFILE $TEST_DIR/ps-${UNAME}-${HOSTNAME}-${OS_FULL_VERSION}-${HOST_OS_RELEASE}.log" | $TEST_DIR/ps_log.sh -L
echo -e "test 14\t $LOGFILE $TEST_DIR/ps-${UNAME}-${HOSTNAME}-${OS_FULL_VERSION}-${HOST_OS_RELEASE}.log" | $TEST_DIR/ps_log.sh -L
echo -e "test 15\t $LOGFILE $TEST_DIR/ps-${UNAME}-${HOSTNAME}-${OS_FULL_VERSION}-${HOST_OS_RELEASE}.log" | $TEST_DIR/ps_log.sh -L
echo -e "test 16\t $LOGFILE $TEST_DIR/ps-${UNAME}-${HOSTNAME}-${OS_FULL_VERSION}-${HOST_OS_RELEASE}.log" | $TEST_DIR/ps_log.sh -L
echo -e "test 17\t $LOGFILE $TEST_DIR/ps-${UNAME}-${HOSTNAME}-${OS_FULL_VERSION}-${HOST_OS_RELEASE}.log" | $TEST_DIR/ps_log.sh -L
echo -e "test 18\t $LOGFILE $TEST_DIR/ps-${UNAME}-${HOSTNAME}-${OS_FULL_VERSION}-${HOST_OS_RELEASE}.log" | $TEST_DIR/ps_log.sh -L
echo -e "test 19\t $LOGFILE $TEST_DIR/ps-${UNAME}-${HOSTNAME}-${OS_FULL_VERSION}-${HOST_OS_RELEASE}.log" | $TEST_DIR/ps_log.sh -L
echo -e "test 20\t $LOGFILE $TEST_DIR/ps-${UNAME}-${HOSTNAME}-${OS_FULL_VERSION}-${HOST_OS_RELEASE}.log" | $TEST_DIR/ps_log.sh -L
echo -e "test 21\t $LOGFILE $TEST_DIR/ps-${UNAME}-${HOSTNAME}-${OS_FULL_VERSION}-${HOST_OS_RELEASE}.log" | $TEST_DIR/ps_log.sh -L
echo -e "test 22\t $LOGFILE $TEST_DIR/ps-${UNAME}-${HOSTNAME}-${OS_FULL_VERSION}-${HOST_OS_RELEASE}.log" | $TEST_DIR/ps_log.sh -L
echo -e "test 23\t $LOGFILE $TEST_DIR/ps