blob: 2a91fb9d2c89f921234f40c2016559b93e99554d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only
import * as path from 'path';
import { program } from 'commander';
import { execSync } from 'child_process';
function main() {
program.option('-p, --qt_path <string>', 'Path to Qt installation directory');
program.parse(process.argv);
const options = program.opts();
const qt_path = options.qt_path as string;
const extensionRoot = path.resolve(__dirname, '../../');
process.chdir(extensionRoot);
execSync('npm run unitTests', { stdio: 'inherit' });
execSync(`npm run integrationTests -- --qt_path="${qt_path}"`, {
stdio: 'inherit'
});
}
main();
|