Skip to content

Commit

Permalink
TS-33729 fix unzip logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jveihelmann committed Aug 25, 2023
1 parent 3c00def commit 34bbc93
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions test/systemtest.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,22 @@ const caseStudies = [
}
];

/**
* Extensive casestudies to check on memory/time complexity of the profiler
*/
const release_casestudies = [{
name: 'grafana',
rootDir: 'test/casestudies/grafana',
distDir: 'public/build',
expectCoveredLines: {
},
expectUncoveredLines: {
},
excludeOrigins: ["**/public/build/*.*"],
includeOrigins: ["**/public/app/**/*.*"],
maxNormTimeFraction: 8.0
}]

/**
* Identify the next available port.
*/
Expand Down Expand Up @@ -603,22 +619,11 @@ await (async function runSystemTest() {
const perfStore = {};

if(ARGS.includes(RELEASE_TEST)){
// Add grafana as additional benchmark casestudie
caseStudies.push({
name: 'grafana',
rootDir: 'test/casestudies/grafana',
distDir: 'public/build',
expectCoveredLines: {
},
expectUncoveredLines: {
},
excludeOrigins: ["**/public/build/*.*"],
includeOrigins: ["**/public/app/**/*.*"],
maxNormTimeFraction: 8.0
})
// Add additional benchmark casestudies
caseStudies.push(...release_casestudies)
}
for (const study of caseStudies) {
if (!fs.existsSync(path.join(CASESTUDIES_DIR, study.name))) {
if (release_casestudies.includes(study) && !fs.existsSync(path.join(CASESTUDIES_DIR, study.name))) {
unzipProject(study.name);
}
const collectorPort = await identifyNextAvailablePort();
Expand Down

0 comments on commit 34bbc93

Please sign in to comment.