Merge remote-tracking branch 'origin/main' into runner_analyze
This commit is contained in:
commit
1548b771cb
6 changed files with 31 additions and 15 deletions
7
.github/workflows/pr-checks.yml
vendored
7
.github/workflows/pr-checks.yml
vendored
|
|
@ -65,9 +65,12 @@ jobs:
|
||||||
echo "Success: node_modules are up to date"
|
echo "Success: node_modules are up to date"
|
||||||
|
|
||||||
npm-test:
|
npm-test:
|
||||||
runs-on: ubuntu-latest
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest,macos-latest]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: npm run-script test
|
- name: npm run-script test
|
||||||
run: npm run-script test
|
run: npm run-script test
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
{
|
{
|
||||||
"bundleVersion": "codeql-bundle-20200630"
|
"bundleVersion": "codeql-bundle-20200826"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
16
lib/tracer-config.test.js
generated
16
lib/tracer-config.test.js
generated
|
|
@ -259,13 +259,19 @@ ava_1.default('getCombinedTracerConfig - valid spec file', async (t) => {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const result = await tracer_config_1.getCombinedTracerConfig(config, codeQL);
|
const result = await tracer_config_1.getCombinedTracerConfig(config, codeQL);
|
||||||
|
const expectedEnv = {
|
||||||
|
'foo': 'bar',
|
||||||
|
'ODASA_TRACER_CONFIGURATION': result.spec,
|
||||||
|
};
|
||||||
|
if (process.platform === 'darwin') {
|
||||||
|
expectedEnv['DYLD_INSERT_LIBRARIES'] = path.join(path.dirname(codeQL.getPath()), 'tools', 'osx64', 'libtrace.dylib');
|
||||||
|
}
|
||||||
|
else if (process.platform !== 'win32') {
|
||||||
|
expectedEnv['LD_PRELOAD'] = path.join(path.dirname(codeQL.getPath()), 'tools', 'linux64', '${LIB}trace.so');
|
||||||
|
}
|
||||||
t.deepEqual(result, {
|
t.deepEqual(result, {
|
||||||
spec: path.join(tmpDir, 'compound-spec'),
|
spec: path.join(tmpDir, 'compound-spec'),
|
||||||
env: {
|
env: expectedEnv,
|
||||||
'foo': 'bar',
|
|
||||||
'ODASA_TRACER_CONFIGURATION': result.spec,
|
|
||||||
'LD_PRELOAD': path.join(path.dirname(codeQL.getPath()), 'tools', 'linux64', '${LIB}trace.so'),
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,3 +1,3 @@
|
||||||
{
|
{
|
||||||
"bundleVersion": "codeql-bundle-20200630"
|
"bundleVersion": "codeql-bundle-20200826"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -299,13 +299,20 @@ test('getCombinedTracerConfig - valid spec file', async t => {
|
||||||
});
|
});
|
||||||
|
|
||||||
const result = await getCombinedTracerConfig(config, codeQL);
|
const result = await getCombinedTracerConfig(config, codeQL);
|
||||||
|
|
||||||
|
const expectedEnv = {
|
||||||
|
'foo': 'bar',
|
||||||
|
'ODASA_TRACER_CONFIGURATION': result!.spec,
|
||||||
|
};
|
||||||
|
if (process.platform === 'darwin') {
|
||||||
|
expectedEnv['DYLD_INSERT_LIBRARIES'] = path.join(path.dirname(codeQL.getPath()), 'tools', 'osx64', 'libtrace.dylib');
|
||||||
|
} else if (process.platform !== 'win32') {
|
||||||
|
expectedEnv['LD_PRELOAD'] = path.join(path.dirname(codeQL.getPath()), 'tools', 'linux64', '${LIB}trace.so');
|
||||||
|
}
|
||||||
|
|
||||||
t.deepEqual(result, {
|
t.deepEqual(result, {
|
||||||
spec: path.join(tmpDir, 'compound-spec'),
|
spec: path.join(tmpDir, 'compound-spec'),
|
||||||
env: {
|
env: expectedEnv,
|
||||||
'foo': 'bar',
|
|
||||||
'ODASA_TRACER_CONFIGURATION': result!.spec,
|
|
||||||
'LD_PRELOAD': path.join(path.dirname(codeQL.getPath()), 'tools', 'linux64', '${LIB}trace.so'),
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue