Skip to content

Commit 9915142

Browse files
redsun82Copilot
andcommitted
Just: port kotlin tests to new language test definition
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d3b6590 commit 9915142

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

java/ql/test-kotlin1/justfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import "../justfile"
2+
3+
base_flags := """\
4+
CODEQL_EXTRACTOR_KOTLIN_DIAGNOSTIC_LIMIT= \
5+
"""
6+
7+
all_checks := default_db_checks + """\
8+
--check-undefined-labels \
9+
--check-repeated-labels \
10+
--check-redefined-labels \
11+
--check-use-before-definition \
12+
--consistency-queries=""" + consistency_queries
13+
14+
[no-cd]
15+
test *ARGS=".": (_codeql_test "java" base_flags all_checks ARGS)

java/ql/test-kotlin2/justfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import "../justfile"
2+
3+
base_flags := """\
4+
CODEQL_EXTRACTOR_KOTLIN_DIAGNOSTIC_LIMIT= \
5+
CODEQL_KOTLIN_LEGACY_TEST_EXTRACTION_KOTLIN2=true \
6+
"""
7+
8+
all_checks := default_db_checks + """\
9+
--check-undefined-labels \
10+
--check-repeated-labels \
11+
--check-redefined-labels \
12+
--check-use-before-definition \
13+
--consistency-queries=""" + consistency_queries
14+
15+
[no-cd]
16+
test *ARGS=".": (_codeql_test "java" base_flags all_checks ARGS)

0 commit comments

Comments
 (0)