aboutsummaryrefslogtreecommitdiff
path: root/cross-project-tests
AgeCommit message (Collapse)AuthorFilesLines
2024-07-22Replace distutils.version with packaging.version since the former was ↵dyung1-4/+5
deprecated in python 3.10 and removed in 3.12. (#99852) Attempt to reland #99549, but using packaging.version instead of looseversion, based on the usage used for LLDB in #93712.
2024-07-20Revert "Replace distutils.version with looseversion since the former was ↵Jonas Devlieghere1-1/+2
deprecated in python 3.10 and removed in 3.12." (#99786) Reverts llvm/llvm-project#99549 because it breaks a bunch of build bots.
2024-07-20Replace distutils.version with looseversion since the former was deprecated ↵dyung1-2/+1
in python 3.10 and removed in 3.12. (#99549) Python deprecated the distutils package in 3.10, and removed it in 3.12 causing problems when trying to run the lit tests with 3.12. https://docs.python.org/3.10/library/distutils.html Replace usage with the looseversion package which should be a drop-in replacement for the original usage. If your testing fails after this commit, you need to install the looseversion package.
2024-06-19Fix gdb pretty printers for libSupportDavid Blaikie2-11/+1
Remove the testing for std::optional - it was originally for llvm::Optional, but now that that doesn't exist and we use std::optional, testing for that pretty printer should live, wherever the pretty printer lives, not here in LLVM. And the PointerIntPair pretty printer bit rotted due to changes in PointerIntPair, 875391728c11339c8a6cd3338bcaa5ec0ffc2496.
2024-06-10[dexter] Correctly identify stop-reason while driving VisualStudio (#94754)Orlando Cazalet-Hyams1-5/+37
Prior to this patch VisualStudio._get_step_info incorrectly identifies the reason the debugger has stopped. e.g., stepping through a program would be reported as a StopReason.Breakpoint rather than StopReason.Step. Fix. No test added as there are no VisualStudio tests (tested locally).
2024-06-05[x-project tests] Fix ambiguity in call to createStringError (NFC)Jonas Devlieghere1-1/+1
Fixes: https://lab.llvm.org/buildbot/#/builders/139/builds/66928/ https://lab.llvm.org/buildbot/#/builders/216/builds/40166/
2024-05-25Revise IDE folder structure (#89755)Michael Kruse1-5/+1
Update the folder titles for targets in the monorepository that have not seen taken care of for some time. These are the folders that targets are organized in Visual Studio and XCode (`set_property(TARGET <target> PROPERTY FOLDER "<title>")`) when using the respective CMake's IDE generator. * Ensure that every target is in a folder * Use a folder hierarchy with each LLVM subproject as a top-level folder * Use consistent folder names between subprojects * When using target-creating functions from AddLLVM.cmake, automatically deduce the folder. This reduces the number of `set_property`/`set_target_property`, but are still necessary when `add_custom_target`, `add_executable`, `add_library`, etc. are used. A LLVM_SUBPROJECT_TITLE definition is used for that in each subproject's root CMakeLists.txt.
2024-05-15Fix typo "indicies" (#92232)Jay Foad1-1/+1
2024-05-01[cross-project-tests] Update code to use mlir::cast (NFC)Jie Fu1-1/+1
/llvm-project/cross-project-tests/debuginfo-tests/llvm-prettyprinters/gdb/mlir-support.cpp:41:16: error: 'cast' is deprecated: Use mlir::cast<U>() instead [-Werror,-Wdeprecated-declarations] VectorType.cast<mlir::ShapedType>(), llvm::ArrayRef<float>{2.0f, 3.0f}); ^ /llvm-project/llvm/../mlir/include/mlir/IR/Types.h:345:9: note: 'cast' has been explicitly marked deprecated here U Type::cast() const { ^ /llvm-project/cross-project-tests/debuginfo-tests/llvm-prettyprinters/gdb/mlir-support.cpp:41:16: error: 'cast<mlir::ShapedType>' is deprecated: Use mlir::cast<U>() instead [-Werror,-Wdeprecated-declarations] VectorType.cast<mlir::ShapedType>(), llvm::ArrayRef<float>{2.0f, 3.0f}); ^ /llvm-project/llvm/../mlir/include/mlir/IR/Types.h:112:5: note: 'cast<mlir::ShapedType>' has been explicitly marked deprecated here [[deprecated("Use mlir::cast<U>() instead")]] ^ 2 errors generated.
2024-03-14[Dexter] Add VisualStudio2022 support to Dexter (#85248)Stephen Tozer3-0/+27
Dexter currently supports Visual Studio 2015/2017/2019, but not 2022; this patch adds support for 2022.
2024-03-13Mark test as XFAIL that started failing after 418f0066eb. (#85027)dyung1-0/+1
Similar failures were previously seen and XFAILed in https://reviews.llvm.org/D118468. See the phabricator review for a description of the problem, and the linked discourse thread for what the failing output looks like. This change should fix the issue on two buildbots that are running older versions of GDB: - https://lab.llvm.org/buildbot/#/builders/217/builds/37559 - https://lab.llvm.org/buildbot/#/builders/247/builds/15173
2024-03-12Relax test to work with newer versions of lldbAdrian Prantl1-3/+2
2024-03-12Modernize llgdb script and make it easier to debug.Adrian Prantl1-4/+10
2024-03-12Relax tests to also work with newer versions of lldb.Adrian Prantl2-8/+8
- result variables are optional - static members may print their values - public/protected shows up in ptype output
2024-03-12Remove XFAIL from tests passing on green dragonAdrian Prantl2-2/+0
2024-03-07[Dexter] Extend XFAIL of Dexter tests to all MacOS architectures. (#83936)dyung2-2/+2
I am trying to bring up a MacOS buildbot targeting x86 and noticed that two Dexter tests were failing, cross-project-tests/debuginfo-tests/llgdb-tests/static-member.cpp and cross-project-tests/debuginfo-tests/llgdb-tests/static-member-2.cpp. Looking in the history for these tests, they were XFAILed for Apple Silicon in 9c46606 and are failing similar on x86 for me, so we should extend the XFAIL to all MacOS architectures.
2024-01-24[AMDGPU] Add GFX12 WMMA and SWMMAC instructions (#77795)Mirko Brkušanin4-0/+430
Co-authored-by: Petar Avramovic <Petar.Avramovic@amd.com> Co-authored-by: Piotr Sobczak <piotr.sobczak@amd.com>
2024-01-18Revert "[BOLT] Fix unconditional output of boltedcollection in merge-fdata ↵Amir Ayupov2-17/+1
(#78653)" This reverts commit 82bc33ea3f1a539be50ed46919dc53fc6b685da9. Accidentally pushed unrelated changes.
2024-01-18[BOLT] Fix unconditional output of boltedcollection in merge-fdata (#78653)Amir Ayupov2-1/+17
Fix the bug where merge-fdata unconditionally outputs boltedcollection line, regardless of whether input files have it set. Test Plan: Added bolt/test/X86/merge-fdata-nobat-mode.test which fails without this fix.
2023-12-11[Dexter] Set ShouldBuild=false for Visual Studio solutions (#75045)Stephen Tozer1-0/+7
Since Dexter no longer intends to build any code, the ShouldBuild property in any Visual Studio project being run by Dexter should be false to ensure that a build step is never invoked by Dexter, whether the project has already been built or not. Reviewed by: OCHyams
2023-11-27[cross-project-tests] Fix struct-dse example so that it fails again (#73566)Felipe de Azevedo Piovezan1-1/+3
The purpose of this example is to provide a case where the debugger / debug info experience could be improved. A recent commit by clang (0d2860b795879f4dd152963b52f969b53b136899) changed codegen such that it changes how "small structs" are initialized, in a way that the debugger is now able to correctly display the variable being targeted by this test. In order to keep the example relevant, i.e. failing, this commit makes it so that the struct is now "big enough" to not trigger the new codegen.
2023-09-19[Dexter] Associate parser errors with correct file (#66765)Ben Mudd2-12/+28
Currently if Dexter encounters a parser error with a command, the resulting error message will refer to the most recently declared file (i.e. the source file it is testing) rather than the file containing the command itself. This patch fixes this so that parser errors point towards the correct location.
2023-09-14Fix Dexter test broken with e6cc7b723f244f52663b6d67a5d94597109da1efShubham Sandeep Rastogi1-1/+1
2023-09-14 [Dexter] Fix test failures on greendragon (#66299)Shubham Sandeep Rastogi43-43/+25
The issue with these test failures is that the dSYM was not being found by lldb, which is why setting breakpoints was failing and lldb quit without performing any steps. This change copies the dSYM to the same temp directory that the executable is copied to.
2023-09-08Fix Dexter test after 37a20cc68f54. Adding the XFAIL line caused the line ↵Douglas Yung1-1/+1
references to be off. Should fix https://lab.llvm.org/buildbot/#/builders/216/builds/27001.
2023-09-08XFAIL dexter tests that broke greendragon.Shubham Sandeep Rastogi38-0/+38
The patch in https://reviews.llvm.org/D151465 broke greendragon, because it is hardcoding the use of libstdc++ which is not available on darwin. XFAILing these tests till they can be fixed.
2023-09-08[cross-project-tests] remove final `dexter.builder` import (#65653)Christopher Di Bella1-1/+0
2023-09-06[DebugInfoTests] Mark debuginfo 'optnone-*' tests unsupported on darwinStephen Tozer4-4/+8
The optnone tests, following the removal of the Dexter builder in a prior patch (45a40c16), are experiencing intermittent failures. This patch marks them unsupported to be fixed in a new commit, rather than reverting the Dexter patch.
2023-09-06Re-reapply "[Dexter] Remove builder from Dexter"Stephen Tozer130-686/+287
This patch makes a further attempt to fix the tests broken by the previous revision by ensuring that the command line for the modified Dexter tests use -std=gnu++11, in keeping with the old build script. This reverts commit 5647f2908de90fe07b0805e988cd2e91a1751928.
2023-09-05Revert "Reapply "[Dexter] Remove builder from Dexter""Stephen Tozer129-287/+497
Re-application of the Dexter builder removal reversed due to continued errors on the green dragon LLDB buildbot: https://green.lab.llvm.org/green/view/LLDB/job/lldb-cmake/59716/ Cause of the error is unclear, but it looks as though there is some unexpected non-determinism in the test failures. This reverts commit 323270451d8db24f2c816f455b3d8f70f434286d.
2023-09-05Reapply "[Dexter] Remove builder from Dexter"Stephen Tozer129-497/+287
Fixes a test which was broken on the green dragon buildbot, and further failures on the SIE buildbot. This reverts commit 8df9eff90ff8c79e3e508cce7fec1cd897487069.
2023-08-24[lldb] Fix grammar in error message emitted by IRExecutionUnitJonas Devlieghere1-0/+1
The error message "Couldn't lookup symbols" emitted from IRExecutionUnit is grammatically incorrect. "Lookup" is noun when spelled without a space. Update the error message to use the verb "look up" instead.
2023-08-21Revert "[Dexter] Remove builder from Dexter"Stephen Tozer129-286/+495
& Revert "[Dexter] Fix incorrect substitution errors in clang-cl builder" This reverts commits 262520a3c5450fd7f149438245b2aef12736347f, and 0b72b71cd3c8ad824342c05bc6d9d64d87eeb81b. Failures occurred on two buildbots, the SIE buildbot: https://lab.llvm.org/buildbot/#/builders/216/builds/26006 And the green dragon buildbot: https://green.lab.llvm.org/green/view/LLDB/job/lldb-cmake/59091 Errors appear to be related to incorrect tool substitution in the Dexter test commands, and a currently unknown error with one of the general debuginfo tests that uses Dexter.
2023-08-21[Dexter] Fix incorrect substitution errors in clang-cl builderStephen Tozer7-9/+9
Following 262520a3, tests on windows bots began failing due to an incorrect substitution in the previous patch, where clang-cl was used instead of clang_cl. Also fixes an inconsistency in the builders used for some of the tests in 'dexter-tests', where %clang++ was used for some tests and %clang for tests that should have identical RUN lines.
2023-08-21[Dexter] Remove builder from DexterStephen Tozer129-495/+286
See "discussion": https://discourse.llvm.org/t/rfc-dexter-feature-removals/60462 This patch removes the builder functionality from Dexter, as it is an active maintenance burden and is no longer required since Dexter is being invoked by other test runners that can handle the build step better, and there has been no objection that it is still needed. Differential Revision: https://reviews.llvm.org/D151465
2023-05-26[Dexter] XFAIL Dexter tests for Apple Silicon (arm64)Jonas Devlieghere3-1/+3
2023-05-26[Dexter] Don't hardcode x86_64 as the default architectureJonas Devlieghere1-1/+2
Use platform.machine() as the default architecture instead of hardcoding it to x86_64.
2023-05-25[NFC][Py Reformat] Reformat python files in the rest of the dirsTobias Hieta91-3232/+3929
This is an ongoing series of commits that are reformatting our Python code. This catches the last of the python files to reformat. Since they where so few I bunched them together. Reformatting is done with `black`. If you end up having problems merging this commit because you have made changes to a python file, the best way to handle that is to run git checkout --ours <yourfile> and then reformat it with black. If you run into any problems, post to discourse about it and we will try to help. RFC Thread below: https://discourse.llvm.org/t/rfc-document-and-standardize-python-code-style Reviewed By: jhenderson, #libc, Mordante, sivachandra Differential Revision: https://reviews.llvm.org/D150784
2023-05-18[WebAssembly] Add wasm_simd128.h intrinsics for relaxed SIMDThomas Lively1-1/+122
Add user-friendly intrinsic functions for all relaxed SIMD instructions alongside the existing SIMD128 intrinsic functions in wasm_simd128.h. Test that the new instrinsics lower to the expected instructions in the existing cross-project-tests test file. Reviewed By: aheejin, sbc100 Differential Revision: https://reviews.llvm.org/D150833
2023-03-22[Dexter] Add timeout optionsStephen Tozer4-6/+82
Adds a pair of options for Dexter that allow the user to specify a timeout duration. These options are: * --timeout-total: Times out if the total run-time of the debugger session exceeds <timeout-total> seconds. * --timeout-breakpoint: Times out if the time without hitting a breakpoint exceeds <timeout-breakpoint> seconds. Reviewed By: Orlando Differential Revision: https://reviews.llvm.org/D145063
2023-03-15[Dexter] Add a simple logging class to DexterStephen Tozer9-32/+71
Adds a basic logging class to Dexter that uses the existing PrettyOutput class for printing and supports 3 levels of verbosity (note, warning, error). Intended to consolidate the logging logic for Dexter into one place, removing the need for conditional log statements and making it easier for us later if we wish to use a more complete logging class. Reviewed By: Orlando Differential Revision: https://reviews.llvm.org/D144983
2023-03-15[Dexter] Add target_run_args optionStephen Tozer6-1/+45
Adds an option to Dexter that passes command line arguments to the debugged process, following (and in addition to) any arguments given by the DexCommandLine command. Differential Revision: https://reviews.llvm.org/D144979
2023-03-01[Dexter] Use non-blocking resume when debugging Visual StudioStephen Tozer1-3/+3
The Visual Studio debugger currently uses blocking calls to Go and StepInto, which interferes with Dexter's ability to do any processing (e.g. checking for time outs) in between breakpoints. This patch updates these functions to use non-blocking calls. Reviewed By: Orlando Differential Revision: https://reviews.llvm.org/D144986
2023-02-17[AMDGPU] Add cross-project-tests for WMMA builtinsDiana Picus5-1/+151
Add a few tests to make sure we get the expected instruction for the WMMA builtins (and generally that our builtins and intrinsics are on the same page and won't blow up). Differential Revision: https://reviews.llvm.org/D144176
2023-02-03Walk back an overly-aggressive unXFAIL.Adrian Prantl1-0/+1
2023-02-03UnXFAIL test.Adrian Prantl1-3/+0
2023-02-03Upgrade llgdb script for Python 3 compatibility.Adrian Prantl1-47/+33
2023-02-03Update llgdb to use python3.Adrian Prantl1-2/+1
2023-01-19[Dexter] Add on_line parameter to DexExpectStepOrder commandBen Mudd5-9/+29
DexExpectStepOrder uses the line to expect a debugger step from the actual line of the command in the Dexter source file. Now Dexter scripts have mainly moved to thier own script files instead of the actual source, there should be a option to override this behaviour to choose your own debugger step location. Reviewed By: Orlando Differential Revision: https://reviews.llvm.org/D142099
2023-01-14[cross-project-tests] Use std::optional instead of llvm::Optional (NFC)Kazu Hirata1-3/+2
This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716