Skip to content

Commit 827c7ab

Browse files
committed
Go: fix search and tool paths for 'make test'
1 parent 7bc6c10 commit 827c7ab

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

go/extractor-smoke-test/test.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ cd $DIR
77

88
rm -rf testdb
99

10-
codeql database create --language=go testdb --search-path ..
10+
codeql database create --language=go testdb --search-path ../build/codeql-extractor-go
1111
codeql dataset check testdb/db-go
1212
codeql query run ../ql/test/library-tests/semmle/go/controlflow/ControlFlowGraph/ControlFlowNode_getASuccessor.ql --database=testdb --output=notracing-out.bqrs --search-path ..
1313
codeql bqrs decode notracing-out.bqrs --format=csv --output=notracing-out.csv
@@ -19,7 +19,7 @@ export CODEQL_EXTRACTOR_GO_BUILD_TRACING=on
1919

2020
rm -rf testdb
2121

22-
codeql database create --language=go testdb --search-path ..
22+
codeql database create --language=go testdb --search-path ../build/codeql-extractor-go
2323
codeql dataset check testdb/db-go
2424
codeql query run ../ql/test/library-tests/semmle/go/controlflow/ControlFlowGraph/ControlFlowNode_getASuccessor.ql --database=testdb --output=tracing-out.bqrs --search-path ..
2525
codeql bqrs decode tracing-out.bqrs --format=csv --output=tracing-out.csv

go/tools/utils.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ if [ -z "$SEMMLE_PLATFORM" ]
44
then
55
case "$OSTYPE" in
66
linux*) SEMMLE_PLATFORM="linux";;
7-
darwin*) SEMMLE_PLATFORM="osx";;
7+
darwin*) SEMMLE_PLATFORM="osx64";;
88
msys*) SEMMLE_PLATFORM="win";;
99
*) echo "This script only works on Linux, macOS and msys; OSTYPE: $OSTYPE" && exit 1
1010
esac
@@ -20,5 +20,5 @@ fi
2020
run() {
2121
cmd=$1
2222
shift
23-
"$SCRIPTDIR/platform/$SEMMLE_PLATFORM/bin/$cmd$EXE" "$@"
23+
"$SCRIPTDIR/$SEMMLE_PLATFORM/$cmd$EXE" "$@"
2424
}

0 commit comments

Comments
 (0)