Skip to content

Commit f48dda8

Browse files
author
Alvaro Muñoz
authored
Merge pull request #4 from GitHubSecurityLab/refactor_java_tests
Organize tests into same folders as src pack
2 parents a91c660 + 15f5ad9 commit f48dda8

24 files changed

+7
-6
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
env:
4343
GITHUB_TOKEN: ${{ github.token }}
4444
run: |
45+
gh repo clone github/codeql # to make stubs available for tests
4546
codeql pack download "codeql/${{ matrix.language }}-queries"
4647
codeql pack install "${{ matrix.language }}/lib"
4748
codeql pack install "${{ matrix.language }}/src"

java/test/CWE-078/CommandInjectionRuntimeExec.qlref

Lines changed: 0 additions & 1 deletion
This file was deleted.

java/test/CWE-326/Base64Encryption.qlref

Lines changed: 0 additions & 1 deletion
This file was deleted.

java/test/CWE-532/SensitiveInformation.qlref

Lines changed: 0 additions & 1 deletion
This file was deleted.

java/test/CWE-611/XXELocal.qlref

Lines changed: 0 additions & 1 deletion
This file was deleted.

java/test/audit/.gitkeep

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
security/CWE-078/CommandInjectionRuntimeExecTest.ql
File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
security/CWE-326/Base64Encryption.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
//semmle-extractor-options: --javac-args -cp ${testdir}/../../../codeql/java/ql/test/stubs/javax-servlet-2.5
1+
//semmle-extractor-options: --javac-args -cp ${testdir}/../../../../codeql/java/ql/test/stubs/javax-servlet-2.5
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
security/CWE-532/SensitiveInformation.ql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
//semmle-extractor-options: --javac-args -cp ${testdir}/../../../codeql/java/ql/test/stubs/javax-servlet-2.5
1+
//semmle-extractor-options: --javac-args -cp ${testdir}/../../../../codeql/java/ql/test/stubs/javax-servlet-2.5
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
security/CWE-611/XXELocal.ql

0 commit comments

Comments
 (0)