Skip to content

Commit 3d13a77

Browse files
authored
Instantiate while testing (#205)
* instantiate before starting to test * instantiate Pkg
1 parent e6f8a88 commit 3d13a77

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

Project.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
name = "PETSc"
22
uuid = "ace2c81b-2b5f-4b1e-a30d-d662738edfe0"
33
authors = ["Simon Byrne <simonbyrne@gmail.com>"]
4-
version = "0.3.0"
4+
version = "0.3.1"
55

66
[deps]
77
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
88
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
99
MPI = "da04e1cc-30fd-572f-bb4f-1f8673147195"
1010
MPIPreferences = "3da0fdf6-3ccc-4f1b-acd9-58baa6c99267"
1111
PETSc_jll = "8fa3689e-f0b9-5420-9873-adf6ccf46f2d"
12+
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
1213
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1314

1415
[compat]

test/options.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,11 @@ end
8787

8888
@testset "parse_options tests" begin
8989
@test begin
90+
9091
julia = joinpath(Sys.BINDIR, Base.julia_exename())
92+
# Force packages to be installed
93+
run(`$(julia) --startup-file=no --project -e "using Pkg; Pkg.instantiate()" `)
94+
9195
run(`$(julia) --startup-file=no --project -e "using PETSc
9296
using Test
9397
opts = PETSc.parse_options(ARGS)

test/runtests.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
using Test
22
using MPI: MPI, mpiexec
3-
using PETSc, PETSc_jll
3+
using PETSc, PETSc_jll, Pkg
44

5+
# Make sure that all dependencies are installed also on a clean system
6+
Pkg.instantiate()
57

68
import MPIPreferences
79
@info "Testing PETSc.jl with" MPIPreferences.binary MPIPreferences.abi PETSc_jll.host_platform

0 commit comments

Comments
 (0)