[Lldb-commits] [PATCH] D128077: [lldb][tests] Automatically call compute_mydir (NFC)

Dave Lee via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Jun 17 11:12:09 PDT 2022


kastiglione created this revision.
kastiglione added reviewers: JDevlieghere, mib, jingham.
Herald added subscribers: pmatos, asb, wenlei, arphaman, kbarton, sbc100, nemanjai, emaste.
Herald added a project: All.
kastiglione requested review of this revision.
Herald added subscribers: lldb-commits, aheejin.
Herald added a project: LLDB.

Eliminate boilerplate of having each test manually assign to `mydir` by calling
`compute_mydir` in lldbtest.py.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D128077

Files:
  lldb/packages/Python/lldbsuite/test/README-TestSuite
  lldb/packages/Python/lldbsuite/test/lldbtest.py
  lldb/test/API/android/platform/TestDefaultCacheLineSize.py
  lldb/test/API/api/check_public_api_headers/TestPublicAPIHeaders.py
  lldb/test/API/api/command-return-object/TestSBCommandReturnObject.py
  lldb/test/API/api/listeners/TestListener.py
  lldb/test/API/api/log/TestAPILog.py
  lldb/test/API/api/multiple-debuggers/TestMultipleDebuggers.py
  lldb/test/API/api/multiple-targets/TestMultipleTargets.py
  lldb/test/API/api/multithreaded/TestMultithreaded.py
  lldb/test/API/arm/breakpoint-it/TestBreakpointIt.py
  lldb/test/API/arm/breakpoint-thumb-codesection/TestBreakpointThumbCodesection.py
  lldb/test/API/arm/emulation/TestEmulations.py
  lldb/test/API/assert_messages_test/TestAssertMessages.py
  lldb/test/API/benchmarks/continue/TestBenchmarkContinue.py
  lldb/test/API/benchmarks/expression/TestExpressionCmd.py
  lldb/test/API/benchmarks/expression/TestRepeatedExprs.py
  lldb/test/API/benchmarks/frame_variable/TestFrameVariableResponse.py
  lldb/test/API/benchmarks/libcxxlist/TestBenchmarkLibcxxList.py
  lldb/test/API/benchmarks/libcxxmap/TestBenchmarkLibcxxMap.py
  lldb/test/API/benchmarks/startup/TestStartupDelays.py
  lldb/test/API/benchmarks/stepping/TestSteppingSpeed.py
  lldb/test/API/benchmarks/turnaround/TestCompileRunToBreakpointTurnaround.py
  lldb/test/API/commands/add-dsym/uuid/TestAddDsymCommand.py
  lldb/test/API/commands/apropos/basic/TestApropos.py
  lldb/test/API/commands/apropos/with-process/TestAproposWithProcess.py
  lldb/test/API/commands/breakpoint/command/list/TestBreakpointCommandList.py
  lldb/test/API/commands/breakpoint/set/func-regex/TestBreakpointRegexError.py
  lldb/test/API/commands/command/container/TestContainerCommands.py
  lldb/test/API/commands/command/delete/TestCommandDelete.py
  lldb/test/API/commands/command/invalid-args/TestInvalidArgsCommand.py
  lldb/test/API/commands/command/nested_alias/TestNestedAlias.py
  lldb/test/API/commands/command/regex/TestRegexCommand.py
  lldb/test/API/commands/command/script/TestCommandScript.py
  lldb/test/API/commands/command/script/import/TestImport.py
  lldb/test/API/commands/command/script/import/rdar-12586188/TestRdar12586188.py
  lldb/test/API/commands/command/script_alias/TestCommandScriptAlias.py
  lldb/test/API/commands/command/source/TestCommandSource.py
  lldb/test/API/commands/disassemble/basic/TestDisassembleBreakpoint.py
  lldb/test/API/commands/disassemble/basic/TestFrameDisassemble.py
  lldb/test/API/commands/expression/anonymous-struct/TestCallUserAnonTypedef.py
  lldb/test/API/commands/expression/argument_passing_restrictions/TestArgumentPassingRestrictions.py
  lldb/test/API/commands/expression/calculator_mode/TestCalculatorMode.py
  lldb/test/API/commands/expression/call-function/TestCallBuiltinFunction.py
  lldb/test/API/commands/expression/call-function/TestCallStdStringFunction.py
  lldb/test/API/commands/expression/call-function/TestCallStopAndContinue.py
  lldb/test/API/commands/expression/call-function/TestCallUserDefinedFunction.py
  lldb/test/API/commands/expression/call-restarts/TestCallThatRestarts.py
  lldb/test/API/commands/expression/call-throws/TestCallThatThrows.py
  lldb/test/API/commands/expression/cast_int_to_anonymous_enum/TestCastIntToAnonymousEnum.py
  lldb/test/API/commands/expression/char/TestExprsChar.py
  lldb/test/API/commands/expression/class_template_specialization_empty_pack/TestClassTemplateSpecializationParametersHandling.py
  lldb/test/API/commands/expression/codegen-crash-import-def-arraytype-element/TestImportDefinitionArrayType.py
  lldb/test/API/commands/expression/completion-crash-invalid-iterator/TestInvalidIteratorCompletionCrash.py
  lldb/test/API/commands/expression/completion/TestExprCompletion.py
  lldb/test/API/commands/expression/context-object-objc/TestContextObjectObjc.py
  lldb/test/API/commands/expression/context-object/TestContextObject.py
  lldb/test/API/commands/expression/diagnostics/TestExprDiagnostics.py
  lldb/test/API/commands/expression/dollar-in-variable/TestDollarInVariable.py
  lldb/test/API/commands/expression/dont_allow_jit/TestAllowJIT.py
  lldb/test/API/commands/expression/entry-bp/TestExprEntryBP.py
  lldb/test/API/commands/expression/error-limit/TestExprErrorLimit.py
  lldb/test/API/commands/expression/expr-in-syscall/TestExpressionInSyscall.py
  lldb/test/API/commands/expression/fixits/TestFixIts.py
  lldb/test/API/commands/expression/formatters/TestFormatters.py
  lldb/test/API/commands/expression/function_template_specialization_temp_args/TestFunctionTemplateSpecializationTempArgs.py
  lldb/test/API/commands/expression/import-std-module/array/TestArrayFromStdModule.py
  lldb/test/API/commands/expression/import-std-module/basic/TestImportStdModule.py
  lldb/test/API/commands/expression/import-std-module/conflicts/TestStdModuleWithConflicts.py
  lldb/test/API/commands/expression/import-std-module/deque-basic/TestDequeFromStdModule.py
  lldb/test/API/commands/expression/import-std-module/deque-dbg-info-content/TestDbgInfoContentDequeFromStdModule.py
  lldb/test/API/commands/expression/import-std-module/empty-module/TestEmptyStdModule.py
  lldb/test/API/commands/expression/import-std-module/forward_decl_from_module/TestForwardDeclFromStdModule.py
  lldb/test/API/commands/expression/import-std-module/forward_list-dbg-info-content/TestDbgInfoContentForwardListFromStdModule.py
  lldb/test/API/commands/expression/import-std-module/forward_list/TestForwardListFromStdModule.py
  lldb/test/API/commands/expression/import-std-module/iterator/TestIteratorFromStdModule.py
  lldb/test/API/commands/expression/import-std-module/list-dbg-info-content/TestDbgInfoContentListFromStdModule.py
  lldb/test/API/commands/expression/import-std-module/list/TestListFromStdModule.py
  lldb/test/API/commands/expression/import-std-module/missing-module-sources/TestStdModuleSourcesMissing.py
  lldb/test/API/commands/expression/import-std-module/module-build-errors/TestStdModuleBuildErrors.py
  lldb/test/API/commands/expression/import-std-module/no-std-module/TestMissingStdModule.py
  lldb/test/API/commands/expression/import-std-module/non-module-type-separation/TestNonModuleTypeSeparation.py
  lldb/test/API/commands/expression/import-std-module/pair/TestPairFromStdModule.py
  lldb/test/API/commands/expression/import-std-module/queue/TestQueueFromStdModule.py
  lldb/test/API/commands/expression/import-std-module/retry-with-std-module/TestRetryWithStdModule.py
  lldb/test/API/commands/expression/import-std-module/shared_ptr-dbg-info-content/TestSharedPtrDbgInfoContentFromStdModule.py
  lldb/test/API/commands/expression/import-std-module/shared_ptr/TestSharedPtrFromStdModule.py
  lldb/test/API/commands/expression/import-std-module/stack/TestStackFromStdModule.py
  lldb/test/API/commands/expression/import-std-module/sysroot/TestStdModuleSysroot.py
  lldb/test/API/commands/expression/import-std-module/unique_ptr-dbg-info-content/TestUniquePtrDbgInfoContent.py
  lldb/test/API/commands/expression/import-std-module/unique_ptr/TestUniquePtrFromStdModule.py
  lldb/test/API/commands/expression/import-std-module/vector-bool/TestVectorBoolFromStdModule.py
  lldb/test/API/commands/expression/import-std-module/vector-dbg-info-content/TestDbgInfoContentVectorFromStdModule.py
  lldb/test/API/commands/expression/import-std-module/vector-of-vectors/TestVectorOfVectorsFromStdModule.py
  lldb/test/API/commands/expression/import-std-module/vector/TestVectorFromStdModule.py
  lldb/test/API/commands/expression/import-std-module/weak_ptr-dbg-info-content/TestDbgInfoContentWeakPtrFromStdModule.py
  lldb/test/API/commands/expression/import-std-module/weak_ptr/TestWeakPtrFromStdModule.py
  lldb/test/API/commands/expression/import_builtin_fileid/TestImportBuiltinFileID.py
  lldb/test/API/commands/expression/inline-namespace/TestInlineNamespace.py
  lldb/test/API/commands/expression/invalid-args/TestInvalidArgsExpression.py
  lldb/test/API/commands/expression/ir-interpreter-phi-nodes/TestIRInterpreterPHINodes.py
  lldb/test/API/commands/expression/ir-interpreter/TestIRInterpreter.py
  lldb/test/API/commands/expression/issue_11588/Test11588.py
  lldb/test/API/commands/expression/macros/TestMacros.py
  lldb/test/API/commands/expression/multiline-completion/TestMultilineCompletion.py
  lldb/test/API/commands/expression/multiline-navigation/TestMultilineNavigation.py
  lldb/test/API/commands/expression/namespace_local_var_same_name_cpp_and_c/TestNamespaceLocalVarSameNameCppAndC.py
  lldb/test/API/commands/expression/namespace_local_var_same_name_obj_c/TestNamespaceLocalVarSameNameObjC.py
  lldb/test/API/commands/expression/no-deadlock/TestExprDoesntBlock.py
  lldb/test/API/commands/expression/options/TestExprOptions.py
  lldb/test/API/commands/expression/persist_objc_pointeetype/TestPersistObjCPointeeType.py
  lldb/test/API/commands/expression/persistent_ptr_update/TestPersistentPtrUpdate.py
  lldb/test/API/commands/expression/persistent_types/TestNestedPersistentTypes.py
  lldb/test/API/commands/expression/persistent_types/TestPersistentTypes.py
  lldb/test/API/commands/expression/persistent_variables/TestPersistentVariables.py
  lldb/test/API/commands/expression/po_verbosity/TestPoVerbosity.py
  lldb/test/API/commands/expression/pr35310/TestExprsBug35310.py
  lldb/test/API/commands/expression/pr52257/TestExprCrash.py
  lldb/test/API/commands/expression/radar_8638051/Test8638051.py
  lldb/test/API/commands/expression/radar_9531204/TestPrintfAfterUp.py
  lldb/test/API/commands/expression/radar_9673664/TestExprHelpExamples.py
  lldb/test/API/commands/expression/result_numbering/TestResultNumbering.py
  lldb/test/API/commands/expression/save_jit_objects/TestSaveJITObjects.py
  lldb/test/API/commands/expression/scoped_enums/TestScopedEnumType.py
  lldb/test/API/commands/expression/static-initializers/TestStaticInitializers.py
  lldb/test/API/commands/expression/test/TestExprs.py
  lldb/test/API/commands/expression/test/TestExprs2.py
  lldb/test/API/commands/expression/timeout/TestCallWithTimeout.py
  lldb/test/API/commands/expression/top-level/TestTopLevelExprs.py
  lldb/test/API/commands/expression/two-files/TestObjCTypeQueryFromOtherCompileUnit.py
  lldb/test/API/commands/expression/unwind_expression/TestUnwindExpression.py
  lldb/test/API/commands/expression/vector_of_enums/TestVectorOfEnums.py
  lldb/test/API/commands/expression/weak_symbols/TestWeakSymbols.py
  lldb/test/API/commands/expression/xvalue/TestXValuePrinting.py
  lldb/test/API/commands/frame/diagnose/array/TestArray.py
  lldb/test/API/commands/frame/diagnose/bad-reference/TestBadReference.py
  lldb/test/API/commands/frame/diagnose/complicated-expression/TestComplicatedExpression.py
  lldb/test/API/commands/frame/diagnose/dereference-argument/TestDiagnoseDereferenceArgument.py
  lldb/test/API/commands/frame/diagnose/dereference-function-return/TestDiagnoseDereferenceFunctionReturn.py
  lldb/test/API/commands/frame/diagnose/dereference-this/TestDiagnoseDereferenceThis.py
  lldb/test/API/commands/frame/diagnose/inheritance/TestDiagnoseInheritance.py
  lldb/test/API/commands/frame/diagnose/local-variable/TestLocalVariable.py
  lldb/test/API/commands/frame/diagnose/virtual-method-call/TestDiagnoseDereferenceVirtualMethodCall.py
  lldb/test/API/commands/frame/language/TestGuessLanguage.py
  lldb/test/API/commands/frame/recognizer/TestFrameRecognizer.py
  lldb/test/API/commands/frame/select/TestFrameSelect.py
  lldb/test/API/commands/frame/var/TestFrameVar.py
  lldb/test/API/commands/gui/basic/TestGuiBasic.py
  lldb/test/API/commands/gui/basicdebug/TestGuiBasicDebug.py
  lldb/test/API/commands/gui/breakpoints/TestGuiBreakpoints.py
  lldb/test/API/commands/gui/expand-threads-tree/TestGuiExpandThreadsTree.py
  lldb/test/API/commands/gui/invalid-args/TestInvalidArgsGui.py
  lldb/test/API/commands/gui/viewlarge/TestGuiViewLarge.py
  lldb/test/API/commands/help/TestHelp.py
  lldb/test/API/commands/log/basic/TestLogging.py
  lldb/test/API/commands/log/invalid-args/TestInvalidArgsLog.py
  lldb/test/API/commands/memory/read/TestMemoryRead.py
  lldb/test/API/commands/memory/write/TestMemoryWrite.py
  lldb/test/API/commands/platform/basic/TestPlatformCommand.py
  lldb/test/API/commands/platform/basic/TestPlatformPython.py
  lldb/test/API/commands/platform/connect/TestPlatformConnect.py
  lldb/test/API/commands/platform/file/close/TestPlatformFileClose.py
  lldb/test/API/commands/platform/file/read/TestPlatformFileRead.py
  lldb/test/API/commands/platform/process/list/TestProcessList.py
  lldb/test/API/commands/platform/sdk/TestPlatformSDK.py
  lldb/test/API/commands/process/attach-resume/TestAttachResume.py
  lldb/test/API/commands/process/attach/TestProcessAttach.py
  lldb/test/API/commands/process/attach/attach_denied/TestAttachDenied.py
  lldb/test/API/commands/process/handle/TestProcessHandle.py
  lldb/test/API/commands/process/launch-with-shellexpand/TestLaunchWithShellExpand.py
  lldb/test/API/commands/process/launch/TestProcessLaunch.py
  lldb/test/API/commands/process/signal/TestProcessSignal.py
  lldb/test/API/commands/quit/TestQuit.py
  lldb/test/API/commands/register/register/aarch64_dynamic_regset/TestArm64DynamicRegsets.py
  lldb/test/API/commands/register/register/aarch64_sve_registers/rw_access_dynamic_resize/TestSVEThreadedDynamic.py
  lldb/test/API/commands/register/register/aarch64_sve_registers/rw_access_static_config/TestSVERegisters.py
  lldb/test/API/commands/register/register/register_command/TestRegisters.py
  lldb/test/API/commands/reproducer/invalid-args/TestInvalidArgsReproducer.py
  lldb/test/API/commands/session/history/TestSessionHistory.py
  lldb/test/API/commands/session/save/TestSessionSave.py
  lldb/test/API/commands/settings/TestSettings.py
  lldb/test/API/commands/settings/quoting/TestQuoting.py
  lldb/test/API/commands/settings/use_source_cache/TestUseSourceCache.py
  lldb/test/API/commands/statistics/basic/TestStats.py
  lldb/test/API/commands/target/auto-install-main-executable/TestAutoInstallMainExecutable.py
  lldb/test/API/commands/target/basic/TestTargetCommand.py
  lldb/test/API/commands/target/create-deps/TestTargetCreateDeps.py
  lldb/test/API/commands/target/create-no-such-arch/TestNoSuchArch.py
  lldb/test/API/commands/target/dump-symtab-demangle/TestDumpSymtabDemangle.py
  lldb/test/API/commands/target/dump/TestTargetDumpTypeSystem.py
  lldb/test/API/commands/target/modules/search-paths/insert/TestTargetModulesSearchpathsInsert.py
  lldb/test/API/commands/target/select/TestTargetSelect.py
  lldb/test/API/commands/target/stop-hook/delete/TestTargetStopHookDelete.py
  lldb/test/API/commands/target/stop-hook/disable/TestTargetStopHookDisable.py
  lldb/test/API/commands/target/stop-hook/enable/TestTargetStopHookEnable.py
  lldb/test/API/commands/target/stop-hooks/TestStopHookScripted.py
  lldb/test/API/commands/target/stop-hooks/TestStopHooks.py
  lldb/test/API/commands/thread/backtrace/TestThreadBacktraceRepeat.py
  lldb/test/API/commands/thread/select/TestThreadSelect.py
  lldb/test/API/commands/trace/TestTraceDumpInfo.py
  lldb/test/API/commands/trace/TestTraceDumpInstructions.py
  lldb/test/API/commands/trace/TestTraceEvents.py
  lldb/test/API/commands/trace/TestTraceExport.py
  lldb/test/API/commands/trace/TestTraceLoad.py
  lldb/test/API/commands/trace/TestTraceSave.py
  lldb/test/API/commands/trace/TestTraceSchema.py
  lldb/test/API/commands/trace/TestTraceStartStop.py
  lldb/test/API/commands/trace/TestTraceTSC.py
  lldb/test/API/commands/trace/multiple-threads/TestTraceStartStopMultipleThreads.py
  lldb/test/API/commands/version/TestVersion.py
  lldb/test/API/commands/watchpoints/hello_watchlocation/TestWatchLocation.py
  lldb/test/API/commands/watchpoints/hello_watchpoint/TestMyFirstWatchpoint.py
  lldb/test/API/commands/watchpoints/multi_watchpoint_slots/TestWatchpointMultipleSlots.py
  lldb/test/API/commands/watchpoints/multiple_hits/TestMultipleHits.py
  lldb/test/API/commands/watchpoints/multiple_threads/TestWatchpointMultipleThreads.py
  lldb/test/API/commands/watchpoints/step_over_watchpoint/TestStepOverWatchpoint.py
  lldb/test/API/commands/watchpoints/variable_out_of_scope/TestWatchedVarHitWhenInScope.py
  lldb/test/API/commands/watchpoints/watch_tagged_addr/TestWatchTaggedAddress.py
  lldb/test/API/commands/watchpoints/watchpoint_commands/TestWatchpointCommands.py
  lldb/test/API/commands/watchpoints/watchpoint_commands/command/TestWatchpointCommandLLDB.py
  lldb/test/API/commands/watchpoints/watchpoint_commands/command/TestWatchpointCommandPython.py
  lldb/test/API/commands/watchpoints/watchpoint_commands/condition/TestWatchpointConditionCmd.py
  lldb/test/API/commands/watchpoints/watchpoint_count/TestWatchpointCount.py
  lldb/test/API/commands/watchpoints/watchpoint_disable/TestWatchpointDisable.py
  lldb/test/API/commands/watchpoints/watchpoint_events/TestWatchpointEvents.py
  lldb/test/API/commands/watchpoints/watchpoint_on_vectors/TestValueOfVectorVariable.py
  lldb/test/API/commands/watchpoints/watchpoint_set_command/TestWatchLocationWithWatchSet.py
  lldb/test/API/commands/watchpoints/watchpoint_size/TestWatchpointSizes.py
  lldb/test/API/driver/batch_mode/TestBatchMode.py
  lldb/test/API/driver/job_control/TestJobControl.py
  lldb/test/API/functionalities/abbreviation/TestAbbreviations.py
  lldb/test/API/functionalities/abbreviation/TestCommonShortSpellings.py
  lldb/test/API/functionalities/archives/TestBSDArchives.py
  lldb/test/API/functionalities/asan/TestMemoryHistory.py
  lldb/test/API/functionalities/asan/TestReportData.py
  lldb/test/API/functionalities/avoids-fd-leak/TestFdLeak.py
  lldb/test/API/functionalities/backticks/TestBackticksWithoutATarget.py
  lldb/test/API/functionalities/breakpoint/address_breakpoints/TestAddressBreakpoints.py
  lldb/test/API/functionalities/breakpoint/address_breakpoints/TestBadAddressBreakpoints.py
  lldb/test/API/functionalities/breakpoint/auto_continue/TestBreakpointAutoContinue.py
  lldb/test/API/functionalities/breakpoint/break_in_loaded_dylib/TestBreakInLoadedDylib.py
  lldb/test/API/functionalities/breakpoint/breakpoint_by_file_colon_line/TestBreakpointByFileColonLine.py
  lldb/test/API/functionalities/breakpoint/breakpoint_by_line_and_column/TestBreakpointByLineAndColumn.py
  lldb/test/API/functionalities/breakpoint/breakpoint_callback_command_source/TestBreakpointCallbackCommandSource.py
  lldb/test/API/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py
  lldb/test/API/functionalities/breakpoint/breakpoint_command/TestBreakpointCommandsFromPython.py
  lldb/test/API/functionalities/breakpoint/breakpoint_command/TestRegexpBreakCommand.py
  lldb/test/API/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py
  lldb/test/API/functionalities/breakpoint/breakpoint_hit_count/TestBreakpointHitCount.py
  lldb/test/API/functionalities/breakpoint/breakpoint_ids/TestBreakpointIDs.py
  (707 more files...)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128077.437977.patch
Type: text/x-patch
Size: 502449 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220617/c18d497c/attachment-0001.bin>


More information about the lldb-commits mailing list