Add make target to run tests locally

This commit is contained in:
Tom Hvitved
2021-08-31 14:22:26 +02:00
parent 4677a0832f
commit eeb68a88b6

View File

@@ -65,3 +65,7 @@ extractor: $(FILES) $(BIN_FILES)
cp ql/lib/ruby.dbscheme extractor-pack/ruby.dbscheme
cp target/release/ruby-extractor$(EXE) extractor-pack/tools/$(CODEQL_PLATFORM)/extractor$(EXE)
cp target/release/ruby-autobuilder$(EXE) extractor-pack/tools/$(CODEQL_PLATFORM)/autobuilder$(EXE)
test: extractor dbscheme
codeql pack install ql/test
codeql test run --check-databases --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition --search-path . --consistency-queries ql/consistency-queries ql/test