mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
* chore(NA): ensure scripts run with --preserve-symlinks * chore(NA): run webpack configs with symlinks: false * chore(NA): fix pkg json load on kbn test * chore(NA): add script into setup node env * chore(NA): fix kbn test for relative improt * chore(NA): fix change on docs * chore(NA): move ensure node preserve symlinks into setup node env * chore(NA): update changed docs * chore(NA): update jest unit test * chore(NA): fix wrapper script exit code * chore(NA): updated generated plugin list docs * fix(NA): make functional test runner use kbn utils repo_root * chore(NA): fix eslint imports * chore(NA): missing react correct config on eslint package * chore(NA): use correct value to make test pass locally * chore(NA): fix jest tests * chore(NA): try remove extra preserve symlinks * chore(NA): fix windows environment * chore(NA): fix kbn-optimizer to run with preserve-symlinks * chore(NA): fix integration jest test for kbn/optimizer * chore(NA): remove require.resolve from eslintrc.js * chore(NA): avoid load json file * chore(NA): move kbn/utils import into kbn/dev-utils * chore(NA): use correct dependencies on eslint config package Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
32 lines
1.2 KiB
JavaScript
32 lines
1.2 KiB
JavaScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
* Side Public License, v 1.
|
|
*/
|
|
|
|
require('../src/setup_node_env/ensure_node_preserve_symlinks');
|
|
|
|
var execFileSync = require('child_process').execFileSync;
|
|
var path = require('path');
|
|
var syncGlob = require('glob').sync;
|
|
var program = require('commander');
|
|
|
|
program
|
|
.name('node scripts/test_hardening.js')
|
|
.arguments('[file...]')
|
|
.description(
|
|
'Run the tests in test/harden directory. If no files are provided, all files within the directory will be run.'
|
|
)
|
|
.action(function (globs) {
|
|
if (globs.length === 0) globs.push(path.join('test', 'harden', '*'));
|
|
globs.forEach(function (glob) {
|
|
syncGlob(glob).forEach(function (filename) {
|
|
if (path.basename(filename)[0] === '_') return;
|
|
console.log(process.argv[0], filename);
|
|
execFileSync(process.argv[0], [filename], { stdio: 'inherit' });
|
|
});
|
|
});
|
|
})
|
|
.parse(process.argv);
|