mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Go: fix search and tool paths for 'make test'
This commit is contained in:
@@ -7,7 +7,7 @@ cd $DIR
|
|||||||
|
|
||||||
rm -rf testdb
|
rm -rf testdb
|
||||||
|
|
||||||
codeql database create --language=go testdb --search-path ..
|
codeql database create --language=go testdb --search-path ../build/codeql-extractor-go
|
||||||
codeql dataset check testdb/db-go
|
codeql dataset check testdb/db-go
|
||||||
codeql query run ../ql/test/library-tests/semmle/go/controlflow/ControlFlowGraph/ControlFlowNode_getASuccessor.ql --database=testdb --output=notracing-out.bqrs --search-path ..
|
codeql query run ../ql/test/library-tests/semmle/go/controlflow/ControlFlowGraph/ControlFlowNode_getASuccessor.ql --database=testdb --output=notracing-out.bqrs --search-path ..
|
||||||
codeql bqrs decode notracing-out.bqrs --format=csv --output=notracing-out.csv
|
codeql bqrs decode notracing-out.bqrs --format=csv --output=notracing-out.csv
|
||||||
@@ -19,7 +19,7 @@ export CODEQL_EXTRACTOR_GO_BUILD_TRACING=on
|
|||||||
|
|
||||||
rm -rf testdb
|
rm -rf testdb
|
||||||
|
|
||||||
codeql database create --language=go testdb --search-path ..
|
codeql database create --language=go testdb --search-path ../build/codeql-extractor-go
|
||||||
codeql dataset check testdb/db-go
|
codeql dataset check testdb/db-go
|
||||||
codeql query run ../ql/test/library-tests/semmle/go/controlflow/ControlFlowGraph/ControlFlowNode_getASuccessor.ql --database=testdb --output=tracing-out.bqrs --search-path ..
|
codeql query run ../ql/test/library-tests/semmle/go/controlflow/ControlFlowGraph/ControlFlowNode_getASuccessor.ql --database=testdb --output=tracing-out.bqrs --search-path ..
|
||||||
codeql bqrs decode tracing-out.bqrs --format=csv --output=tracing-out.csv
|
codeql bqrs decode tracing-out.bqrs --format=csv --output=tracing-out.csv
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ if [ -z "$SEMMLE_PLATFORM" ]
|
|||||||
then
|
then
|
||||||
case "$OSTYPE" in
|
case "$OSTYPE" in
|
||||||
linux*) SEMMLE_PLATFORM="linux";;
|
linux*) SEMMLE_PLATFORM="linux";;
|
||||||
darwin*) SEMMLE_PLATFORM="osx";;
|
darwin*) SEMMLE_PLATFORM="osx64";;
|
||||||
msys*) SEMMLE_PLATFORM="win";;
|
msys*) SEMMLE_PLATFORM="win";;
|
||||||
*) echo "This script only works on Linux, macOS and msys; OSTYPE: $OSTYPE" && exit 1
|
*) echo "This script only works on Linux, macOS and msys; OSTYPE: $OSTYPE" && exit 1
|
||||||
esac
|
esac
|
||||||
@@ -20,5 +20,5 @@ fi
|
|||||||
run() {
|
run() {
|
||||||
cmd=$1
|
cmd=$1
|
||||||
shift
|
shift
|
||||||
"$SCRIPTDIR/platform/$SEMMLE_PLATFORM/bin/$cmd$EXE" "$@"
|
"$SCRIPTDIR/$SEMMLE_PLATFORM/$cmd$EXE" "$@"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user