GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — codeql/python/extractor/cli-integration-test at codeql-cli/latest · github/codeql

Expand file tree

/

cli-integration-test

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

cli-integration-test

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
basic
basic
 
 
disable-library-extraction
disable-library-extraction
 
 
extract-stdlib
extract-stdlib
 
 
hidden-files
hidden-files
 
 
ignore-venv
ignore-venv
 
 
parser-telemetry
parser-telemetry
 
 
pip-21.3-build-dir
pip-21.3-build-dir
 
 
python-2-deprecation
python-2-deprecation
 
 
stdout-encoding
stdout-encoding
 
 
string-encoding
string-encoding
 
 
symlinks
symlinks
 
 
writing-diagnostics
writing-diagnostics
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
run-all-tests.sh
run-all-tests.sh
 
 

README.md

Outline

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"
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.