lit: Add 'cd' support to the internal shell and port some tests
[oota-llvm.git] / test / Object / archive-format.test
1 Test the exact archive format. In particular, test which file names use the
2 string table or not.
3
4 RUN: mkdir -p %t
5 RUN: cd %t
6
7 RUN: echo bar > 0123456789abcde
8 RUN: echo zed > 0123456789abcdef
9
10 RUN: rm -f test.a
11 RUN: llvm-ar rc test.a 0123456789abcde 0123456789abcdef
12 RUN: cat test.a | FileCheck -strict-whitespace %s
13
14 CHECK:      !<arch>
15 CHECK-NEXT: //                                              18        `
16 CHECK-NEXT: 0123456789abcdef/
17 CHECK-NEXT: 0123456789abcde/{{................................}}4         `
18 CHECK-NEXT: bar
19 CHECK-NEXT: /0              {{................................}}4         `
20 CHECK-NEXT: zed