mirror of
https://github.com/github/codeql.git
synced 2026-07-02 01:55:31 +02:00
Add Windows integration tests showing that subst is handled inconsistently
This commit is contained in:
1
python/ql/integration-tests/subst/code/main.py
Normal file
1
python/ql/integration-tests/subst/code/main.py
Normal file
@@ -0,0 +1 @@
|
||||
print(0)
|
||||
1
python/ql/integration-tests/subst/file.expected
Normal file
1
python/ql/integration-tests/subst/file.expected
Normal file
@@ -0,0 +1 @@
|
||||
| code/main.py:0:0:0:0 | code/main.py | |
|
||||
5
python/ql/integration-tests/subst/file.ql
Normal file
5
python/ql/integration-tests/subst/file.ql
Normal file
@@ -0,0 +1,5 @@
|
||||
import python
|
||||
|
||||
from File f, string relative
|
||||
where if exists(f.getRelativePath()) then relative = "relative" else relative = ""
|
||||
select f, relative
|
||||
7
python/ql/integration-tests/subst/test.py
Normal file
7
python/ql/integration-tests/subst/test.py
Normal file
@@ -0,0 +1,7 @@
|
||||
import runs_on
|
||||
|
||||
|
||||
@runs_on.windows
|
||||
def test(codeql, python, cwd, subst_drive):
|
||||
drive = subst_drive(cwd / "code")
|
||||
codeql.database.create(source_root=drive)
|
||||
Reference in New Issue
Block a user