aboutsummaryrefslogtreecommitdiff
path: root/test/lib
AgeCommit message (Collapse)Author
2008-10-21Fix make check on Solaris 10/x86: the default grep is not GNU grep, same for as.Torok Edwin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57912 91177308-0d34-0410-b5e6-96231b3b80d8
2008-10-07add support for running the test suite with valgrind. to run it just type ↵Nuno Lopes
'make VG=1', as in clang beware of the 42000 leaks reported by valgrind in the Constant.cpp + Type.cpp files. it needs fixing IMHO git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57245 91177308-0d34-0410-b5e6-96231b3b80d8
2008-10-06Actually run Obj-C++ tests if llvm-gcc supports.Duncan Sands
Before there were two problems: (1) configure turned "obj-c++" into "obj" in the langs line; (2) the dejagnu library called it objc++ not obj-c++. Now the problem is that some of these tests don't pass! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57167 91177308-0d34-0410-b5e6-96231b3b80d8
2008-08-07Use correct compiler component names for objcDuncan Sands
and objc++. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54474 91177308-0d34-0410-b5e6-96231b3b80d8
2008-06-27Regression test for PR2443.Duncan Sands
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52826 91177308-0d34-0410-b5e6-96231b3b80d8
2008-06-21Turn off llvm-gcc warnings when running "make check".Duncan Sands
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52595 91177308-0d34-0410-b5e6-96231b3b80d8
2008-06-10Change llvm.exp so it no longer ignores some errors when executing dejagnuMatthijs Kooijman
tests. This breaks 80 tests in the tree. The interesting part here is that this no longer ignores syntax errors in RUN command lines. Some tests have not been working all the time because of this. The tricky part is that it now also views any stderr output as an error. This can be suppressed in tcl 8.5, but let's not add this dependency. Instead, all testcases should be changed to redirect stderr if they expect stderr output. This holds in particular for lines like: ; RUN: not llvm-as < %s where an error is expected (but I think I can solve this by modifying the not script). Also, compilations resulting in warnings will now also fail (so the warnings should be fixed, disabled or redirected...). I'll continue with fixing the testcases that are broken now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52172 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-23Fix tests due to llvm2cpp move to llc targetAnton Korobeynikov
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50191 91177308-0d34-0410-b5e6-96231b3b80d8
2008-03-25Byebye llvm-upgrade!Tanya Lattner
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48762 91177308-0d34-0410-b5e6-96231b3b80d8
2008-03-13Fix error in testing for END. notation.Tanya Lattner
Patch by Julien Lerouge. Thanks! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48342 91177308-0d34-0410-b5e6-96231b3b80d8
2008-03-10Fix PR2120 by changing the replacement order to change compile_cxx Chris Lattner
before compile_c. Patch by Joachim Durchholz! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48132 91177308-0d34-0410-b5e6-96231b3b80d8
2008-02-26While hunting for two hanging tests,Gabor Greif
(on solaris10, which are: CodeGen/PowerPC/frounds.ll Transforms/InstCombine/2008-02-23-MulSub.ll) I needed a tool to figure out which one is the guilty. To this end I have added a verbosity option to the test/Makefile. It can be invoked thus: gmake check TESTSUITE=CodeGen/PowerPC VERBOSE="-v -v" (The number of "-v"s specifies the verbosity level. Instead of "-v" other aliases can be specified, please consult the dejagnu docs for info.) At level >= 2 following line is logged for each test, before running it: ABOUT TO RUN: <test>.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47602 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-28Fix bug in regression tests that ignored stderr output in RUN lines. Updated ↵Tanya Lattner
tests and fixed broken run lines. XFAILed 3 arm regressions (will file bugs) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44389 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-06Implement the XTARGET feature for PR1778Tanya Lattner
This will mark a test as PASS for all targets specified. It will override whatever is in XFAIL. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43788 91177308-0d34-0410-b5e6-96231b3b80d8
2007-09-18Adding ocaml language bindings for the vmcore and bitwriter libraries. These areGordon Henriksen
built atop the C language bindings, and user programs can link with them as such: # Bytecode ocamlc -cc g++ llvm.cma llvmbitwriter.cma -o example example.ml # Native ocamlopt -cc g++ llvm.cmxa llvmbitwriter.cmxa -o example.opt example.ml The vmcore.ml test exercises most/all of the APIs thus far bound. Unfortunately, they're not yet numerous enough to write hello world. But: $ cat example.ml (* example.ml *) open Llvm open Llvm_bitwriter let _ = let filename = Sys.argv.(1) in let m = create_module filename in let v = make_int_constant i32_type 42 false in let g = define_global "hello_world" v m in if not (write_bitcode_file m filename) then exit 1; dispose_module m; $ ocamlc -cc g++ llvm.cma llvm_bitwriter.cma -o example example.ml File "example.ml", line 11, characters 6-7: Warning Y: unused variable g. $ ./example example.bc $ llvm-dis < example.bc ; ModuleID = '<stdin>' @hello_world = global i32 42 ; <i32*> [#uses=0] The ocaml test cases provide effective tests for the C interfaces. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42093 91177308-0d34-0410-b5e6-96231b3b80d8
2007-07-23The Ada f-e produces various auxiliary output filesDuncan Sands
that cannot be suppressed and cannot be redirected: they are dumped in the current working directory. When running the testsuite this means that these files do not end up in the Output directory. The best solution I could find is to change directory into Output before running tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40437 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-18Fix typo.Duncan Sands
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37224 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-23Dan is right, using "string first" would produce false positives. So,Reid Spencer
devolve the check to a comparison against each component in the string. Fortunately there isn't many of them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36376 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-22Fix the comparison of language names to accept any characters by usingReid Spencer
"string first" instead of "regexp match". This helps C++ tests get executed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36339 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-21Replace llvm_gcc_supports_ada and llvm_gcc_supports_objc with just a singleReid Spencer
llvm_gcc_supports function that takes the language as an argument. Base that function on the new LLVMGCC_LANGS configured variable so that we don't have to execute feature checks during the test run. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36322 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-21llvm-dg.exp is dead, remove it.Reid Spencer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36317 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-21Add the llvm_supports_target function.Reid Spencer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36314 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-21Test if the compiler supports Ada, and enable Ada tests if so. While I wasDuncan Sands
there, delete a temporary file the objc test forgot to delete. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36312 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-21Always print the same "PR" information in the same location (just afterReid Spencer
the test name) in all cases (PASS, XPASS, FAIL, XFAIL). This makes the output consistent and more amenable to parsing by nightly test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36311 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-21Put failure information on a separate line. Hopefully this unbreaks theReid Spencer
nightly tester which expects the FAIL: line to only have the test name on it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36310 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-20Enable Objective-C tests.Devang Patel
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36281 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-16Spelling fix.Duncan Sands
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36165 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-16Change ne into !=.Duncan Sands
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36135 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-15Two changes:Reid Spencer
1. Don't bother truncating reading of the file. It doesn't save that much time and we should support putting RUN lines anywhere in the file. For example, someone might want to put the grep match before each function in the test file which would sprinkle the RUN: lines throughout the file. 2. Fix a bug with llvmgcc version match .. global var wasn't declared as such git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36085 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-15Some tests have really long RUN line sets. Read the first 4096 bytes insteadReid Spencer
of 1024. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36083 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-15Allow lines that have \ and end in \ to be recognized as ending in \Reid Spencer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36074 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-15Two improvements:Reid Spencer
1. Only read the first 1024 bytes of the file. The RUN: lines should all be within that amount of space. This keeps I/O costs down when reading very large files. 2. Print PR numbers with a PR prefix so it is clear what they are. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36071 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-15No, don't cancel all remaining tests, just the one that failed!Reid Spencer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36057 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-15Abandone the entire test case on the first error.Reid Spencer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36056 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-15Allow replacement of %% with %Reid Spencer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36044 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-14Changes to fix problems with "make check". Apparently you can redefineReid Spencer
functions and Tcl's just tickled with that. The fix is to give the "new" test system a different interface function name. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36022 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-14For PR1319:Reid Spencer
More improvements: 1. Using ::errorInfo wasn't such a hot idea. Go back to just printing the offending line of code and the stderr output. This is sufficient and not entangled with Tcl goop. 2. Capture the problem report numbers and report them whether pass or fail. This helps quickly get some context when a test fails, if it has an associated PR number. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36010 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-141. Don't generate redundant copy of stderrReid Spencer
2. Only match \ at the *end* of a line. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36007 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-14Print full errorInfo when a failure occurs.Reid Spencer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35999 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-14Add the line number where the script failed to the error output.Reid Spencer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35994 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-14Initial version of a re-write of llvm-runtest that doesn't write theReid Spencer
tests to a script file but executes each line individually and catches errors on each line too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35986 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-12Make the shlibext and llvmlibsdir variables accessible.Reid Spencer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35939 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-11Make new variables available: compile_c, compile_cxx, link to handle testsReid Spencer
that want to use LLVM's notion of compiling and linking programs. This includes all the -I -L and optimization switches that LLVM would using to compile or link any of this files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35920 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-11Make the llvm-runtest function much more amenable by eliminating all theReid Spencer
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
2007-04-11Update the way llvm2cpp tests are done:Reid Spencer
1. Make sure bytecode/assembly inputs are always redirected stdin so that the module name is <stdin>. This helps not get false negatives when the diff is done. 2. Scan the test file to determine if llvm-upgrade needs to be run. 3. Avoid running testings that are XFAIL'd because they'll cause a failure when run for llvm2cpp. 4. Get some better error message output. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35914 91177308-0d34-0410-b5e6-96231b3b80d8
2006-06-01No, libLLVMbzip2 does not have a .a suffix.Reid Spencer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28624 91177308-0d34-0410-b5e6-96231b3b80d8
2006-06-01Fix gcc command line options after LLVMCore and LLVMbzip2 became archiveReid Spencer
libraries. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28623 91177308-0d34-0410-b5e6-96231b3b80d8
2006-05-301. No need to thwart this test with an environment variable. Turning it offReid Spencer
is the default and handled by the makefile system and runtest 2. Redirect stderr of llvm-as and llvm2cpp so that warning messages about instrinsics don't cause Tcl to report the run as failed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28576 91177308-0d34-0410-b5e6-96231b3b80d8
2006-05-29Fix a bug with diffing the wrong files. Make output more readable.Reid Spencer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28542 91177308-0d34-0410-b5e6-96231b3b80d8
2006-05-28Fix a problem where dejagnu won't accept the value of global tcl variableReid Spencer
"libdir" for some reason. Changing to llvmlibsdir instead fixes it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28526 91177308-0d34-0410-b5e6-96231b3b80d8