[Dexter] Collate penalties of the same type into a single line for eachCurrently in Dexter, every step at which a DexExpectWatchValue/Type doesnot have the correct value is printed on a separate l
[Dexter] Collate penalties of the same type into a single line for eachCurrently in Dexter, every step at which a DexExpectWatchValue/Type doesnot have the correct value is printed on a separate line. This patchreduces the size of the text output by instead printing each incorrectresult (i.e. each incorrect value seen, 'Variable optimized out', and soon) on its own line, alongside a list of the steps at which that resultwas seen. This makes for much less spam in the output when watches aremissing or wrong for many steps.Differential Revision: https://reviews.llvm.org/D120716
show more ...
[dexter] Don't generate results files by defaultDexter saves various files to a new results directory each time it is run(including when it's run by lit tests) and there isn't a way to opt-out. Th
[dexter] Don't generate results files by defaultDexter saves various files to a new results directory each time it is run(including when it's run by lit tests) and there isn't a way to opt-out. Thispatch reconfigures the behaviour to be opt-in by removing the default`--results-directory` location. Now results are only saved if`--results-directory` is specified.Reviewed By: jmorseDifferential Revision: https://reviews.llvm.org/D119545
[Dexter] Remove false requirement of lldb for dexter regression tests on WindowsNot quite NFC because a little work was required to configure some tests to runon Windows at all.Before this patch
[Dexter] Remove false requirement of lldb for dexter regression tests on WindowsNot quite NFC because a little work was required to configure some tests to runon Windows at all.Before this patch on Windows: $ llvm-lit cross-project-tests\debuginfo-tests\dexter\feature-tests Unsupported: 49 Passed : 23After this patch on Windows: $ llvm-lit cross-project-tests\debuginfo-tests\dexter\feature-tests Unsupported : 27 Passed : 39 Expectedly failed: 6There are 3 main changes here. The first is to add a few more substitutions incross-project-tests/lit.cfg.py so that tests need to use specific flags canstill use the dexter regression test defaults for the native platform. Theseare: %dexter_regression_test_debugger %dexter_regression_test_builder %dexter_regression_test_cflags %dexter_regression_test_ldflagsTests that now use these options and therefore can be run on Windows too(though the second is still failing for unknown reasons): cross-project-tests/debuginfo-tests/dexte/feature_tests /subtools/clang-opt-bisect/clang-opt-bisect.cpp /subtools/test/source-root-dir.cppThe second change is to remove spurious `REQUIRES: system-linux, lldb` and`UNSUPPORTED: system-windows` directives, and make changes to lit.local.cfgfiles that have the same effect. I've also added comments to the genuineREQUIRES, UNSUPPORTED, and XFAIL directives so it's easier to understandrequirements at a glance. The most common reason for a test to not be supportedon Windows is that it uses DexLimitSteps, DexDeclareAddress, or DexCommandLine,none of which are supported in the dbgeng driver.There are two failures on Windows that were previously hidden, which I'veXFAILed: cross-project-tests/debuginfo-tests/dexter/feature_tests /commands/perfect/dex_finish_test/default_conditional.cpp /commands/perfect/dex_finish_test/default_conditional_hit_count.cppAnd two that were easy to fix: cross-project-tests/debuginfo-tests/dexter/feature_tests /commands/perfect/dex_finish_test/default_simple.cpp /commands/perfect/dex_finish_test/default_hit_count.cppLastly, I've set three directories as unsupported. cross-project-tests/debuginfo-tests/dexter/feature_tests /commands/perfect/limit_steps /commands/perfect/dex_declare_address /commands/perfect/dex_declare_fileThe first two are unsupported on Windows because they contains tests for theDexLimitSteps and DexDeclareAddress commands which aren't supported in thedbgeng driver. The third is unsupported on all platforms as the tests involveinvoking clang directly, which isn't currently a supported way of buildingtests for dexter in lit (it can cause problems for cross compilers that cantarget the host, as the tests use the default triple and linker, which maybe aligned for the default target, not host).Tested on Windows and Linux.Reviewed By: jmorseDifferential Revision: https://reviews.llvm.org/D118048
[Dexter] Fix address_printing test by requiring lldbFixes a failure on the llvm-clang-x86_64-sie-ubuntu-fast buildbot causedby the test requiring lldb (with the standard dexter lit config), butno
[Dexter] Fix address_printing test by requiring lldbFixes a failure on the llvm-clang-x86_64-sie-ubuntu-fast buildbot causedby the test requiring lldb (with the standard dexter lit config), butnot including a "Requires: lldb" clause.
[Dexter] Add DexDeclareAddress command and address functionThis patch adds a new dexter command, DexDeclareAddress, which is usedto test the relative values of pointer variables. The motivation fo
[Dexter] Add DexDeclareAddress command and address functionThis patch adds a new dexter command, DexDeclareAddress, which is usedto test the relative values of pointer variables. The motivation foradding this command is to allow meaningful assertions to be made aboutpointers that go beyond checking variable availability and nullequality.The full explanation and syntax is in Commands.md.Reviewed By: OrlandoDifferential Revision: https://reviews.llvm.org/D111447
[dexter] XFAIL feature_test source-root-dir.cppTest is failing for unknown reasons and needs investigating.
[RFC][debuginfo-test] Rename debug-info lit tests for general purposesDiscussion thread:https://lists.llvm.org/pipermail/llvm-dev/2021-January/148048.htmlMove debuginfo-test into a subdirectory
[RFC][debuginfo-test] Rename debug-info lit tests for general purposesDiscussion thread:https://lists.llvm.org/pipermail/llvm-dev/2021-January/148048.htmlMove debuginfo-test into a subdirectory of a new top-level directory,called cross-project-tests. The new name replaces "debuginfo-test" as anLLVM project enabled via LLVM_ENABLE_PROJECTS.Differential Revision: https://reviews.llvm.org/D95339Reviewed by: aprantl