-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
51 additions
and
38 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,23 @@ | ||
using ReTestItems | ||
using ReTestItems, Pkg | ||
|
||
const BOLTZ_TEST_GROUP = lowercase(get(ENV, "BOLTZ_TEST_GROUP", "all")) | ||
@info "Running tests for group: $(BOLTZ_TEST_GROUP)" | ||
const BACKEND_GROUP = lowercase(get(ENV, "BACKEND_GROUP", "all")) | ||
const EXTRA_PKGS = String[] | ||
|
||
(BACKEND_GROUP == "all" || BACKEND_GROUP == "cuda") && push!(EXTRA_PKGS, "LuxCUDA") | ||
(BACKEND_GROUP == "all" || BACKEND_GROUP == "amdgpu") && push!(EXTRA_PKGS, "AMDGPU") | ||
|
||
if BOLTZ_TEST_GROUP == "all" | ||
ReTestItems.runtests(@__DIR__) | ||
else | ||
tag = Symbol(LUX_TEST_GROUP) | ||
ReTestItems.runtests(@__DIR__; tags=[tag]) | ||
if !isempty(EXTRA_PKGS) | ||
@info "Installing Extra Packages for testing" EXTRA_PKGS=EXTRA_PKGS | ||
Pkg.add(EXTRA_PKGS) | ||
Pkg.update() | ||
Base.retry_load_extensions() | ||
Pkg.instantiate() | ||
end | ||
|
||
const BOLTZ_TEST_GROUP = lowercase(get(ENV, "BOLTZ_TEST_GROUP", "all")) | ||
@info "Running tests for group: $BOLTZ_TEST_GROUP" | ||
const RETESTITEMS_NWORKERS = parse(Int, get(ENV, "RETESTITEMS_NWORKERS", "0")) | ||
|
||
ReTestItems.runtests( | ||
@__DIR__; tags=(BOLTZ_TEST_GROUP == "all" ? nothing : [Symbol(BOLTZ_TEST_GROUP)]), | ||
nworkers=ifelse(BACKEND_GROUP ∈ ("cuda", "amdgpu"), 0, RETESTITEMS_NWORKERS)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters