Merge pull request #2240 from DOCGroup/revert-2239-jwi-pi23
[ACE_TAO.git] / ACE / bin / diff-builds-and-group-fixed-tests-only.sh
blob68c026e17eb95f15740d81c53291f2986cf57f96
1 #!/bin/sh
3 if test -z $1; then newdate=`date -u +%Y_%m_%d`; else newdate=$1; fi
4 if test -z $2; then prefix=`date -u +%Y%m%d%a`; else prefix=$2; fi
5 if test -z $3; then olddate=2024_05_16; else olddate=$3; fi
6 if test -z $ACE_ROOT; then ACE_ROOT=..; fi
7 if test -z $TAO_ROOT; then TAO_ROOT=${ACE_ROOT}/TAO; fi
9 grep -h \!FIXED_BUGS_ONLY ${ACE_ROOT}/tests/*.lst ${ACE_ROOT}/bin/*.lst ${TAO_ROOT}/bin/*.lst | sed -e "s/^\([^\:]*\).*/\1/" | sed -e "s/\(\/run_test.pl\)\?\s*$//" > ${prefix}-Ignore.txt
11 perl ${ACE_ROOT}/bin/diff-builds.pl -r -D $olddate -D $newdate | perl -ne 'print unless /^(\@\@|[ \-][a-zA-Z])/' | grep -v -f ${prefix}-Ignore.txt | tee ${prefix}-Builds.txt | grep '+[a-zA-Z]' | sort | uniq -c | sort -n -r -s | sort -k3 -r -s > ${prefix}-Tests.txt
12 perl ${ACE_ROOT}/bin/diff-builds.pl -D $olddate -D $newdate | perl -ne 'print unless /^(\@\@|[ \-][a-zA-Z])/' | grep -v -f ${prefix}-Ignore.txt | grep '+[a-zA-Z]' | sort | uniq -c | sort -n -r -s > ${prefix}-Tests-NoTestRev.txt