[llvm-commits] CVS: llvm/test/Regression/dg.exp
Tanya Brethour
tbrethou at cs.uiuc.edu
Sat Nov 6 13:09:38 PST 2004
Changes in directory llvm/test/Regression:
dg.exp added (r1.1)
---
Log message:
First crack at dejagnu support. This file contains a procedure that will loop over all subdirectories and call llvm-runtest on all .ll files. This allows you to add a new subdirectory without having to create a .exp file for it.
---
Diffs of the changes: (+26 -0)
Index: llvm/test/Regression/dg.exp
diff -c /dev/null llvm/test/Regression/dg.exp:1.1
*** /dev/null Sat Nov 6 15:09:38 2004
--- llvm/test/Regression/dg.exp Sat Nov 6 15:09:28 2004
***************
*** 0 ****
--- 1,26 ----
+ load_lib llvm-dg.exp
+
+ #Recurse through all subdirectories without having to add to a .exp to each subdir
+ proc regression-runtest { directories srcdir subdir target_triplet} {
+
+ foreach dir $directories {
+
+ #skip Output and CVS directories
+ if { [string match "Output" $dir] || [string match "CVS" $dir] } {
+ continue
+ } else {
+
+ set new_srcdir [file join $srcdir $subdir]
+
+ set new_subdir $dir
+ cd [file join $new_srcdir/$new_subdir]
+ regression-runtest [lsort [glob -nocomplain -types {d} *]] $new_srcdir $new_subdir $target_triplet
+ }
+ }
+
+ llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.ll]] $srcdir $subdir $target_triplet
+ }
+
+
+ cd [file join $srcdir/$subdir]
+ regression-runtest [lsort [glob -nocomplain -types {d} *]] $srcdir $subdir $target_triplet
More information about the llvm-commits
mailing list