mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
This test should now validate that we no longer have dataset check errors even when there are unencodable characters.
19 lines
390 B
Bash
Executable File
19 lines
390 B
Bash
Executable File
#!/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"
|
|
|
|
rm -rf db
|
|
|
|
$CODEQL database create db --language python --source-root repo_dir/
|
|
|
|
$CODEQL dataset check db/db-python
|
|
|
|
echo "Test successfully completed."
|