mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
We are no longer bound to the platform-specific directories, so simplify the test organization. If you don't want this change, just skip merging this PR. It's purely optional. I kept the platform-specific directories around under `kotlin`, but you could also easily merge all these together if you find them unhelpful. I'll leave that change to you.
12 lines
288 B
Python
12 lines
288 B
Python
import pathlib
|
|
|
|
|
|
def test(codeql, java_full):
|
|
java_srcs = " ".join([str(s) for s in pathlib.Path().glob("*.java")])
|
|
codeql.database.create(
|
|
command=[
|
|
f"javac {java_srcs} -d build",
|
|
"kotlinc -language-version 1.9 user.kt -cp build",
|
|
]
|
|
)
|