OSDN Git Service

2005-05-12 Benjamin Kosnik <bkoz@redhat.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / scripts / create_testsuite_files
index f97b6e6..4b9a41f 100755 (executable)
@@ -30,29 +30,25 @@ tests_file_perf="$outdir/testsuite_files_performance"
 
 cd $srcdir
 # This is the ugly version of "everything but the current directory".  It's
-# what has to happen when find(1) doesn't support -mindepth.
+# what has to happen when find(1) doesn't support -mindepth, or -xtype.
 dlist=`echo [0-9][0-9]*`
 for d in [a-z]*; do
   test -d $d && dlist="$dlist $d"
 done
-find $dlist -xtype f -name "*.cc" | sort > $tmp.1
-
-# If the library is not configured to support wchar_t, don't run those tests.
-if test -f "$outdir/testsuite_wchar_t"; then
-  mv $tmp.1 $tmp.2
-else
-  grep -v wchar_t $tmp.1 > $tmp.2
+find $dlist "(" -type f -o -type l ")" -name "*.cc" -print | sort > $tmp.1
+if test ! -s "$tmp.1"; then
+  exit 1
 fi
 
 # Now filter out classes of tests.  These classes are run using special rules.
-grep _xin $tmp.2 > $tests_file_inter
-grep -v _xin $tmp.2 > $tmp.3
+grep _xin $tmp.1 > $tests_file_inter
+grep -v _xin $tmp.1 > $tmp.4
 
-grep performance $tmp.3 > $tests_file_perf
-grep -v performance $tmp.3 > $tmp.4
+grep performance $tmp.4 > $tests_file_perf
+grep -v performance $tmp.4 > $tmp.5
 
 # ...more filters go here.
-cp $tmp.4 $tests_file_normal
+cp $tmp.5 $tests_file_normal
 
 rm $tmp*
 exit 0