Files
TheRock/compiler/amd-llvm/lldb/test/Shell/Commands/command-plugin-enable+disable.test
T
derek.holloway 7502bf64a4
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

88 lines
4.1 KiB
Plaintext

# This test validates the plugin enable and disable commands.
# Currently it works only for system-runtime plugins and we only have one
# system runtime plugin so testing is a bit limited.
#
# Note that commands that return errors will stop running a script, so we
# have new RUN lines for any command that is expected to return an error.
# RUN: %lldb -s %s -o exit 2>&1 | FileCheck %s
# Test plugin list shows the default state which is expected to be enabled.
plugin list
# CHECK-LABEL: plugin list
# CHECK: system-runtime
# CHECK: [+] systemruntime-macosx System runtime plugin for Mac OS X native libraries
# Test plugin disable disables a plugin.
plugin disable system-runtime.systemruntime-macosx
# CHECK-LABEL: plugin disable system-runtime.systemruntime-macosx
# CHECK: system-runtime
# CHECK: [-] systemruntime-macosx System runtime plugin for Mac OS X native libraries
# Make sure plugin list shows it disabled as well.
plugin list
# CHECK: system-runtime
# CHECK: [-] systemruntime-macosx System runtime plugin for Mac OS X native libraries
# Test plugin enable re-enables a plugin.
plugin enable system-runtime.systemruntime-macosx
# CHECK-LABEL: plugin enable system-runtime.systemruntime-macosx
# CHECK: system-runtime
# CHECK: [+] systemruntime-macosx System runtime plugin for Mac OS X native libraries
# Make sure plugin list shows it enabled as well.
plugin list
# CHECK: system-runtime
# CHECK: [+] systemruntime-macosx System runtime plugin for Mac OS X native libraries
# Test plugin disable with namespace works.
plugin disable system-runtime
# CHECK-LABEL: plugin disable system-runtime
# CHECK: system-runtime
# CHECK: [-] systemruntime-macosx System runtime plugin for Mac OS X native libraries
# Test plugin enable with namespace works.
plugin enable system-runtime
# CHECK-LABEL: plugin enable system-runtime
# CHECK: system-runtime
# CHECK: [+] systemruntime-macosx System runtime plugin for Mac OS X native libraries
# Test plugin enable/disable for instrumentation plugin works.
plugin enable instrumentation-runtime
# CHECK-LABEL: plugin enable instrumentation-runtime
# CHECK: instrumentation-runtime
# CHECK: [+] AddressSanitizer
plugin disable instrumentation-runtime
# CHECK-LABEL: plugin disable instrumentation-runtime
# CHECK: instrumentation-runtime
# CHECK: [-] AddressSanitizer
# Test plugin enable with multiple arguments.
plugin enable system-runtime instrumentation-runtime
# CHECK-LABEL: plugin enable system-runtime instrumentation-runtime
# CHECK: system-runtime
# CHECK: [+] systemruntime-macosx System runtime plugin for Mac OS X native libraries.
# CHECK: instrumentation-runtime
# CHECK: [+] AddressSanitizer AddressSanitizer instrumentation runtime plugin.
# Test plugin disable with multiple arguments.
plugin disable system-runtime instrumentation-runtime
# CHECK-LABEL: plugin disable system-runtime instrumentation-runtime
# CHECK: system-runtime
# CHECK: [-] systemruntime-macosx System runtime plugin for Mac OS X native libraries.
# CHECK: instrumentation-runtime
# CHECK: [-] AddressSanitizer AddressSanitizer instrumentation runtime plugin.
# Test plugin enable/disable for unknown plugin returns an error.
# RUN: %lldb -o "plugin enable some-plugin-that-does-not-exist" 2>&1 | FileCheck %s --check-prefix=ERROR_PLUGIN_NOT_FOUND
# RUN: %lldb -o "plugin disable some-plugin-that-does-not-exist" 2>&1 | FileCheck %s --check-prefix=ERROR_PLUGIN_NOT_FOUND
# RUN: %lldb -o "plugin enable system-runtime some-plugin-that-does-not-exist" 2>&1 | FileCheck %s --check-prefix=ERROR_PLUGIN_NOT_FOUND
# ERROR_PLUGIN_NOT_FOUND: error: Found no matching plugins
# Test plugin enable/disable requires a plugin name.
# RUN: %lldb -o "plugin enable" 2>&1 | FileCheck %s --check-prefix=ERROR_ARGUMENTS_ENABLE
# ERROR_ARGUMENTS_ENABLE: error: 'plugin enable' requires one or more arguments
# RUN: %lldb -o "plugin disable" 2>&1 | FileCheck %s --check-prefix=ERROR_ARGUMENTS_DISABLE
# ERROR_ARGUMENTS_DISABLE: error: 'plugin disable' requires one or more arguments