brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 9c5cf13 Raw
45 lines · plain
1# Test that windows path separators are handled correctly.2REQUIRES: system-windows3 4# Note: many of these tests depend on relative paths, so we have to cd to a5# test directory first.6RUN: mkdir -p %t && cd %t7RUN: rm -rf a b && mkdir a b8RUN: echo hello-a      > a/foo.txt9RUN: echo hello-b      > b/foo.txt10RUN: echo hello-parent > foo.txt11 12# P is implied when using thin archives.13# Create an archive.14RUN: rm -f archive.a15RUN: llvm-ar rcST archive.a a\..\a\foo.txt16RUN: llvm-ar rcST archive.a foo.txt17RUN: llvm-ar rcST archive.a b\foo.txt b/foo.txt18RUN: llvm-ar dT archive.a foo.txt19RUN: llvm-ar t archive.a | FileCheck %s --check-prefix=ARCHIVE --implicit-check-not {{.}}20 21ARCHIVE:      a/foo.txt22ARCHIVE-NEXT: b/foo.txt23ARCHIVE-NEXT: b/foo.txt24 25RUN: llvm-ar t archive.a | FileCheck %s --check-prefix=LIST-BOTH --implicit-check-not {{.}}26RUN: llvm-ar t archive.a a\foo.txt | FileCheck %s --check-prefix=LIST-A --implicit-check-not {{.}}27RUN: llvm-ar t archive.a b\foo.txt | FileCheck %s --check-prefix=LIST-B --implicit-check-not {{.}}28 29LIST-BOTH:       a/foo.txt30LIST-BOTH-NEXT:  b/foo.txt31LIST-BOTH-NEXT:  b/foo.txt32LIST-A:          a/foo.txt33LIST-B:          b/foo.txt34 35# Nesting a thin archive with a name conflict.36RUN: rm -f a\nested.a b\nested.a nested.a37RUN: llvm-ar rcST a\nested.a a\foo.txt38RUN: llvm-ar rcST b\nested.a b\foo.txt39RUN: llvm-ar rcST nested.a a\nested.a foo.txt b\nested.a40RUN: llvm-ar t nested.a | FileCheck %s --check-prefix=NESTED --implicit-check-not {{.}}41 42NESTED:      a/foo.txt43NESTED-NEXT: foo.txt44NESTED-NEXT: b/foo.txt45