-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
Port the go integration tests to pytest framework
- Loading branch information
There are no files selected for viewing
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
from go_integration_test import * | ||
|
||
go_integration_test() | ||
def test(codeql, go): | ||
codeql.database.create(source_root="src") |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
from go_integration_test import * | ||
|
||
go_integration_test() | ||
def test(codeql, go): | ||
codeql.database.create(source_root="src") |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
import os | ||
import pytest | ||
|
||
from go_integration_test import * | ||
|
||
os.environ['LGTM_INDEX_IMPORT_PATH'] = "test" | ||
go_integration_test(source="work", db=None) | ||
def test(codeql, go, check_build_environment): | ||
check_build_environment.source_root = "work" | ||
os.environ["LGTM_INDEX_IMPORT_PATH"] = "test" | ||
codeql.database.create(source_root="work") |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import os | ||
|
||
from go_integration_test import * | ||
|
||
os.environ['LGTM_INDEX_IMPORT_PATH'] = "test" | ||
go_integration_test(source="work") | ||
def test(codeql, go, check_build_environment): | ||
check_build_environment.source_root = "work" | ||
os.environ["LGTM_INDEX_IMPORT_PATH"] = "test" | ||
codeql.database.create(source_root="work") |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import os | ||
|
||
from go_integration_test import * | ||
|
||
os.environ['LGTM_INDEX_IMPORT_PATH'] = "test" | ||
go_integration_test() | ||
def test(codeql, go): | ||
os.environ["LGTM_INDEX_IMPORT_PATH"] = "test" | ||
codeql.database.create(source_root="src") |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import os | ||
|
||
from go_integration_test import * | ||
|
||
os.environ['LGTM_INDEX_IMPORT_PATH'] = "test" | ||
go_integration_test(source="work", db=None, runFunction=runUnsuccessfully) | ||
def test(codeql, go, check_build_environment): | ||
check_build_environment.source_root = "work" | ||
os.environ["LGTM_INDEX_IMPORT_PATH"] = "test" | ||
codeql.database.create(source_root="work", _assert_failure=True) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import os | ||
|
||
from go_integration_test import * | ||
|
||
os.environ['LGTM_INDEX_IMPORT_PATH'] = "test" | ||
go_integration_test(source="work", db=None, runFunction=runUnsuccessfully) | ||
def test(codeql, go, check_build_environment): | ||
check_build_environment.source_root = "work" | ||
os.environ["LGTM_INDEX_IMPORT_PATH"] = "test" | ||
codeql.database.create(source_root="work", _assert_failure=True) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import os | ||
|
||
from go_integration_test import * | ||
|
||
os.environ['LGTM_INDEX_IMPORT_PATH'] = "test" | ||
go_integration_test(source="work", db=None) | ||
def test(codeql, go, check_build_environment): | ||
check_build_environment.source_root = "work" | ||
os.environ["LGTM_INDEX_IMPORT_PATH"] = "test" | ||
codeql.database.create(source_root="work") |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import os | ||
|
||
from go_integration_test import * | ||
|
||
os.environ['LGTM_INDEX_IMPORT_PATH'] = "test" | ||
go_integration_test(source="work", db=None) | ||
def test(codeql, go, check_build_environment): | ||
check_build_environment.source_root = "work" | ||
os.environ["LGTM_INDEX_IMPORT_PATH"] = "test" | ||
codeql.database.create(source_root="work") |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import os | ||
|
||
from go_integration_test import * | ||
|
||
os.environ['GITHUB_REPOSITORY'] = "a/b" | ||
go_integration_test(source="work", db=None) | ||
def test(codeql, go, check_build_environment): | ||
check_build_environment.source_root = "work" | ||
os.environ["GITHUB_REPOSITORY"] = "a/b" | ||
codeql.database.create(source_root="work") |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
from go_integration_test import * | ||
import os | ||
|
||
os.environ['CODEQL_EXTRACTOR_GO_EXTRACT_VENDOR_DIRS'] = "true" | ||
go_integration_test() | ||
|
||
def test(codeql, go): | ||
os.environ["CODEQL_EXTRACTOR_GO_EXTRACT_VENDOR_DIRS"] = "true" | ||
codeql.database.create(source_root="src") |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
from go_integration_test import * | ||
|
||
go_integration_test() | ||
def test(codeql, go): | ||
codeql.database.create(source_root="src") |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
from go_integration_test import * | ||
|
||
go_integration_test() | ||
def test(codeql, go): | ||
codeql.database.create(source_root="src") |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
from go_integration_test import * | ||
|
||
go_integration_test() | ||
def test(codeql, go): | ||
codeql.database.create(source_root="src") |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
from go_integration_test import * | ||
|
||
go_integration_test() | ||
def test(codeql, go): | ||
codeql.database.create(source_root="src") |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
from go_integration_test import * | ||
|
||
go_integration_test() | ||
def test(codeql, go): | ||
codeql.database.create(source_root="src") |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
from go_integration_test import * | ||
|
||
go_integration_test() | ||
def test(codeql, go): | ||
codeql.database.create(source_root="src") |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
from go_integration_test import * | ||
|
||
go_integration_test() | ||
def test(codeql, go): | ||
codeql.database.create(source_root="src") |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from go_integration_test import * | ||
|
||
go_integration_test(toolchain="go1.21.0") | ||
def test(codeql, go, check_build_environment): | ||
check_build_environment.env = {"GOTOOLCHAIN": "go1.21.0"} | ||
codeql.database.create(source_root="src") |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
from go_integration_test import * | ||
|
||
go_integration_test() | ||
def test(codeql, go): | ||
codeql.database.create(source_root="src") |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
from go_integration_test import * | ||
|
||
go_integration_test() | ||
def test(codeql, go): | ||
codeql.database.create(source_root="src") |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
from go_integration_test import * | ||
|
||
go_integration_test() | ||
def test(codeql, go): | ||
codeql.database.create(source_root="src") |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
from go_integration_test import * | ||
|
||
go_integration_test() | ||
def test(codeql, go): | ||
codeql.database.create(source_root="src") |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
from go_integration_test import * | ||
|
||
go_integration_test() | ||
def test(codeql, go): | ||
codeql.database.create(source_root="src") |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
from go_integration_test import * | ||
|
||
go_integration_test() | ||
def test(codeql, go): | ||
codeql.database.create(source_root="src") |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
from go_integration_test import * | ||
|
||
go_integration_test() | ||
def test(codeql, go): | ||
codeql.database.create(source_root="src") |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
from go_integration_test import * | ||
|
||
go_integration_test() | ||
def test(codeql, go): | ||
codeql.database.create(source_root="src") |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
import os | ||
import runs_on | ||
|
||
from go_integration_test import * | ||
|
||
os.environ['LGTM_INDEX_IMPORT_PATH'] = "deptest" | ||
go_integration_test(source="work") | ||
@runs_on.linux | ||
def test(codeql, go, check_build_environment): | ||
check_build_environment.source_root = "work" | ||
os.environ["LGTM_INDEX_IMPORT_PATH"] = "deptest" | ||
codeql.database.create(source_root="work") |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
import os | ||
import runs_on | ||
|
||
from go_integration_test import * | ||
|
||
os.environ['LGTM_INDEX_IMPORT_PATH'] = "glidetest" | ||
go_integration_test(source="work") | ||
@runs_on.linux | ||
def test(codeql, go, check_build_environment): | ||
check_build_environment.source_root = "work" | ||
os.environ["LGTM_INDEX_IMPORT_PATH"] = "glidetest" | ||
codeql.database.create(source_root="work") |
This file was deleted.