-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the tests to use ReTest.jl (#461)
* Move the tests to use ReTest.jl This allows for a faster workflow when developing the package. Also made a few paths in the tests explicitly relative to the test/ directory instead of the PWD (since that may not be test/ when running the tests interactively). * Set BinaryBuilder compat to 0.5.8
- Loading branch information
1 parent
d965e86
commit 2c52e0f
Showing
8 changed files
with
65 additions
and
13 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# This is the test module for Clang.jl, intended for use by ReTest.jl. Note that | ||
# it should be loaded with ReTest.load() instead of includet() because the files | ||
# in the tests include() other files and that doesn't play well with | ||
# Revise. See: https://juliatesting.github.io/ReTest.jl/stable/#Working-with-Revise | ||
# | ||
# Just adding test/ to LOAD_PATH doesn't work because of the Project.toml file, | ||
# which makes Pkg treat the directory as a single package directory instead of a | ||
# directory containing possibly multiple modules. | ||
|
||
module ClangTests | ||
|
||
__revise_mode__ = :eval | ||
|
||
using ReTest | ||
|
||
include("jllenvs.jl") | ||
include("file.jl") | ||
include("generators.jl") | ||
|
||
include("test_mpi.jl") | ||
include("test_bitfield.jl") | ||
|
||
end |
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,5 +1,4 @@ | ||
using Clang | ||
using Test | ||
|
||
@testset "File" begin | ||
|
||
|
@@ -48,4 +47,4 @@ end | |
|
||
end | ||
|
||
end | ||
end |
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,13 +1,10 @@ | ||
using Clang | ||
using Test | ||
import ReTest: retest | ||
import Clang | ||
|
||
# Temporary hack to make @doc work in 1.11 for the documentation tests. See: | ||
# https://github.com/JuliaLang/julia/issues/54664 | ||
using REPL | ||
|
||
include("jllenvs.jl") | ||
include("file.jl") | ||
include("generators.jl") | ||
include("ClangTests.jl") | ||
|
||
include("test_mpi.jl") | ||
include("test_bitfield.jl") | ||
retest(Clang, ClangTests; stats=true) |
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