mirror of
https://github.com/github/codeql.git
synced 2026-01-11 21:50:28 +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
376 B
Python
12 lines
376 B
Python
import commands
|
|
|
|
|
|
def test(codeql, java):
|
|
commands.run(
|
|
"javac mod1/module-info.java mod1/mod1pkg/Mod1Class.java -d mod1obj",
|
|
"jar -c -f mod1.jar -C mod1obj mod1pkg/Mod1Class.class --release 9 -C mod1obj module-info.class",
|
|
)
|
|
codeql.database.create(
|
|
command="javac mod2/mod2pkg/User.java mod2/module-info.java -d mod2obj -p mod1.jar"
|
|
)
|