script: Remove references to benchmark feature

The feature is removed, so scripts should stop referencing/using it.
This commit is contained in:
DeeDeeG 2022-10-31 22:42:35 -04:00 committed by confused-Techie
parent de351f1a94
commit d8ef892dd1
2 changed files with 0 additions and 27 deletions

View File

@ -12,7 +12,6 @@ const includePathInPackagedApp = require('./include-path-in-packaged-app');
module.exports = function() {
console.log(`Copying assets to ${CONFIG.intermediateAppPath}`);
let srcPaths = [
path.join(CONFIG.repositoryRootPath, 'benchmarks', 'benchmark-runner.js'),
path.join(CONFIG.repositoryRootPath, 'dot-atom'),
path.join(CONFIG.repositoryRootPath, 'exports'),
path.join(CONFIG.repositoryRootPath, 'package.json'),

View File

@ -21,11 +21,6 @@ const argv = require('yargs')
boolean: true,
default: false
})
.option('core-benchmark', {
describe: 'Run core benchmarks',
boolean: true,
default: false
})
.option('package', {
describe: 'Run bundled package specs',
boolean: true,
@ -362,21 +357,6 @@ function getPackageTestSuites() {
return packageTestSuites;
}
function runBenchmarkTests(callback) {
const benchmarksPath = path.join(CONFIG.repositoryRootPath, 'benchmarks');
const testArguments = ['--benchmark-test', benchmarksPath];
const testEnv = prepareEnv('benchmark');
console.log('##[command] Executing benchmark tests'.bold.green);
spawnTest(
executablePath,
testArguments,
{ stdio: 'inherit', env: testEnv },
callback,
`core-benchmarks`
);
}
let testSuitesToRun = requestedTestSuites(process.platform);
function requestedTestSuites(platform) {
@ -392,7 +372,6 @@ function requestedTestSuites(platform) {
argv.package || process.env.ATOM_RUN_PACKAGE_TESTS === 'true';
let packages1 = process.env.ATOM_RUN_PACKAGE_TESTS === '1';
let packages2 = process.env.ATOM_RUN_PACKAGE_TESTS === '2';
let benchmark = argv.coreBenchmark;
// Operating system overrides:
coreMain =
@ -457,11 +436,6 @@ function requestedTestSuites(platform) {
}
}
// Benchmark tests
if (benchmark) {
suites.push(runBenchmarkTests);
}
if (argv.skipMainProcessTests) {
suites = suites.filter(suite => suite !== runCoreMainProcessTests);
}