diff options
author | Paul Phillips <paulp@improving.org> | 2012-05-26 13:23:08 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-05-26 13:27:24 -0700 |
commit | e4b8c063ed01db93c2b7a87b673c7991a44f04df (patch) | |
tree | 8fbf2b4ba16007de805aa3f9cad46b4433fc14f8 /tools/rm-orphan-checkfiles | |
parent | cf6cd56e14daef93ff82d8da4e7247df11d748f9 (diff) | |
download | scala-e4b8c063ed01db93c2b7a87b673c7991a44f04df.tar.gz scala-e4b8c063ed01db93c2b7a87b673c7991a44f04df.tar.bz2 scala-e4b8c063ed01db93c2b7a87b673c7991a44f04df.zip |
Orphan checkfile remover.
Are these -msil checkfiles used in some secret fashion? The level of
activity suggest otherwise. Since scala-nightly-msil has been disabled
for over a year, it's an easy rm unless someone speaks up.
% tools/rm-orphan-checkfiles
Scanning for orphan check files...
rm 'test/disabled/run/code.check'
rm 'test/files/jvm/t1652.check'
rm 'test/files/neg/macro-argtype-mismatch.check'
rm 'test/files/neg/macro-noncompilertree.check'
rm 'test/files/neg/macro-nontree.check'
rm 'test/files/run/Course-2002-01-msil.check'
rm 'test/files/run/Course-2002-02-msil.check'
rm 'test/files/run/Course-2002-03-msil.check'
rm 'test/files/run/Course-2002-04-msil.check'
rm 'test/files/run/Course-2002-08-msil.check'
rm 'test/files/run/Course-2002-09-msil.check'
rm 'test/files/run/Course-2002-10-msil.check'
rm 'test/files/run/absoverride-msil.check'
rm 'test/files/run/bitsets-msil.check'
rm 'test/files/run/boolord-msil.check'
rm 'test/files/run/bugs-msil.check'
rm 'test/files/run/impconvtimes-msil.check'
rm 'test/files/run/infix-msil.check'
rm 'test/files/run/iq-msil.check'
rm 'test/files/run/macro-invalidret-doesnt-conform-to-impl-rettype.check'
rm 'test/files/run/macro-rettype-mismatch.check'
rm 'test/files/run/misc-msil.check'
rm 'test/files/run/promotion-msil.check'
rm 'test/files/run/richs-msil.check'
rm 'test/files/run/runtime-msil.check'
rm 'test/files/run/tuples-msil.check'
rm 'test/pending/jvm/t1464.check'
rm 'test/pending/run/subarray.check'
rm 'test/pending/run/t0446.check'
rm 'test/pending/run/t5629.check'
Scanning for orphan flags files...
rm 'test/files/neg/macro-argtype-mismatch.flags'
rm 'test/files/neg/macro-noncompilertree.flags'
rm 'test/files/neg/macro-nontree.flags'
rm 'test/files/pos/anyval-children.flags'
rm 'test/files/pos/t3097.flags'
rm 'test/files/run/macro-invalidret-doesnt-conform-to-impl-rettype.flags'
rm 'test/files/run/macro-rettype-mismatch.flags'
Diffstat (limited to 'tools/rm-orphan-checkfiles')
-rwxr-xr-x | tools/rm-orphan-checkfiles | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/rm-orphan-checkfiles b/tools/rm-orphan-checkfiles new file mode 100755 index 0000000000..ca0a3f2938 --- /dev/null +++ b/tools/rm-orphan-checkfiles @@ -0,0 +1,18 @@ +#!/bin/sh +# +# Scans for and removes .check and .flags files under test/ +# which don't have an accompanying test. + +shopt -s nullglob + +echo "Scanning for orphan check files..." +for f in $(ls -1d test/{files,pending,disabled}/{jvm,neg,pos,run}/*.check); do + base=${f%%.check} + [[ -d $base ]] || [[ -f $base.scala ]] || git rm -f $f +done + +echo "Scanning for orphan flags files..." +for f in $(ls -1d test/{files,pending,disabled}/{jvm,neg,pos,run}/*.flags); do + base=${f%%.flags} + [[ -d $base ]] || [[ -f $base.scala ]] || git rm -f $f +done |