For PR1319: Upgrade to new test harness.
authorReid Spencer <rspencer@reidspencer.com>
Sun, 15 Apr 2007 20:41:31 +0000 (20:41 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 15 Apr 2007 20:41:31 +0000 (20:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36084 91177308-0d34-0410-b5e6-96231b3b80d8

12 files changed:
test/C++Frontend/2003-10-21-InnerClass.cpp.tr
test/C++Frontend/2003-11-09-ConstructorTypeSafety.cpp.tr
test/C++Frontend/2003-11-18-MemberInitializationCasting.cpp.tr
test/C++Frontend/2004-01-11-DynamicInitializedConstant.cpp.tr
test/C++Frontend/2004-09-27-CompilerCrash.cpp
test/C++Frontend/2004-09-27-DidntEmitTemplate.cpp.tr
test/C++Frontend/2004-11-27-EmitsUnusedInlineFunctions.cpp
test/C++Frontend/2005-02-14-BitFieldOffset.cpp
test/C++Frontend/2006-09-27-Debug-Protection.cpp
test/C++Frontend/2007-03-27-FunctionVarRename.cpp
test/C++Frontend/2007-04-11-InlineStorageClassC++.cpp
test/C++Frontend/dg.exp

index 4f7b436c14fef0347a6d8d5c8fecbaf23e2fa91b..0e8ff2cd30c894c0f694f1cd56ae87b22acee871 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %llvmgcc -xc++ -S -o - %s | grep '"struct.X::Y"'
+// RUN: %llvmgcc -xc++ -S -o - %s | grep "struct.X::Y"
 struct X {
 
   struct Y {
index 3596d68e5d0cc23a56a033debf0da50c21e1a8aa..2b3b8b179747f3c7c7ee3fb6024a0aa365eb25ef 100644 (file)
@@ -1,5 +1,6 @@
 // The code generated for this testcase should be completely typesafe!
-// RUN: %llvmgcc -xc++ -S -o - %s | llvm-as | opt -die | llvm-dis | not grep ' cast '
+// RUN: %llvmgcc -xc++ -S -o - %s | llvm-as | opt -die | llvm-dis | \
+// RUN:   notcast
 
 struct contained {
   unsigned X;
index 1d607a2ac95469f46e1d334d54157262e1f045dc..30290826e75ba10c87b7e783087f08697e5a3381 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %llvmgcc -xc++ -S -o - %s | llvm-as | opt -die | llvm-dis | not grep ' cast '
+// RUN: %llvmgcc -xc++ -S -o - %s | llvm-as | opt -die | llvm-dis | notcast
 
 struct A {
         A() : i(0) {}
index 03fead23f2f7a0e6ae52f83cf0494d645b35e49c..8ae15c9592b1f36fc5a4e9924c843d63657aea02 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %llvmgcc -xc++ -S -o - %s | not grep ' constant '
+// RUN: %llvmgcc -xc++ -S -o - %s | not grep { constant }
 
 extern int X;
 const int Y = X;
index 726bd86a40d37a3cbee3c4d52490adde6c72bb2b..1e5e6acea5a5159db4f3b0255853c11b04bc04dc 100644 (file)
@@ -1,7 +1,5 @@
 // RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
 
-
-
 struct Pass {} ;
 template<typename PassName>
 Pass *callDefaultCtor() { return new PassName(); }
index 21f4ac854fafd8f2378236f659549986a370d758..706d541bee678e292bb0d7b15c06f53828e1098b 100644 (file)
@@ -1,4 +1,5 @@
-// RUN: llvmgcc -xc++ %s -c -o - | llvm-dis | grep callDefaultCtor | not grep declare
+// RUN: %llvmgxx -xc++ %s -c -o - | llvm-dis | grep callDefaultCtor | \
+// RUN:   not grep declare
 
 // This is a testcase for LLVM PR445, which was a problem where the 
 // instantiation of callDefaultCtor was not being emitted correctly.
index 68df84c0756371901d357baf25ee461080b273bb..794b7d7fd8b718a6b0baa953478cc667df565774 100644 (file)
@@ -2,6 +2,6 @@
 // verifies that it does not emit the body of getchar, because it is not used.
 // This corresponds to PR459
 
-// RUN: %llvmgxx %s -S -o - | not grep '^int .getchar'
+// RUN: %llvmgxx %s -S -o - | not grep {^i32 .getchar}
 
 #include <stdio.h>
index 375b0902a1cb2b8668a8636844ea7198e5cb73ef..522e20a478dfbfd271eb2fd1e52790d6246fc1c3 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %llvmgxx %s -S -o - | not grep 'int 6'
+// RUN: %llvmgxx %s -S -o - | not grep {i32 6}
 
 struct QVectorTypedData {
     int size;
index 87bc0d595adfd3e51412a94645f016058e758e22..27cbc0f1e8ffabbb5f3519abcf40ad426f4e5453 100644 (file)
@@ -1,6 +1,6 @@
 // XFAIL: llvmgcc3
-// RUN: %llvmgxx -O0 -emit-llvm -S -g -o - %s | grep 'i32 1,' &&
-// RUN: %llvmgxx -O0 -emit-llvm -S -g -o - %s | grep 'i32 2,'
+// RUN: %llvmgxx -O0 -emit-llvm -S -g -o - %s | grep {i32 1,}
+// RUN: %llvmgxx -O0 -emit-llvm -S -g -o - %s | grep {i32 2,}
 
 class A {
 public:
index ca68af1d57f0c59a1aa184dbb99e2c48e7bd14f9..538d6df1813cc8352a40cb9795b31c5872686511 100644 (file)
@@ -1,5 +1,5 @@
-// RUN: %llvmgxx %s -emit-llvm -S -o - | not grep 'eprintf1' &&
-// RUN: %llvmgxx %s -emit-llvm -S -o - | grep 'eprintf'
+// RUN: %llvmgxx %s -emit-llvm -S -o - | not grep eprintf1
+// RUN: %llvmgxx %s -emit-llvm -S -o - | grep eprintf
 
 // Only one eprintf should exist in the output
 
index 902ee126f60b1fe923f29458fc0aacaf18d40846..20b9d84298c878159e72088125093c17067e5271 100644 (file)
@@ -1,10 +1,17 @@
-// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | grep xglobWeak | grep linkonce | wc -l | grep 1
-// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | grep xextWeak | grep linkonce | wc -l | grep 1
-// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | grep xWeaknoinline | grep weak wc -l | grep 1
-// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | grep xWeakextnoinline | grep weak wc -l | grep 1
-// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep declare | grep xglobnoWeak | grep linkonce | wc -l | grep 1
-// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | grep xstatnoWeak | grep internal | wc -l | grep 1
-// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | grep xextnoWeak | grep linkonce | wc -l | grep 1
+// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | \
+// RUN:   grep xglobWeak | grep linkonce | wc -l | grep 1
+// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | \
+// RUN:   grep xextWeak | grep linkonce | wc -l | grep 1
+// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | \
+// RUN:   grep xWeaknoinline | grep weak | wc -l | grep 1
+// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | \
+// RUN:   grep xWeakextnoinline | grep weak | wc -l | grep 1
+// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep declare | \
+// RUN:   grep xglobnoWeak | grep linkonce | wc -l | grep 1
+// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | \
+// RUN:   grep xstatnoWeak | grep internal | wc -l | grep 1
+// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | \
+// RUN:   grep xextnoWeak | grep linkonce | wc -l | grep 1
 inline int xglobWeak(int) __attribute__((weak));
 inline int xglobWeak (int i) {
   return i*2;
index ff34508c3c64c167429097e1c896dd65daaff278..879685ca879df60056ae48bf4411e0df73b77dc5 100644 (file)
@@ -1,3 +1,3 @@
-load_lib llvm-dg.exp
+load_lib llvm.exp
 
-llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
+RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]