diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-04-26 16:15:01 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-05-02 07:11:03 +0200 |
commit | 397df7acd8f2b865a81cdfe193cfbb0ccc069521 (patch) | |
tree | 91bcd2006cf699d3cab20bc0b7512c9eca8882a2 /testsuites/tools/generic/difftest.in | |
parent | tests: Remove configure feature checks (diff) | |
download | rtems-397df7acd8f2b865a81cdfe193cfbb0ccc069521.tar.bz2 |
tests: Remove difftest and sorttimes tools
Close #3418.
Diffstat (limited to '')
-rw-r--r-- | testsuites/tools/generic/difftest.in | 113 |
1 files changed, 0 insertions, 113 deletions
diff --git a/testsuites/tools/generic/difftest.in b/testsuites/tools/generic/difftest.in deleted file mode 100644 index 246ff663f8..0000000000 --- a/testsuites/tools/generic/difftest.in +++ /dev/null @@ -1,113 +0,0 @@ -#!@KSH@ -p -# -# Check test results against official output from the src tree -# - -# XXX: do not run size.exe with this; it asks questions we don't answer - -# how to do arith in bash -# i=$((i * 2)) -# b=$((b + 1)) - -# progname=`basename $0` -progname=${0##*/} # fast basename hack for ksh, bash - -USAGE=\ -"usage: $progname [ -opts ] test [ test ... ] - -v -- verbose - -l logdir -- specify log directory (default is 'logdir') -" - -# log an error to stderr -prerr() -{ - echo "$*" >&2 -} - -fatal() { - [ "$1" ] && prerr $* - prerr "$USAGE" - exit 1 -} - -warn() { - [ "$1" ] && prerr $* -} - -# -# process the options -# -# defaults for getopt vars -# - -verbose="" -logdir=log - -while getopts v12o:l: OPT -do - case "$OPT" in - v) - verbose="yes";; - l) - logdir="$OPTARG";; - *) - fatal;; - esac -done -shiftcount=`expr $OPTIND - 1` -shift $shiftcount - -args=$* - -# -# Run the tests -# - -test -d $logdir || fatal "No log directory: ./$logdir" - -tests="$args" -if [ ! "$tests" ] -then - cd $logdir - set -- `ls -1 sp* mp??_? psx* mp*_?_g 2>/dev/null | grep -v info` - cd .. - tests="$*" -fi - -for t in $tests -do - logfile=$t - - if [ ! -f $logdir/$logfile ] - then - continue - fi - - echo $logfile - echo - - case $t in - mp*) - mptest=`echo $t | sed 's/_.//'` - node=`echo $t | sed 's/...._//'` - tmp_scn_file=mptests/node$node/$mptest.scn;; - sp*) - tmp_scn_file=sptests/$t.scn;; - psx*) - tmp_scn_file=psxtests/$t.scn;; - *) - fatal "unknown test $t";; - esac - - scn_file=`echo $tmp_scn_file | sed -e s/_g//` - sed -e '/^$/d' < $logdir/$logfile | diff -b screens/$scn_file - - echo - echo -done - -exit 0 - -# Local Variables: *** -# mode:ksh *** -# End: *** - |