blob: 6bf4655f1daee4f17658a1dec856265a12b29b9b [file] [log] [blame]
Rafael Espindola34ac52d2013-07-12 20:21:39 +00001;RUN: rm -f %T/test.a
Rafael Espindola8fe960e2013-06-19 14:58:16 +00002;RUN: not llvm-ar r %T/test.a . 2>&1 | FileCheck %s
Rafael Espindola34ac52d2013-07-12 20:21:39 +00003;CHECK: .: Is a directory
Rafael Espindola4c275c32013-07-15 12:18:30 +00004;XFAIL: freebsd
Rafael Espindola122c57c2013-06-20 13:41:51 +00005
6;RUN: rm -f %T/test.a
7;RUN: touch %T/a-very-long-file-name
8;RUN: llvm-ar r %T/test.a %s %T/a-very-long-file-name
Rafael Espindolaeb729e02013-06-20 18:30:37 +00009;RUN: llvm-ar r %T/test.a %T/a-very-long-file-name
Rafael Espindola34ac52d2013-07-12 20:21:39 +000010;RUN: llvm-ar t %T/test.a | FileCheck -check-prefix=MEMBERS %s
Rafael Espindola122c57c2013-06-20 13:41:51 +000011;MEMBERS-NOT: /
Rafael Espindola122c57c2013-06-20 13:41:51 +000012;MEMBERS: directory.ll
Rafael Espindola34ac52d2013-07-12 20:21:39 +000013;MEMBERS: a-very-long-file-name
Rafael Espindolaeb729e02013-06-20 18:30:37 +000014;MEMBERS-NOT: a-very-long-file-name