Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EIM-92] [Test] Update IDF version #81

Merged
merged 3 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/run_test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ Set-Location -Path "./tests"

# Run tests using npm run AllTest
npm run default-test
npm run variation1-test
# npm run variation1-test
npm run non-interactive-test
2 changes: 1 addition & 1 deletion tests/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ cd tests
# run tests
set +e
npm run default-test
npm run variation1-test
# npm run variation1-test
npm run non-interactive-test
2 changes: 1 addition & 1 deletion tests/runs/CNmirrors.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if (process.env.EIM_FILE_PATH) {
}

const targetList = ["esp32c6"]; // targets used for IDF installation
const idfVersionList = ["v5.3.1"]; // IDF versions to be installed
const idfVersionList = ["v5.3.2"]; // IDF versions to be installed
const installFolder = ".espressif4";
const projectFolder = "project";

Expand Down
6 changes: 3 additions & 3 deletions tests/runs/defaultInstall.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ if (process.env.EIM_FILE_PATH) {
if (process.env.EIM_VERSION) {
eimVersion = process.env.EIM_VERSION;
} else {
eimVersion = "idf-im-cli 0.1.4";
eimVersion = "idf-im-cli 0.1.5";
}

const pathToIDFScript =
os.platform() !== "win32"
? path.join(os.homedir(), ".espressif/activate_idf_v5.3.1.sh")
: "C:\\esp\\v5.3.1\\Microsoft.PowerShell_profile.ps1";
? path.join(os.homedir(), ".espressif/activate_idf_v5.3.2.sh")
: "C:\\esp\\v5.3.2\\Microsoft.PowerShell_profile.ps1";

const pathToProjectFolder =
os.platform() !== "win32"
Expand Down
2 changes: 1 addition & 1 deletion tests/script/commandLineArguments.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function runArgumentsTests(pathToEim, eimVersion) {
await testRunner.stop();
} catch (error) {
logger.info("Error to clean up terminal after test");
throw error;
logger.info(` Error: ${error}`);
}
testRunner = null;
});
Expand Down
2 changes: 1 addition & 1 deletion tests/script/installNonInteractive.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function runInstallNonInteractive(pathToEim, args = []) {
await testRunner.stop();
} catch (error) {
logger.info("Error to clean up terminal after test");
throw error;
logger.info(` Error: ${error}`);
}
});

Expand Down
6 changes: 3 additions & 3 deletions tests/script/installWizard.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function runInstallWizardTests(pathToEim) {
await testRunner.stop();
} catch (error) {
logger.info("Error to clean up terminal after test");
throw error;
logger.info(` Error: ${error}`);
}
});

Expand Down Expand Up @@ -71,8 +71,8 @@ export function runInstallWizardTests(pathToEim) {
.true;
expect(
testRunner.output,
"Failed to offer installation for version 5.3.1"
).to.include("v5.3.1");
"Failed to offer installation for master branch"
).to.include("master");

logger.info("Select IDF Version passed");
testRunner.output = "";
Expand Down
6 changes: 3 additions & 3 deletions tests/script/postInstall.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ export function runPostInstallTest(
testRunner = new InteractiveCLITestRunner();
try {
await testRunner.runIDFTerminal(pathToIDFScript);
} catch {
} catch (error) {
logger.info("Error to start IDF terminal");
logger.info(testRunner.output);
this.test.error(new Error("Error starting IDF Terminal"));
throw error;
logger.info(` Error: ${error}`);
}
});

Expand All @@ -41,7 +41,7 @@ export function runPostInstallTest(
await testRunner.stop();
} catch (error) {
logger.info("Error to clean up terminal after test");
throw error;
logger.info(` Error: ${error}`);
}
});

Expand Down
4 changes: 2 additions & 2 deletions tests/script/prerequisites.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe("Check if prerequisites are installed", function () {
testRunner.sendInput(`${pathToEim}\r`);
} catch (error) {
logger.info(`Error starting process: ${error}`);
throw error;
logger.info(` Error: ${error}`);
}
});

Expand All @@ -46,7 +46,7 @@ describe("Check if prerequisites are installed", function () {
await testRunner.stop();
} catch (error) {
logger.info("Error to clean up terminal after test");
throw error;
logger.info(` Error: ${error}`);
}
testRunner = null;
});
Expand Down
4 changes: 2 additions & 2 deletions tests/script/prerequisitesInstall.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe("Check Pre-requisites installation on Windows", function () {
testRunner.sendInput(`${pathToEim}\r`);
} catch (error) {
logger.info(`Error starting process: ${error}`);
throw error;
logger.info(` Error: ${error}`);
}
});

Expand All @@ -50,7 +50,7 @@ describe("Check Pre-requisites installation on Windows", function () {
await testRunner.stop();
} catch (error) {
logger.info("Error to clean up terminal after test");
throw error;
logger.info(` Error: ${error}`);
}
testRunner = null;
});
Expand Down
4 changes: 2 additions & 2 deletions tests/script/prerequisitesInstallRunner.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe("Check Pre-requisites installation on Windows", function () {
testRunner.sendInput(`${pathToEim}\r`);
} catch (error) {
logger.info(`Error starting process: ${error}`);
throw error;
logger.info(` Error: ${error}`);
}
});

Expand All @@ -50,7 +50,7 @@ describe("Check Pre-requisites installation on Windows", function () {
await testRunner.stop();
} catch (error) {
logger.info("Error to clean up terminal after test");
throw error;
logger.info(` Error: ${error}`);
}
testRunner = null;
});
Expand Down
Loading