Merged PR 799125: Use QTest from bxl binary location instead of package location

Use QTest from bxl binary location instead of package location
This commit is contained in:
Michael Pysson 2024-08-16 21:17:17 +00:00
Родитель 13a1511660
Коммит 96f9e80fa3
5 изменённых файлов: 34 добавлений и 24 удалений

Просмотреть файл

@ -0,0 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
module({
name: "Sdk.QTest"
});

Просмотреть файл

@ -0,0 +1,22 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
import {Transformer} from "Sdk.Transformers";
// This is an empty facade for a Microsoft internal package.
namespace Contents {
export declare const qualifier: {
};
@@public
export const all: StaticDirectory = Transformer.sealPartialDirectory(d`.`, [
f`tools/DBS.QTest.exe`,
]);
}
@@public
export const qTestTool: Transformer.ToolDefinition = Context.getCurrentHost().os === "win" && {
exe: f`tools/DBS.QTest.exe`,
description: "Facade QTest Tool. Will not correctly execute",
};

Просмотреть файл

@ -0,0 +1 @@
// This is an empty facade for a Microsoft internal package.

Просмотреть файл

@ -24,7 +24,10 @@ export const qTestTool: Transformer.ToolDefinition = {
d`${Context.getMount("ProgramFilesX86").path}`,
d`${Context.getMount("ProgramFiles").path}`,
d`${Context.getMount("AppData").path}`,
d`${Context.getMount("LocalAppData").path}`
d`${Context.getMount("LocalAppData").path}`,
// To ensure that dmps are generated during crashes, QTest now includes procdmp.exe
// However, this tool reads dbghelp.dll located in the following directory in CloudBuild machines
d`C:/Debuggers`
]),
dependsOnWindowsDirectories: true,
dependsOnAppDataDirectory: true,

Просмотреть файл

@ -9,31 +9,9 @@ import * as Qtest from "BuildXL.Tools.QTest";
export declare const qualifier : Managed.TargetFrameworks.All;
const qTestContents = importFrom("CB.QTest").Contents.all;
// const isDotNetCore = Shared.isDotNetCore(qualifier.targetFramework); // qualifier.targetFramework.startsWith("netcoreapp");
@@public
export const qTestTool: Transformer.ToolDefinition = Context.getCurrentHost().os === "win" && {
exe: qTestContents.getFile(r`tools/DBS.QTest.exe`),
description: "SelfHost Dev Build QTest",
runtimeDirectoryDependencies: [
qTestContents
],
untrackedDirectoryScopes: addIfLazy(Context.getCurrentHost().os === "win", () => [
d`${Context.getMount("ProgramFiles").path}`,
d`${Context.getMount("ProgramFilesX86").path}`,
d`${Context.getMount("ProgramData").path}`,
d`${Context.getMount("AppData").path}`,
d`${Context.getMount("LocalAppData").path}`,
d`${Context.getMount("UserProfile").path}`,
// To ensure that dmps are generated during crashes, QTest now includes procdmp.exe
// However, this tool reads dbghelp.dll located in the following directory in CloudBuild machines
d`C:/Debuggers`
]),
dependsOnWindowsDirectories: true,
dependsOnAppDataDirectory: true,
prepareTempDirectory: true,
timeoutInMilliseconds: Qtest.qtestDefaultTimeoutInMilliseconds
};
export const qTestTool: Transformer.ToolDefinition = importFrom("Sdk.QTest").qTestTool;
@@public
export interface TestRunArguments extends Managed.TestRunArguments, Qtest.QTestArguments {