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.
10 lines
384 B
Python
10 lines
384 B
Python
import runs_on
|
|
|
|
|
|
@runs_on.linux
|
|
def test(codeql, java_full, cwd):
|
|
java_srcs = (cwd / "javasrc" / "extlib").glob("*.java")
|
|
javac_cmd = " ".join(["javac"] + [str(s) for s in java_srcs] + ["-d", "build"])
|
|
jar_cmd = " ".join(["jar", "-c", "-f", "extlib.jar", "-C", "build", "extlib"])
|
|
codeql.database.create(command=[javac_cmd, jar_cmd, "kotlinc user.kt -cp extlib.jar"])
|