[cfe-commits] r155628 - in /cfe/trunk/test/Driver: ./ Inputs/debian_multiarch_tree/lib/mips-linux-gnu/ Inputs/debian_multiarch_tree/lib/mipsel-linux-gnu/ Inputs/debian_multiarch_tree/usr/include/c++/4.5/mips-linux-gnu/ Inputs/debian_multiarch_tree/usr/include/c++/4.5/mipsel-linux-gnu/ Inputs/debian_multiarch_tree/usr/include/mips-linux-gnu/ Inputs/debian_multiarch_tree/usr/include/mipsel-linux-gnu/ Inputs/debian_multiarch_tree/usr/lib/gcc/mips-linux-gnu/ Inputs/debian_multiarch_tree/usr/lib/gcc/mips-linux-gnu/4.5/ Inp...
Simon Atanasyan
satanasyan at mips.com
Thu Apr 26 01:35:58 PDT 2012
Author: atanasyan
Date: Thu Apr 26 03:35:58 2012
New Revision: 155628
URL: http://llvm.org/viewvc/llvm-project?rev=155628&view=rev
Log:
MIPS: Add tests to check the debian multiarch stuff for mips and mipsel targets.
Added:
cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/lib/mips-linux-gnu/
cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/lib/mips-linux-gnu/.keep
cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/lib/mipsel-linux-gnu/
cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/lib/mipsel-linux-gnu/.keep
cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/include/c++/4.5/mips-linux-gnu/
cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/include/c++/4.5/mips-linux-gnu/.keep
cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/include/c++/4.5/mipsel-linux-gnu/
cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/include/c++/4.5/mipsel-linux-gnu/.keep
cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/include/mips-linux-gnu/
cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/include/mips-linux-gnu/.keep
cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/include/mipsel-linux-gnu/
cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/include/mipsel-linux-gnu/.keep
cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/mips-linux-gnu/
cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/mips-linux-gnu/4.5/
cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/mips-linux-gnu/4.5/64/
cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/mips-linux-gnu/4.5/64/crtbegin.o
cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/mips-linux-gnu/4.5/crtbegin.o
cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/mips-linux-gnu/4.5/n32/
cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/mips-linux-gnu/4.5/n32/crtbegin.o
cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/mipsel-linux-gnu/
cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/mipsel-linux-gnu/4.5/
cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/mipsel-linux-gnu/4.5/64/
cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/mipsel-linux-gnu/4.5/64/crtbegin.o
cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/mipsel-linux-gnu/4.5/crtbegin.o
cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/mipsel-linux-gnu/4.5/n32/
cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/mipsel-linux-gnu/4.5/n32/crtbegin.o
cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/mips-linux-gnu/
cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/mips-linux-gnu/.keep
cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/mipsel-linux-gnu/
cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/mipsel-linux-gnu/.keep
Modified:
cfe/trunk/test/Driver/linux-ld.c
Added: cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/lib/mips-linux-gnu/.keep
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/lib/mips-linux-gnu/.keep?rev=155628&view=auto
==============================================================================
(empty)
Added: cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/lib/mipsel-linux-gnu/.keep
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/lib/mipsel-linux-gnu/.keep?rev=155628&view=auto
==============================================================================
(empty)
Added: cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/include/c++/4.5/mips-linux-gnu/.keep
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/include/c%2B%2B/4.5/mips-linux-gnu/.keep?rev=155628&view=auto
==============================================================================
(empty)
Added: cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/include/c++/4.5/mipsel-linux-gnu/.keep
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/include/c%2B%2B/4.5/mipsel-linux-gnu/.keep?rev=155628&view=auto
==============================================================================
(empty)
Added: cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/include/mips-linux-gnu/.keep
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/include/mips-linux-gnu/.keep?rev=155628&view=auto
==============================================================================
(empty)
Added: cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/include/mipsel-linux-gnu/.keep
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/include/mipsel-linux-gnu/.keep?rev=155628&view=auto
==============================================================================
(empty)
Added: cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/mips-linux-gnu/4.5/64/crtbegin.o
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/mips-linux-gnu/4.5/64/crtbegin.o?rev=155628&view=auto
==============================================================================
(empty)
Added: cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/mips-linux-gnu/4.5/crtbegin.o
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/mips-linux-gnu/4.5/crtbegin.o?rev=155628&view=auto
==============================================================================
(empty)
Added: cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/mips-linux-gnu/4.5/n32/crtbegin.o
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/mips-linux-gnu/4.5/n32/crtbegin.o?rev=155628&view=auto
==============================================================================
(empty)
Added: cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/mipsel-linux-gnu/4.5/64/crtbegin.o
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/mipsel-linux-gnu/4.5/64/crtbegin.o?rev=155628&view=auto
==============================================================================
(empty)
Added: cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/mipsel-linux-gnu/4.5/crtbegin.o
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/mipsel-linux-gnu/4.5/crtbegin.o?rev=155628&view=auto
==============================================================================
(empty)
Added: cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/mipsel-linux-gnu/4.5/n32/crtbegin.o
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/gcc/mipsel-linux-gnu/4.5/n32/crtbegin.o?rev=155628&view=auto
==============================================================================
(empty)
Added: cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/mips-linux-gnu/.keep
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/mips-linux-gnu/.keep?rev=155628&view=auto
==============================================================================
(empty)
Added: cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/mipsel-linux-gnu/.keep
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_multiarch_tree/usr/lib/mipsel-linux-gnu/.keep?rev=155628&view=auto
==============================================================================
(empty)
Modified: cfe/trunk/test/Driver/linux-ld.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/linux-ld.c?rev=155628&r1=155627&r2=155628&view=diff
==============================================================================
--- cfe/trunk/test/Driver/linux-ld.c (original)
+++ cfe/trunk/test/Driver/linux-ld.c Thu Apr 26 03:35:58 2012
@@ -267,6 +267,30 @@
// CHECK-DEBIAN-PPC64: "-L[[SYSROOT]]/usr/lib/gcc/powerpc64-linux-gnu/4.5/../../.."
// CHECK-DEBIAN-PPC64: "-L[[SYSROOT]]/lib"
// CHECK-DEBIAN-PPC64: "-L[[SYSROOT]]/usr/lib"
+// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
+// RUN: -target mips-linux-gnu \
+// RUN: --sysroot=%S/Inputs/debian_multiarch_tree \
+// RUN: | FileCheck --check-prefix=CHECK-DEBIAN-MIPS %s
+// CHECK-DEBIAN-MIPS: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"
+// CHECK-DEBIAN-MIPS: "{{.*}}/usr/lib/gcc/mips-linux-gnu/4.5/crtbegin.o"
+// CHECK-DEBIAN-MIPS: "-L[[SYSROOT]]/usr/lib/gcc/mips-linux-gnu/4.5"
+// CHECK-DEBIAN-MIPS: "-L[[SYSROOT]]/usr/lib/gcc/mips-linux-gnu/4.5/../../../mips-linux-gnu"
+// CHECK-DEBIAN-MIPS: "-L[[SYSROOT]]/usr/lib/mips-linux-gnu"
+// CHECK-DEBIAN-MIPS: "-L[[SYSROOT]]/usr/lib/gcc/mips-linux-gnu/4.5/../../.."
+// CHECK-DEBIAN-MIPS: "-L[[SYSROOT]]/lib"
+// CHECK-DEBIAN-MIPS: "-L[[SYSROOT]]/usr/lib"
+// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
+// RUN: -target mipsel-linux-gnu \
+// RUN: --sysroot=%S/Inputs/debian_multiarch_tree \
+// RUN: | FileCheck --check-prefix=CHECK-DEBIAN-MIPSEL %s
+// CHECK-DEBIAN-MIPSEL: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"
+// CHECK-DEBIAN-MIPSEL: "{{.*}}/usr/lib/gcc/mipsel-linux-gnu/4.5/crtbegin.o"
+// CHECK-DEBIAN-MIPSEL: "-L[[SYSROOT]]/usr/lib/gcc/mipsel-linux-gnu/4.5"
+// CHECK-DEBIAN-MIPSEL: "-L[[SYSROOT]]/usr/lib/gcc/mipsel-linux-gnu/4.5/../../../mipsel-linux-gnu"
+// CHECK-DEBIAN-MIPSEL: "-L[[SYSROOT]]/usr/lib/mipsel-linux-gnu"
+// CHECK-DEBIAN-MIPSEL: "-L[[SYSROOT]]/usr/lib/gcc/mipsel-linux-gnu/4.5/../../.."
+// CHECK-DEBIAN-MIPSEL: "-L[[SYSROOT]]/lib"
+// CHECK-DEBIAN-MIPSEL: "-L[[SYSROOT]]/usr/lib"
//
// Test linker invocation on Android.
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
More information about the cfe-commits
mailing list