forked from OSchip/llvm-project
Move tests from test/Archive to test/Object.
There is no lib/Archive anymore and some archive tests were in test/Archive and others in test/Object. Since archive is just one of the formats supported by lib/Object, test/Object is probably the best location. llvm-svn: 186038
This commit is contained in:
parent
56f48d09f8
commit
3b5475c0f2
|
@ -1,24 +0,0 @@
|
|||
test/Regression/Archive
|
||||
=======================
|
||||
|
||||
This directory contains various tests of llvm-ar and to ensure
|
||||
compatibility reading other ar(1) formats. It also provides a basic
|
||||
functionality test for these tools.
|
||||
|
||||
There are four archives accompanying these tests:
|
||||
|
||||
GNU.a - constructed on Linux with GNU ar
|
||||
MacOSX.a - constructed on Mac OS X with its native BSD4.4 ar
|
||||
SVR4.a - constructed on Solaris with /usr/ccs/bin/ar
|
||||
xpg4.a - constructed on Solaris with /usr/xpg4/bin/ar
|
||||
|
||||
Each type of test is run on each of these archive files. These archives each
|
||||
contain four members:
|
||||
|
||||
oddlen - a member with an odd lengthed name and content
|
||||
evenlen - a member with an even lengthed name and content
|
||||
IsNAN.o - a Linux native binary
|
||||
very_long_bytecode_file_name.bc - LLVM bytecode file with really long name
|
||||
|
||||
These files test different aspects of the archiver that should cause failures
|
||||
in llvm-ar if regressions are introduced.
|
|
@ -1,16 +0,0 @@
|
|||
; This isn't really an assembly file, its just here to run the test.
|
||||
|
||||
; This test just makes sure that llvm-ar can extract bytecode members
|
||||
; from various style archives.
|
||||
|
||||
; RUN: llvm-ar p %p/GNU.a very_long_bytecode_file_name.bc | \
|
||||
; RUN: cmp -s %p/very_long_bytecode_file_name.bc -
|
||||
|
||||
; RUN: llvm-ar p %p/MacOSX.a very_long_bytecode_file_name.bc | \
|
||||
; RUN: cmp -s %p/very_long_bytecode_file_name.bc -
|
||||
|
||||
; RUN: llvm-ar p %p/SVR4.a very_long_bytecode_file_name.bc | \
|
||||
; RUN: cmp -s %p/very_long_bytecode_file_name.bc -
|
||||
|
||||
; RUN: llvm-ar p %p/xpg4.a very_long_bytecode_file_name.bc |\
|
||||
; RUN: cmp -s %p/very_long_bytecode_file_name.bc -
|
|
@ -1 +0,0 @@
|
|||
config.suffixes = ['.ll', '.c', '.cpp']
|
|
@ -1,4 +1,4 @@
|
|||
; This is not an assembly file, this is just to run the test.
|
||||
; The test verifies that llvm-ar produces a binary output.
|
||||
|
||||
;RUN: llvm-ar p %p/GNU.a very_long_bytecode_file_name.bc | cmp -s %p/very_long_bytecode_file_name.bc -
|
||||
;RUN: llvm-ar p %p/Inputs/GNU.a very_long_bytecode_file_name.bc | cmp -s %p/Inputs/very_long_bytecode_file_name.bc -
|
|
@ -0,0 +1,16 @@
|
|||
; This isn't really an assembly file, its just here to run the test.
|
||||
|
||||
; This test just makes sure that llvm-ar can extract bytecode members
|
||||
; from various style archives.
|
||||
|
||||
; RUN: llvm-ar p %p/Inputs/GNU.a very_long_bytecode_file_name.bc | \
|
||||
; RUN: cmp -s %p/Inputs/very_long_bytecode_file_name.bc -
|
||||
|
||||
; RUN: llvm-ar p %p/Inputs/MacOSX.a very_long_bytecode_file_name.bc | \
|
||||
; RUN: cmp -s %p/Inputs/very_long_bytecode_file_name.bc -
|
||||
|
||||
; RUN: llvm-ar p %p/Inputs/SVR4.a very_long_bytecode_file_name.bc | \
|
||||
; RUN: cmp -s %p/Inputs/very_long_bytecode_file_name.bc -
|
||||
|
||||
; RUN: llvm-ar p %p/Inputs/xpg4.a very_long_bytecode_file_name.bc |\
|
||||
; RUN: cmp -s %p/Inputs/very_long_bytecode_file_name.bc -
|
|
@ -1,7 +1,7 @@
|
|||
;This isn't really an assembly file, its just here to run the test.
|
||||
;This test just makes sure that llvm-ar can generate a table of contents for
|
||||
;GNU style archives
|
||||
;RUN: llvm-ar t %p/GNU.a | FileCheck %s
|
||||
;RUN: llvm-ar t %p/Inputs/GNU.a | FileCheck %s
|
||||
;CHECK: evenlen
|
||||
;CHECK-NEXT: oddlen
|
||||
;CHECK-NEXT: very_long_bytecode_file_name.bc
|
|
@ -1,7 +1,7 @@
|
|||
;This isn't really an assembly file, its just here to run the test.
|
||||
;This test just makes sure that llvm-ar can generate a table of contents for
|
||||
;MacOSX style archives
|
||||
;RUN: llvm-ar t %p/MacOSX.a | FileCheck %s
|
||||
;RUN: llvm-ar t %p/Inputs/MacOSX.a | FileCheck %s
|
||||
;CHECK: __.SYMDEF SORTED
|
||||
;CHECK-NEXT: evenlen
|
||||
;CHECK-NEXT: oddlen
|
|
@ -1,7 +1,8 @@
|
|||
;This isn't really an assembly file, its just here to run the test.
|
||||
;This test just makes sure that llvm-ar can generate a table of contents for
|
||||
;SVR4 style archives
|
||||
;RUN: llvm-ar t %p/SVR4.a | FileCheck %s
|
||||
;This archive was created on Solaris with /usr/ccs/bin/ar
|
||||
;RUN: llvm-ar t %p/Inputs/SVR4.a | FileCheck %s
|
||||
;CHECK: evenlen
|
||||
;CHECK-NEXT: oddlen
|
||||
;CHECK-NEXT: very_long_bytecode_file_name.bc
|
|
@ -1,7 +1,8 @@
|
|||
;This isn't really an assembly file, its just here to run the test.
|
||||
;This test just makes sure that llvm-ar can generate a table of contents for
|
||||
;xpg4 style archives
|
||||
;RUN: llvm-ar t %p/xpg4.a | FileCheck %s
|
||||
;This archive was created on Solaris with /usr/xpg4/bin/ar
|
||||
;RUN: llvm-ar t %p/Inputs/xpg4.a | FileCheck %s
|
||||
CHECK: evenlen
|
||||
CHECK-NEXT: oddlen
|
||||
CHECK-NEXT: very_long_bytecode_file_name.bc
|
Loading…
Reference in New Issue