Rafael Espindola | 8fe960e | 2013-06-19 14:58:16 +0000 | [diff] [blame] | 1 | ;RUN: not llvm-ar r %T/test.a . 2>&1 | FileCheck %s |
| 2 | ;CHECK: . Is a directory |
Rafael Espindola | 122c57c | 2013-06-20 13:41:51 +0000 | [diff] [blame] | 3 | |
| 4 | ;RUN: rm -f %T/test.a |
| 5 | ;RUN: touch %T/a-very-long-file-name |
| 6 | ;RUN: llvm-ar r %T/test.a %s %T/a-very-long-file-name |
Rafael Espindola | eb729e0 | 2013-06-20 18:30:37 +0000 | [diff] [blame] | 7 | ;RUN: llvm-ar r %T/test.a %T/a-very-long-file-name |
Manuel Klimek | bc735ec | 2013-06-21 07:23:14 +0000 | [diff] [blame] | 8 | ;RUN: llvm-ar t %T/test.a | sort | FileCheck -check-prefix=MEMBERS %s |
Rafael Espindola | 122c57c | 2013-06-20 13:41:51 +0000 | [diff] [blame] | 9 | ;MEMBERS-NOT: / |
| 10 | ;MEMBERS: a-very-long-file-name |
| 11 | ;MEMBERS: directory.ll |
Rafael Espindola | eb729e0 | 2013-06-20 18:30:37 +0000 | [diff] [blame] | 12 | ;MEMBERS-NOT: a-very-long-file-name |