1 Test the 'u' option of llvm-ar
8 Create a file named evenlen that is newer than the evenlen on the source dir.
10 RUN: echo newer > %t.dir/evenlen
12 Create an achive with the newest file
13 RUN: llvm-ar r %t.a %t.dir/evenlen
14 RUN: llvm-ar p %t.a | FileCheck --check-prefix=NEWER %s
16 Check that without the 'u' option the member is replaced with an older file.
17 RUN: llvm-ar r %t.a %p/Inputs/evenlen
18 RUN: llvm-ar p %t.a | FileCheck --check-prefix=OLDER %s
20 Check that with the 'u' option the member is replaced with a newer file.
21 RUN: llvm-ar ru %t.a %t.dir/evenlen
22 RUN: llvm-ar p %t.a | FileCheck --check-prefix=NEWER %s
24 Check that with the 'u' option the member is not replaced with an older file.
25 RUN: llvm-ar ru %t.a %p/Inputs/evenlen
26 RUN: llvm-ar p %t.a | FileCheck --check-prefix=NEWER %s