Skip to content

Commit

Permalink
Instantiate while testing (#205)
Browse files Browse the repository at this point in the history
* instantiate before starting to test

* instantiate Pkg
  • Loading branch information
boriskaus authored Oct 30, 2024
1 parent e6f8a88 commit 3d13a77
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
name = "PETSc"
uuid = "ace2c81b-2b5f-4b1e-a30d-d662738edfe0"
authors = ["Simon Byrne <[email protected]>"]
version = "0.3.0"
version = "0.3.1"

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

[compat]
Expand Down
4 changes: 4 additions & 0 deletions test/options.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ end

@testset "parse_options tests" begin
@test begin

julia = joinpath(Sys.BINDIR, Base.julia_exename())
# Force packages to be installed
run(`$(julia) --startup-file=no --project -e "using Pkg; Pkg.instantiate()" `)

run(`$(julia) --startup-file=no --project -e "using PETSc
using Test
opts = PETSc.parse_options(ARGS)
Expand Down
4 changes: 3 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
using Test
using MPI: MPI, mpiexec
using PETSc, PETSc_jll
using PETSc, PETSc_jll, Pkg

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

import MPIPreferences
@info "Testing PETSc.jl with" MPIPreferences.binary MPIPreferences.abi PETSc_jll.host_platform
Expand Down

0 comments on commit 3d13a77

Please sign in to comment.