codeql/python/extractor/cli-integration-test
Rasmus Wriedt Larsen e9e7ccddce
Python: delete `force-enable-library-extraction` integration test
2024-04-09 14:02:34 +02:00
..
basic Python: Copy Python extractor to `codeql` repo 2024-03-07 13:59:16 +00:00
disable-library-extraction Python: Copy Python extractor to `codeql` repo 2024-03-07 13:59:16 +00:00
extract-stdlib Python: Copy Python extractor to `codeql` repo 2024-03-07 13:59:16 +00:00
ignore-venv Python: Fix ignore-venv integration test 2024-04-09 14:01:10 +02:00
pip-21.3-build-dir Python: Copy Python extractor to `codeql` repo 2024-03-07 13:59:16 +00:00
python-2-deprecation Python: Copy Python extractor to `codeql` repo 2024-03-07 13:59:16 +00:00
stdout-encoding Python: Copy Python extractor to `codeql` repo 2024-03-07 13:59:16 +00:00
symlinks Python: Copy Python extractor to `codeql` repo 2024-03-07 13:59:16 +00:00
writing-diagnostics Python: Fix CLI integration tests 2024-03-19 17:11:40 +00:00
.gitignore Python: Copy Python extractor to `codeql` repo 2024-03-07 13:59:16 +00:00
README.md Python: Copy Python extractor to `codeql` repo 2024-03-07 13:59:16 +00:00
run-all-tests.sh Python: Copy Python extractor to `codeql` repo 2024-03-07 13:59:16 +00:00

README.md

Extractor Python CodeQL CLI integration tests

To ensure that the two work together as intended, and as an easy way to set up realistic test-cases.

Adding a new test case

Add a new folder, place a file called test.sh in it, which should start with the code below. The script should exit with failure code to fail the test.

#!/bin/bash

set -Eeuo pipefail # see https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/

set -x

CODEQL=${CODEQL:-codeql}

SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd "$SCRIPTDIR"