diff --git a/src/Tests/Backend/One/OneToolchain.test.ts b/src/Tests/Backend/One/OneToolchain.test.ts index 1a9398c0..ea90dec8 100644 --- a/src/Tests/Backend/One/OneToolchain.test.ts +++ b/src/Tests/Backend/One/OneToolchain.test.ts @@ -200,6 +200,26 @@ suite("OneCompiler", function () { }); }); + suite("#prerequisitesForGetToolchains", function () { + test("returns a command which executes a shell script for prerequisites", function () { + const oneCompiler = new OneCompiler(); + const extensionId = "Samsung.one-vscode"; + const ext = vscode.extensions.getExtension( + extensionId + ) as vscode.Extension; + const scriptPath = vscode.Uri.joinPath( + ext!.extensionUri, + "script", + "prerequisitesForGetOneToolchain.sh" + ).fsPath; + const cmd = `sudo /bin/sh ${scriptPath}`; + assert.deepStrictEqual( + oneCompiler.prerequisitesForGetToolchains().str(), + cmd + ); + }); + }); + suite("OneToolchain", function () { suite("#constructor()", function () { test("Create dummy OneToolchain backend", function (pass) {