aboutsummaryrefslogtreecommitdiff
path: root/utils
AgeCommit message (Collapse)Author
2009-07-29MultiTestRunner: Reenable --vg option.Daniel Dunbar
- Simplified from before and using --error-exitcode so failures show up as failures. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77424 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-28Only generate preprocessed files during crashes using Clang, not GCC.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77281 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-27Add scan-build support for 'plist-html', a hybrid mode that supports theTed Kremenek
creation of both HTML and plist files. Plist files are currently not generated using the same layout algorithm as just specifying '-plist', so this is mainly intended to help support automated runs of the analyzer. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77263 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-27Tweak MultiTestRunner --path argument.Daniel Dunbar
- Accept multiple values instead of embedding separator. - Make sure this gets used when searching for 'clang' binary. - Switch makefiles to using --path to stay in sync with cmake. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77234 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25MultiTestRunner: Make sure to point at src dir, for out of tree builds.Daniel Dunbar
Factor out routine for executing the script commands. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77075 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25MultiTestRunner: Cleanup test execution & output.Daniel Dunbar
- Stop writing everything to files. - Make test output more standard. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77074 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25MultiTestRunner: Drop external script and DejaGNU compatibility options for now.Daniel Dunbar
- We don't use the former, and the latter doesn't actually work. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77073 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25MultiTestRunner: Disable valgrind support for now, I don't feel like maintainingDaniel Dunbar
it currently. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77072 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25MultiTestRunner/Win32: Add SYSTEMROOT to environment, replace '&&' in .batDaniel Dunbar
files. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77071 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25Make having no RUN line a failure.Daniel Dunbar
Doug, please look at decltype-crash and instantiate-function-1.mm, I'm not sure if they are actually testing the right thing / anything. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77070 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25Remove this Makefile, it is unused.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77067 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25MultiTestRunner: Oops, clang wasn't being substituted properly. This is why theDaniel Dunbar
cxx-using-declaration test case started exhibiting different behavior. It still needs to be fixed, however... git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77066 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25MultiTestRunner: Always use absolute path names for tests.Daniel Dunbar
Also, fix a function name I forgot to update. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77064 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25MultiTestRunner: Validate '&&' at the end of RUN lines.Daniel Dunbar
- This is just to normalize, these will go away soon hopefully. Added all the missing '&&'s that have crept in. :) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77062 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25MultiTestRunner: Explicitly define child environment, the only variable we needDaniel Dunbar
to import is the PATH. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77061 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25MultiTestRunner.py improvements.Daniel Dunbar
- Tweak output directories for temp files, derive the temporary base from the test's parent directory name, and the test name (instead of the whole path). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77059 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25MultiTestRunner.py improvements.Daniel Dunbar
- Not improved: the horribly lousy name. :) - Suppress stderr when capturing output. - Rewrite which() to do the right PATH search instead of being lazy and shelling out to 'which'. - On Windows, run scripts as batch files (via 'cmd /c ...'). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77058 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25Whoops, did not mean to check this in.Anders Carlsson
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77022 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25More work on the constant struct builder. We now try to layout all constant ↵Anders Carlsson
structs but throw away the result. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77021 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-24Enable the '-warn-security-syntactic' checker option by default.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76933 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-17Remove bogus check.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76259 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-17Add error message when clang-cc cannot be found.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76256 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-16Add extra print for --time-tests output.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76104 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-13Make stdin for test scripts empty, so that tests don't accidentally hang waitingDaniel Dunbar
for stdin. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75506 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-11Add --time-tests option to test runner, for profiling 'make test'.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75396 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-11restore proper valgrind support.Nuno Lopes
disclaim: I know nothing about Python, so apologies in advance if I break something git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75368 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-10Use /usr/bin/env trick to find python. Patch by Krister Walfridsson.Eli Friedman
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75271 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-06Having tests that depend on previously created files is bad idea. Fix them ↵Argyrios Kyrtzidis
to be self-sufficient. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74810 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-05Make use of the Index library through the index-test tool.Argyrios Kyrtzidis
'index-test' is now able to provide additional info for a Decl, through multiple AST files: -Find declarations -Find definitions -Find references git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74803 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-02Revert prev commit, we have much bigger problems because 2.3 is missingDaniel Dunbar
the subprocess module. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74738 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-02Avoid @staticmethod to allow use with Python 2.3.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74737 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-17Testing improvements:Daniel Dunbar
- Make python test runner force COLUMNS=0 to increase determinism. - Substitute clang-cc as we do for clang. - Improved detection of Ctrl-C. - Honor CLANG and CLANGCC environment variables. - Add proper command line arguments to TestRunner.py (see --help) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73640 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-16If any tests fail, the test runner returns a status code of 1Douglas Gregor
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73584 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-16Update Clang to include the InitializeAllTargets andDouglas Gregor
InitializeAllAsmPrinters LLVM headers. Also includes some minor fixes for the CMake-based build with Xcode. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73544 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-05Switch CMake testing over to use Daniels new(er) Python-based infrastructure.Douglas Gregor
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72977 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-30Refactor and clean up the AST printer, so that it uses a DeclVisitor,Douglas Gregor
walks through DeclContexts properly, and prints more of the information available in the AST. The functionality is still available via -ast-print, -ast-dump, etc., and also via the new member functions Decl::dump() and Decl::print(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72597 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-25Minor build system changes to make ABITest work correctly on Linux.Eli Friedman
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72405 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-25Some minor corrections: don't use offsetof on a bitfield, and cast Eli Friedman
printf operands to long to suppress warnings. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72404 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-15Add hack to scan-build to fix PR 4215Ted Kremenek
(http://llvm.org/bugs/show_bug.cgi?id=4215): When xcodebuild is invoked with -sdk iphonesimulator3.0, use gcc-4.2 instead of the system default gcc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71891 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-15Re-enable passing analyzer options from scan-build to ccc-analyzer.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71836 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-15Don't strip quotes in compiler line for -D arguments.Ted Kremenek
Fixes PR 4205. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71835 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-12Make scan-build process of --use-cc and --html-title more robust.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71567 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-11Use Text::ParseWords to make 'clang -###' parsing more robust.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71504 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-11Tweak this non-default test so it still works w/ x86 feature support.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71494 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-11ccc-analyzer should only analyze C and Objective-C files.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71474 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-09Add total hack to get scan-build working again. ccc-analyzer callsTed Kremenek
'clang -###' to get the appropriate arguments to pass to clang-cc. This isn't a permanent solution. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71364 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-08ABITest: Improve test driver marginally, to allow running a specificDaniel Dunbar
test index. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71295 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-08ABITest: Move more of the common Makefile bits into the commonDaniel Dunbar
Makefile. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71274 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-08ABITest: Fix a bug in generating test values for structures w/ noDaniel Dunbar
non-padding fields. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71273 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-08ABITest: Move default set of test args into common makefile.Daniel Dunbar
Also, tweak default list of bit-fields to try. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71246 91177308-0d34-0410-b5e6-96231b3b80d8