aboutsummaryrefslogtreecommitdiffstats
path: root/test/Archive
Commit message (Collapse)AuthorAgeFilesLines
* Move tests from test/Archive to test/Object.Rafael Espindola2013-07-1017-92/+0
| | | | | | | | 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186038 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix an ordering problem in the test.Manuel Klimek2013-06-211-1/+1
| | | | | | | | | The output can be in different orders, which breaks the test in some situations. I have not yet found out what the root cause of the order difference is. This fixes our internal build. If it is not the right solution, feel free to roll back. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184535 91177308-0d34-0410-b5e6-96231b3b80d8
* Use only the filename when deciding if a file is a duplicate.Rafael Espindola2013-06-201-0/+2
| | | | | | Matches gnu ar behavior. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184448 91177308-0d34-0410-b5e6-96231b3b80d8
* Add r184420 back, but also handle long file names.Rafael Espindola2013-06-201-0/+8
| | | | | | | | | | Original message: Don't include directory names in archives. This matches the behavior of both gnu and os x versions of ar. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184423 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert "Don't include directory names in archives."Rafael Espindola2013-06-201-6/+0
| | | | | | | This reverts commit 184420. Investigating the bot failures. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184421 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't include directory names in archives.Rafael Espindola2013-06-201-0/+6
| | | | | | This matches the behavior of both gnu and os x versions of ar. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184420 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove the 'R' modifier.Rafael Espindola2013-06-191-0/+2
| | | | | | | It is not present in GNU or OS X versions and doesn't make a lot of sense for llvm-ar. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184306 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove the LLVM specific archive index.Rafael Espindola2013-06-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Archive files (.a) can have a symbol table indicating which object files in them define which symbols. The purpose of this symbol table is to speed up linking by allowing the linker the read only the .o files it is actually going to use instead of having to parse every object's symbol table. LLVM's archive library currently supports a LLVM specific format for such table. It is hard to see any value in that now that llvm-ld is gone: * System linkers don't use it: GNU ar uses the same plugin as the linker to create archive files with a regular index. The OS X ar creates no symbol table for IL files, I assume the linker just parses all IL files. * It doesn't interact well with archives having both IL and native objects. * We probably don't want to be responsible for yet another archive format variant. This patch then: * Removes support for creating and reading such index from lib/Archive. * Remove llvm-ranlib, since there is nothing left for it to do. We should in the future add support for regular indexes to llvm-ar for both native and IL objects. When we do that, llvm-ranlib should be reimplemented as a symlink to llvm-ar, as it is equivalent to "ar s". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184019 91177308-0d34-0410-b5e6-96231b3b80d8
* Replace all instances of dg.exp file with lit.local.cfg, since all tests are ↵Eli Bendersky2012-02-162-3/+1
| | | | | | | | | | | run with LIT now and now Dejagnu. dg.exp is no longer needed. Patch reviewed by Daniel Dunbar. It will be followed by additional cleanup patches. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150664 91177308-0d34-0410-b5e6-96231b3b80d8
* Avoid writing to an arbitrary filename during the test run by writing toChandler Carruth2011-07-021-8/+8
| | | | | | a file descriptor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134355 91177308-0d34-0410-b5e6-96231b3b80d8
* Many LLVM tests relies on standard output stream be in the binary mode. ↵Galina Kistanova2011-05-051-0/+4
| | | | | | Which is not always the case (on Windows in particular). The patch adds a test to verify that the standard output stream is actually in the binary mode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130936 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert test/Archive/check_binary_output.ll". It fails on a buildbot.NAKAMURA Takumi2010-12-071-4/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121113 91177308-0d34-0410-b5e6-96231b3b80d8
* test/Archive/check_binary_output.ll: Add a new test to check output of ↵NAKAMURA Takumi2010-12-071-0/+4
| | | | | | 'llvm-ar -p' is sane. Thanks to Danil Malyshev! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121106 91177308-0d34-0410-b5e6-96231b3b80d8
* test/Archive/extract.ll: Use cmp instead of diff. Thanks to Danil Malyshev!NAKAMURA Takumi2010-12-021-4/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120698 91177308-0d34-0410-b5e6-96231b3b80d8
* test/Archive: FileCheck-ize, and remove *.toc. These may be CRLF-tolerant.NAKAMURA Takumi2010-12-018-25/+21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120506 91177308-0d34-0410-b5e6-96231b3b80d8
* These tests are no longer stored in *CVS*.Dan Gohman2010-08-041-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110201 91177308-0d34-0410-b5e6-96231b3b80d8
* fix a broken archive that was breaking dejagnu only (not lit)Chris Lattner2010-02-041-0/+0
| | | | | | | after r95292 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95296 91177308-0d34-0410-b5e6-96231b3b80d8
* From PR6228:Chris Lattner2010-02-041-0/+0
| | | | | | | | | | | | | "Attached patch removes the extra NUL bytes from the output and changes test/Archive/MacOSX.toc from a binary to a text file (removes svn:mime-type=application/octet-stream and adds svn:eol-style=native). I can't figure out how to get SVN to include the new contents of the file in the patch so I'm attaching it separately." Patch by James Abbatiello! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95292 91177308-0d34-0410-b5e6-96231b3b80d8
* Merge Archive/extract* tests into one; this avoids a race when tests are run inDaniel Dunbar2009-09-085-23/+16
| | | | | | parallel (the test should really use temps for the output, though). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81287 91177308-0d34-0410-b5e6-96231b3b80d8
* sabre brings to my attention that the 'tr' suffix is also obsoleteGabor Greif2008-05-201-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51349 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename the last test with .llx extension to .ll, resolve duplicate test by ↵Gabor Greif2008-05-201-1/+1
| | | | | | renaming to isnan2. Now that no test has llx ending there is no need to search for them from dg.exp too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51328 91177308-0d34-0410-b5e6-96231b3b80d8
* Delete the svn:executable property on these files, which aren't executable.Dan Gohman2007-07-231-0/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40441 91177308-0d34-0410-b5e6-96231b3b80d8
* Convert .cvsignore filesJohn Criswell2007-06-291-3/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37801 91177308-0d34-0410-b5e6-96231b3b80d8
* This needs to stay in the old bytecode format.Reid Spencer2007-04-161-0/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36113 91177308-0d34-0410-b5e6-96231b3b80d8
* This tests aren't particularly interesting. They are redundant with theReid Spencer2007-04-165-34/+0
| | | | | | | | extract_* tests. They are also perniciously difficult to maintain because they depend on the bytecode format. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36112 91177308-0d34-0410-b5e6-96231b3b80d8
* Update for 2.0 bytecode format.Reid Spencer2007-04-161-0/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36111 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR1336:Reid Spencer2007-04-154-1/+4
| | | | | | | XFAIL tests covered by the PR. These will be un-XFAILed as they are fixed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36093 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR1319: Upgrade to new test harness.Reid Spencer2007-04-151-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36091 91177308-0d34-0410-b5e6-96231b3b80d8
* Make the llvm-runtest function much more amenable by eliminating all theReid Spencer2007-04-111-1/+1
| | | | | | | | | global variables that needed to be passed in. This makes it possible to add new global variables with only a couple changes (Makefile and llvm-dg.exp) instead of touching every single dg.exp file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35918 91177308-0d34-0410-b5e6-96231b3b80d8
* Added the ability to xfail based on llvmgcc versionTanya Lattner2006-04-121-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27635 91177308-0d34-0410-b5e6-96231b3b80d8
* Tired of wading through cvs's list ? files that are generated when buildingReid Spencer2006-03-231-0/+3
| | | | | | | | | with srcdir = objdir to see what's okay and what's cruft. So, in goes a bunch of .cvsignore files to shut cvs up about known output from running "make check". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27009 91177308-0d34-0410-b5e6-96231b3b80d8
* Apparently these do pass on some alphasChris Lattner2005-10-313-3/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24125 91177308-0d34-0410-b5e6-96231b3b80d8
* these tests fail on alpha for some reasonChris Lattner2005-10-313-0/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24120 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't depend on grep or sed to be portable at all. Just compare againstReid Spencer2004-11-278-36/+6
| | | | | | | static test files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18271 91177308-0d34-0410-b5e6-96231b3b80d8
* Put the expected tables of contents of the test archives into separateReid Spencer2004-11-274-0/+12
| | | | | | | files so we don't have to process them at test time at all. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18270 91177308-0d34-0410-b5e6-96231b3b80d8
* Use grep instead of sed because on Solaris sed doesn't copy null bytes andReid Spencer2004-11-278-6/+6
| | | | | | | it needs to in order for the bug in MacOSX archives to be tested correctly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18269 91177308-0d34-0410-b5e6-96231b3b80d8
* Accommodate the braindead Solaris "diff" that doesn't understand the -qReid Spencer2004-11-274-4/+4
| | | | | | | option. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18268 91177308-0d34-0410-b5e6-96231b3b80d8
* Make sure output goes in the temporary/output directory.Reid Spencer2004-11-224-9/+9
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18096 91177308-0d34-0410-b5e6-96231b3b80d8
* * Undo previous commit that breaks the test.Reid Spencer2004-11-213-4/+6
| | | | | | | | | | | | * Correct the test to work when srcdir == objdir. NOTE: Since multiple tests run from the same source archive and llvm-ranlib changes the archive, these tests MUST work on a copy of the archive or else this test corrupts the archive file subsequent tests or subsequent runs of the test suite. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18094 91177308-0d34-0410-b5e6-96231b3b80d8
* * Undo previous commit that breaks the test.Reid Spencer2004-11-211-2/+3
| | | | | | | | | | | | * Correct the test to work when srcdir == objdir. NOTE: Since multiple tests run from the same source archive and llvm-ranlib changes the archive, these tests MUST work on a copy of the archive or else this test corrupts the archive file subsequent tests or subsequent runs of the test suite. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18093 91177308-0d34-0410-b5e6-96231b3b80d8
* Test archive built with GNU ar(1).Reid Spencer2004-11-211-0/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18076 91177308-0d34-0410-b5e6-96231b3b80d8
* Removing unnecessary copies. Use %p to reference them.Tanya Lattner2004-11-203-9/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18059 91177308-0d34-0410-b5e6-96231b3b80d8
* An llvm-ar test.Reid Spencer2004-11-2012-0/+89
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18043 91177308-0d34-0410-b5e6-96231b3b80d8
* Provide the srcdir variable.Reid Spencer2004-11-201-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18042 91177308-0d34-0410-b5e6-96231b3b80d8
* Describe the Archive test suite.Reid Spencer2004-11-201-0/+24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18041 91177308-0d34-0410-b5e6-96231b3b80d8
* Contents separated into individual tests.Reid Spencer2004-11-203-30/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18040 91177308-0d34-0410-b5e6-96231b3b80d8
* Test case for reading MacOSX archives.Reid Spencer2004-11-191-0/+10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18014 91177308-0d34-0410-b5e6-96231b3b80d8
* MacOSX test archive (buggy).Reid Spencer2004-11-191-0/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18013 91177308-0d34-0410-b5e6-96231b3b80d8
* Make sure we can read an archive after it has been ranlib'dReid Spencer2004-11-192-1/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18000 91177308-0d34-0410-b5e6-96231b3b80d8
* Test case for xpg4 style archive files.Reid Spencer2004-11-191-0/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17984 91177308-0d34-0410-b5e6-96231b3b80d8