[llvm] r186192 - Add a test for llvm-ar's u option.

David Dean david_dean at apple.com
Fri Jul 12 13:50:58 PDT 2013


AUX is a reserved device file name on windows. Users running windows will not be able to check out these files because of a system error. Please rename this directory to prevent problems for those folks using windows.

On 12 Jul 2013, at 12:34 PM, Rafael Espindola <rafael.espindola at gmail.com> wrote:

> Author: rafael
> Date: Fri Jul 12 14:34:24 2013
> New Revision: 186192
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=186192&view=rev
> Log:
> Add a test for llvm-ar's u option.
> 
> Added:
>    llvm/trunk/test/Object/Inputs/AUX/
>    llvm/trunk/test/Object/Inputs/AUX/evenlen
>    llvm/trunk/test/Object/archive-update.test
> 
> Added: llvm/trunk/test/Object/Inputs/AUX/evenlen
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Object/Inputs/AUX/evenlen?rev=186192&view=auto
> ==============================================================================
> --- llvm/trunk/test/Object/Inputs/AUX/evenlen (added)
> +++ llvm/trunk/test/Object/Inputs/AUX/evenlen Fri Jul 12 14:34:24 2013
> @@ -0,0 +1 @@
> +newer
> 
> Added: llvm/trunk/test/Object/archive-update.test
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Object/archive-update.test?rev=186192&view=auto
> ==============================================================================
> --- llvm/trunk/test/Object/archive-update.test (added)
> +++ llvm/trunk/test/Object/archive-update.test Fri Jul 12 14:34:24 2013
> @@ -0,0 +1,25 @@
> +Test the 'u' option of llvm-ar
> +
> +REQUIRES: shell
> +
> +RUN: cd %T
> +RUN: rm -f %t.a
> +
> +Create an achive with the newest file
> +RUN: llvm-ar r %t.a %p/Inputs/AUX/evenlen
> +RUN: llvm-ar p %t.a | FileCheck --check-prefix=NEWER %s
> +
> +Check that without the 'u' option the member is replaced with an older file.
> +RUN: llvm-ar r %t.a %p/Inputs/evenlen
> +RUN: llvm-ar p %t.a | FileCheck --check-prefix=OLDER %s
> +
> +Check that with the 'u' option the member is replaced with a newer file.
> +RUN: llvm-ar ru %t.a %p/Inputs/AUX/evenlen
> +RUN: llvm-ar p %t.a | FileCheck --check-prefix=NEWER %s
> +
> +Check that with the 'u' option the member is not replaced with an older file.
> +RUN: llvm-ar ru %t.a %p/Inputs/evenlen
> +RUN: llvm-ar p %t.a | FileCheck --check-prefix=NEWER %s
> +
> +NEWER: newer
> +OLDER: evenlen
> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

-David





More information about the llvm-commits mailing list