From 9a65f3585a1e3c3981f4483524564c3139a4ca56 Mon Sep 17 00:00:00 2001 From: gdr-ftp Date: Wed, 11 Mar 1998 05:19:56 +0000 Subject: [PATCH] fulltests: This is a common test script used by many of the utilities. --- build.tools/fulltests | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 build.tools/fulltests diff --git a/build.tools/fulltests b/build.tools/fulltests new file mode 100755 index 0000000..ddb6aca --- /dev/null +++ b/build.tools/fulltests @@ -0,0 +1,29 @@ +# gsh script to run tests and collect results +# Written by Dave Tribby * August 1997 +# $Id: fulltests,v 1.1 1998/03/11 05:19:56 gdr-ftp Exp $ + +# Name of gsh script containing test cases +set command="dotests" +# Sometimes the file type is modified by editing; make it executable +chtyp -l exec $command + +# Filenames for raw and modified results +set raw_file="/tmp/rawlist" +set result_file="test.list" + +# Location of tr command that knows how to handle classes +set trcmd="/obj/gno/usr.bin/tr/tr" + +# --- Begin the tests --- + +echo -n "Executing test script \"$command\" from directory " +pwd + +# Create a new gsh invocation and record all I/O +echo "$command ; exit" | script $raw_file + +# Cleanup control chars using either of the following... +echo "Done with tests. Removing control characters from results file" +$trcmd -c -ds '[:print:]\r' '\r' < $raw_file > $result_file + +echo "Tests results have been saved as \"$result_file\""