summaryrefslogtreecommitdiff
path: root/test/lit.cfg
Commit message (Collapse)AuthorAge
* Remove llvm-ld and llvm-stub (which is only used by llvm-ld).Michael J. Spencer2012-04-19
| | | | | | | | | | | | | | | | llvm-ld is no longer useful and causes confusion and so it is being removed. * Does not work very well on Windows because it must call a gcc like driver to assemble and link. * Has lots of hard coded paths which are wrong on many systems. * Does not understand most of ld's options. * Can be partially replaced by llvm-link | opt | {llc | as, llc -filetype=obj} | ld, or fully replaced by Clang. I know of no production use of llvm-ld, and hacking use should be replaced by Clang's driver. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155147 91177308-0d34-0410-b5e6-96231b3b80d8
* Catch the Python exception when subprocess.Popen is failing.Sylvestre Ledru2012-04-13
| | | | | | | | | | For example, if llc cannot be found, the full python stacktrace is displayed and no interesting information are provided. + fail the process when an exception occurs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154665 91177308-0d34-0410-b5e6-96231b3b80d8
* Continue cleanup of LIT, getting rid of the remaining artifacts from dejagnuEli Bendersky2012-03-25
| | | | | | | | | | | | | | | | | | * Removed test/lib/llvm.exp - it is no longer needed * Deleted the dg.exp reading code from test/lit.cfg. There are no dg.exp files left in the test suite so this code is no longer required. test/lit.cfg is now much shorter and clearer * Removed a lot of duplicate code in lit.local.cfg files that need access to the root configuration, by adding a "root" attribute to the TestingConfig object. This attribute is dynamically computed to provide the same information as was previously provided by the custom getRoot functions. * Documented the config.root attribute in docs/CommandGuide/lit.pod git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153408 91177308-0d34-0410-b5e6-96231b3b80d8
* Replace all instances of dg.exp file with lit.local.cfg, since all tests are ↵Eli Bendersky2012-02-16
| | | | | | | | | | | 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
* Adding a basic ELF dynamic loader and MC-JIT for ELF. Functionality is ↵Eli Bendersky2012-01-16
| | | | | | | | | | currently basic and will be enhanced with future patches. Patch developed by Andy Kaylor and Daniel Malea. Reviewed on llvm-commits. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148231 91177308-0d34-0410-b5e6-96231b3b80d8
* test/lit.cfg: Enable the feature 'asserts' to check output of llc -version.NAKAMURA Takumi2011-11-28
| | | | | | | llc knows whether he is compiled with -DNDEBUG. | Optimized build with assertions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145230 91177308-0d34-0410-b5e6-96231b3b80d8
* Update lit's list of tools.Benjamin Kramer2011-11-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143815 91177308-0d34-0410-b5e6-96231b3b80d8
* tests: Rip out a bunch of now unused test code relating to use of llvm-gcc ↵Daniel Dunbar2011-10-27
| | | | | | in LLVM tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143143 91177308-0d34-0410-b5e6-96231b3b80d8
* s/tblgen/llvm-tblgen/g in a few missed places, including the testsPeter Collingbourne2011-10-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141294 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix PR9833/PR11054 (patch provided by Patrik Hägglund)David Dean2011-10-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141092 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove llvm-gcc and various compiler handling from llvm. It's not neededEric Christopher2011-09-20
| | | | | | here anymore and has been migrated to the test-suite project. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140216 91177308-0d34-0410-b5e6-96231b3b80d8
* Lit option for ignoring stderr output.Andrew Trick2011-08-30
| | | | | | | | | This is useful for testing a build a temporarily hand instrumented build. Patch by arrowdodger! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138804 91177308-0d34-0410-b5e6-96231b3b80d8
* lit support for REQUIRES: asserts.Andrew Trick2011-06-22
| | | | | | | | | | | Take #2. Don't piggyback on the existing config.build_mode. Instead, define a new lit feature for each build feature we need (currently just "asserts"). Teach both autoconf'd and cmake'd Makefiles to define this feature within test/lit.site.cfg. This doesn't require any lit harness changes and should be more robust across build systems. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133664 91177308-0d34-0410-b5e6-96231b3b80d8
* test/lit.cfg: Add PATHEXT to 'substitution', to recognize tools on Windows ↵NAKAMURA Takumi2011-02-24
| | | | | | | | hosts. Thanks to Danil Malyshev! Some tests on Windows use the "not" utility and fail with an error "program not executable". The reason for this error is that the name of the executable file sended to the "not" without the extension. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126383 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed lit.cfg to no longer recognize the oldSean Callanan2011-02-22
| | | | | | | | edis name as needing expansion. This tool was been replaced by llvm-mc long ago. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126180 91177308-0d34-0410-b5e6-96231b3b80d8
* test/lit.cfg: Seek sane tools(and bash) in directories and set to $PATH.NAKAMURA Takumi2011-02-09
| | | | | | LitConfig.getBashPath() will not seek in $PATH after LitConfig.getToolsPath() was executed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125176 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix lit for people whose LLVM path contains 'opt', which is a common ↵Frits van Bommel2011-01-05
| | | | | | directory name on Unix-like systems. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122873 91177308-0d34-0410-b5e6-96231b3b80d8
* Include llvm-gcc dir before llvm_tools_dirTobias Grosser2011-01-04
| | | | | | This ensures that always the recently compiled tools are picked for testing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122810 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't pattern match "/clang" so we don't mangle directory names. SomeDavid Greene2011-01-04
| | | | | | | tests use absolute paths to clang. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122796 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't pattern match "clang-" as it may be part of a tool name with aDavid Greene2011-01-03
| | | | | | | triple suffix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122779 91177308-0d34-0410-b5e6-96231b3b80d8
* Reapply 122341 to fix PR8199 now that clang changes are in.David Greene2011-01-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122754 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert 122341. It breaks some darwin tests.David Greene2010-12-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122346 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix PR 8199. This patch prepends the build tool dir to LLVM programsDavid Greene2010-12-21
| | | | | | | | | being tested. This ensures that we test the tools just built and not some random tools that might happen to be in the user's PATH. This makes LLVM testing much more stable and predictable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122341 91177308-0d34-0410-b5e6-96231b3b80d8
* test: Add the feature 'shell' on LLVM_ON_UNIX.NAKAMURA Takumi2010-12-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121104 91177308-0d34-0410-b5e6-96231b3b80d8
* Test: Fix Support.Path and _all_ of the unittest death tests. GetTempPath ↵Michael J. Spencer2010-12-07
| | | | | | | | defaults to \Windows\. If I typed anything else it would just decline into cursing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121095 91177308-0d34-0410-b5e6-96231b3b80d8
* test: Use $SharedLibDir for loadable modules. On Cygming, loadable modules ↵NAKAMURA Takumi2010-11-29
| | | | | | are not in lib/ but bin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120274 91177308-0d34-0410-b5e6-96231b3b80d8
* test: Add the new feature 'loadable_module'.NAKAMURA Takumi2010-11-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120273 91177308-0d34-0410-b5e6-96231b3b80d8
* Use LLVMCC_EMITIR_FLAG rather than hard-coding "-emit-llvm".Duncan Sands2010-11-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120156 91177308-0d34-0410-b5e6-96231b3b80d8
* Spelling fixes in comments.Duncan Sands2010-09-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113746 91177308-0d34-0410-b5e6-96231b3b80d8
* Test: Fix LLVMC tests on CMake.Michael J. Spencer2010-08-30
| | | | | | The CMake build didn't define TEST_COMPILE_CXX_CMD. The tests assumed gcc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112480 91177308-0d34-0410-b5e6-96231b3b80d8
* The %ocamlopt setting has embedded quotes. Copy the entire value insteadBob Wilson2010-08-20
| | | | | | | of stopping at the first embedded quote. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111622 91177308-0d34-0410-b5e6-96231b3b80d8
* tests: Haste makes waste.Daniel Dunbar2010-08-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111525 91177308-0d34-0410-b5e6-96231b3b80d8
* tests: Ignore whitespace in llvm_supports_binding() and llvm_gcc_supports().Daniel Dunbar2010-08-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111524 91177308-0d34-0410-b5e6-96231b3b80d8
* tests: Don't error out if HOME isn't present in t the environment.Daniel Dunbar2010-08-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110711 91177308-0d34-0410-b5e6-96231b3b80d8
* tests: Tweak lit.cfg to fix breakage with out-of-dir lookup.Daniel Dunbar2010-06-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106638 91177308-0d34-0410-b5e6-96231b3b80d8
* tests: Propogate LLVM_SRC_ROOT and PYTHON_EXECUTABLE environment variables ↵Daniel Dunbar2010-06-12
| | | | | | to tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105890 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for XFAILing valgrind runs with memory leak checking independentlyJeffrey Yasskin2010-03-20
| | | | | | | | | | of runs without leak checking. We add -vg to the triple for non-checked runs, or -vg_leak for checked runs. Also use this to XFAIL the TableGen tests, since tablegen leaks like a sieve. This includes some valgrindArgs refactoring. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99103 91177308-0d34-0410-b5e6-96231b3b80d8
* tests: Mangle '-vg' onto the end of the triple when running under valgrind, soDaniel Dunbar2010-03-20
| | | | | | | we can use the standard XFAIL and XTARGET to conditional tests based on valgrind. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99088 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert r97726 and r97728 at ddunbar's request; we want to solve thisJohn McCall2010-03-08
| | | | | | | | some other way when it comes to be necessary. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97972 91177308-0d34-0410-b5e6-96231b3b80d8
* Teach lit to honor conditional directives. The syntax is:John McCall2010-03-04
| | | | | | | | | | | | | | | | | | IF(condition(value)): If the value satisfies the condition, the line is processed by lit; otherwise it is skipped. A test with no unignored directives is resolved as Unsupported. The test suite is responsible for defining conditions; conditions are unary functions over strings. I've defined two conditions in the LLVM test suite, TARGET (with values like those in TARGETS_TO_BUILD) and BINDING (with values like those in llvm_bindings). So for example you can write: IF(BINDING(ocaml)): RUN: %blah %s -o - and the RUN line will only execute if LLVM was configured with the ocaml bindings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97726 91177308-0d34-0410-b5e6-96231b3b80d8
* tests: Propogate the HOME environment variable through to tests. I'm ambivalentDaniel Dunbar2010-02-25
| | | | | | | about this, but it can be useful for users who use ccache, since the LLVMC tests are fond of calling gcc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97171 91177308-0d34-0410-b5e6-96231b3b80d8
* tests: Don't make a missing llvm-gcc dir a fatal error.Daniel Dunbar2010-02-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96938 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a thinko in the lit.cfg.Daniel Dunbar2010-02-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96931 91177308-0d34-0410-b5e6-96231b3b80d8
* Get the LLVMC tests working with clang++ by removing the problematic CXXFLAG ↵Benjamin Kramer2010-02-04
| | | | | | in lit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95318 91177308-0d34-0410-b5e6-96231b3b80d8
* MCAssembler/Darwin: Add a test (on Darwin) that we assemble a bunch ofDaniel Dunbar2010-02-02
| | | | | | instructions exactly like 'as', and produce equivalent .o files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95143 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix llvm_supports_binding for lit, problem noticed by Bob!Daniel Dunbar2010-01-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93591 91177308-0d34-0410-b5e6-96231b3b80d8
* CMake/lit: Add llvm_{unit_,}site_config parameters, and always pass them ↵Daniel Dunbar2009-12-08
| | | | | | when running tests from the project files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90869 91177308-0d34-0410-b5e6-96231b3b80d8
* Derive the right paths to use during testing instead of passing it in via make.Daniel Dunbar2009-11-08
| | | | | | | | Also, fix a few other details of the cmake test target and rename it to 'check'. CMake tests now work for the most part, but there are a handful of failures left due to missing site.exp bits. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86452 91177308-0d34-0410-b5e6-96231b3b80d8
* Add missing substitution for %llvmgcc_only.Daniel Dunbar2009-10-30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85614 91177308-0d34-0410-b5e6-96231b3b80d8
* tests: Add llvm_supports_binding predicate.Daniel Dunbar2009-09-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81664 91177308-0d34-0410-b5e6-96231b3b80d8