diff options
author | Joerg Sonnenberger <joerg@bec.de> | 2013-10-14 23:26:44 +0000 |
---|---|---|
committer | Joerg Sonnenberger <joerg@bec.de> | 2013-10-14 23:26:44 +0000 |
commit | f7c462cbaa5a72d60e95bd825933850fe1ca05ed (patch) | |
tree | 9cdc650d67951a669e3affb5e88bd2bf1f454ef5 /test/Driver/netbsd.c | |
parent | 9aa926143ba36c09bea5b93b22205b30784a7a04 (diff) |
Provide a dummy NetBSD tree and use --sysroot in the driver test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192641 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/netbsd.c')
-rw-r--r-- | test/Driver/netbsd.c | 48 |
1 files changed, 30 insertions, 18 deletions
diff --git a/test/Driver/netbsd.c b/test/Driver/netbsd.c index 1ca1360a15..a7b19cfea4 100644 --- a/test/Driver/netbsd.c +++ b/test/Driver/netbsd.c @@ -1,45 +1,57 @@ -// RUN: %clang -no-canonical-prefixes -target x86_64--netbsd %s -### 2>&1 \ +// RUN: %clang -no-canonical-prefixes -target x86_64--netbsd \ +// RUN: --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \ // RUN: | FileCheck -check-prefix=X86_64 %s -// RUN: %clang -no-canonical-prefixes -target x86_64--netbsd7.0.0 %s -### 2>&1 \ +// RUN: %clang -no-canonical-prefixes -target x86_64--netbsd7.0.0 \ +// RUN: --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \ // RUN: | FileCheck -check-prefix=X86_64-7 %s -// RUN: %clang -no-canonical-prefixes -target x86_64--netbsd6.0.0 %s -### 2>&1 \ +// RUN: %clang -no-canonical-prefixes -target x86_64--netbsd6.0.0 \ +// RUN: --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \ // RUN: | FileCheck -check-prefix=X86_64-6 %s -// RUN: %clang -no-canonical-prefixes -target x86_64--netbsd %s -static -### 2>&1 \ +// RUN: %clang -no-canonical-prefixes -target x86_64--netbsd -static \ +// RUN: --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \ // RUN: | FileCheck -check-prefix=S-X86_64 %s -// RUN: %clang -no-canonical-prefixes -target x86_64--netbsd7.0.0 -static %s -### 2>&1 \ +// RUN: %clang -no-canonical-prefixes -target x86_64--netbsd7.0.0 -static \ +// RUN: --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \ // RUN: | FileCheck -check-prefix=S-X86_64-7 %s -// RUN: %clang -no-canonical-prefixes -target x86_64--netbsd6.0.0 -static %s -### 2>&1 \ +// RUN: %clang -no-canonical-prefixes -target x86_64--netbsd6.0.0 -static \ +// RUN: --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \ // RUN: | FileCheck -check-prefix=S-X86_64-6 %s // X86_64: clang{{.*}}" "-cc1" "-triple" "x86_64--netbsd" // X86_64: ld{{.*}}" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld.elf_so" -// X86_64: "-o" "a.out" "crt0.o" "crti.o" "crtbegin.o" "{{.*}}.o" "-lc" -// X86_64: "crtend.o" "crtn.o" +// X86_64: "-o" "a.out" "{{.*}}/usr/lib/crt0.o" "{{.*}}/usr/lib/crti.o" +// X86_64: "{{.*}}/usr/lib/crtbegin.o" "{{.*}}.o" "-lc" +// X86_64: "{{.*}}/usr/lib/crtend.o" "{{.*}}/usr/lib/crtn.o" // X86_64-7: clang{{.*}}" "-cc1" "-triple" "x86_64--netbsd7.0.0" // X86_64-7: ld{{.*}}" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld.elf_so" -// X86_64-7: "-o" "a.out" "crt0.o" "crti.o" "crtbegin.o" "{{.*}}.o" "-lc" -// X86_64-7: "crtend.o" "crtn.o" +// X86_64-7: "-o" "a.out" "{{.*}}/usr/lib/crt0.o" "{{.*}}/usr/lib/crti.o" +// X86_64-7: "{{.*}}/usr/lib/crtbegin.o" "{{.*}}.o" "-lc" +// X86_64-7: "{{.*}}/usr/lib/crtend.o" "{{.*}}/usr/lib/crtn.o" // X86_64-6: clang{{.*}}" "-cc1" "-triple" "x86_64--netbsd6.0.0" // X86_64-6: ld{{.*}}" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld.elf_so" -// X86_64-6: "-o" "a.out" "crt0.o" "crti.o" "crtbegin.o" "{{.*}}.o" "-lc" +// X86_64-6: "-o" "a.out" "{{.*}}/usr/lib/crt0.o" "{{.*}}/usr/lib/crti.o" +// X86_64-6: "{{.*}}/usr/lib/crtbegin.o" "{{.*}}.o" "-lc" // X86_64-6: "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" -// X86_64-6: "crtend.o" "crtn.o" +// X86_64-6: "{{.*}}/usr/lib/crtend.o" "{{.*}}/usr/lib/crtn.o" // S-X86_64: clang{{.*}}" "-cc1" "-triple" "x86_64--netbsd" // S-X86_64: ld{{.*}}" "-Bstatic" -// S-X86_64: "-o" "a.out" "crt0.o" "crti.o" "crtbegin.o" "{{.*}}.o" "-lc" -// S-X86_64: "crtend.o" "crtn.o" +// S-X86_64: "-o" "a.out" "{{.*}}/usr/lib/crt0.o" "{{.*}}/usr/lib/crti.o" +// S-X86_64: "{{.*}}/usr/lib/crtbegin.o" "{{.*}}.o" "-lc" +// S-X86_64: "{{.*}}/usr/lib/crtend.o" "{{.*}}/usr/lib/crtn.o" // S-X86_64-7: clang{{.*}}" "-cc1" "-triple" "x86_64--netbsd7.0.0" // S-X86_64-7: ld{{.*}}" "-Bstatic" -// S-X86_64-7: "-o" "a.out" "crt0.o" "crti.o" "crtbegin.o" "{{.*}}.o" "-lc" -// S-X86_64-7: "crtend.o" "crtn.o" +// S-X86_64-7: "-o" "a.out" "{{.*}}/usr/lib/crt0.o" "{{.*}}/usr/lib/crti.o" +// S-X86_64-7: "{{.*}}/usr/lib/crtbegin.o" "{{.*}}.o" "-lc" +// S-X86_64-7: "{{.*}}/usr/lib/crtend.o" "{{.*}}/usr/lib/crtn.o" // S-X86_64-6: clang{{.*}}" "-cc1" "-triple" "x86_64--netbsd6.0.0" // S-X86_64-6: ld{{.*}}" "-Bstatic" -// S-X86_64-6: "-o" "a.out" "crt0.o" "crti.o" "crtbegin.o" "{{.*}}.o" "-lc" +// S-X86_64-6: "-o" "a.out" "{{.*}}/usr/lib/crt0.o" "{{.*}}/usr/lib/crti.o" +// S-X86_64-6: "{{.*}}/usr/lib/crtbegin.o" "{{.*}}.o" "-lc" // S-X86_64-6: "-lgcc_eh" "-lc" "-lgcc" -// S-X86_64-6: "crtend.o" "crtn.o" +// S-X86_64-6: "{{.*}}/usr/lib/crtend.o" "{{.*}}/usr/lib/crtn.o" |