Skip to content

Commit ce481ae

Browse files
committed
test changing tag
1 parent 2ad7ee1 commit ce481ae

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

test/runtests.jl

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ module TestJLL end
9090

9191
# Package with a augment_platform!
9292
@static if VERSION >= v"1.6.0-DEV"
93-
Pkg.develop(PackageSpec(path=joinpathA(@__DIR__, "LAMMPS_jll")))
93+
Pkg.develop(PackageSpec(path=joinpath(@__DIR__, "LAMMPS_jll")))
9494
Pkg.instantiate()
9595
@test_nowarn @eval TestJLL using LAMMPS_jll
9696
@test @eval TestJLL LAMMPS_jll.is_available()
@@ -99,6 +99,21 @@ module TestJLL end
9999
@test isfile(@eval TestJLL LAMMPS_jll.get_liblammps_path())
100100
@test isdir(@eval TestJLL LAMMPS_jll.artifact_dir)
101101
@test occursin(Sys.BINDIR, @eval TestJLL LAMMPS_jll.LIBPATH[])
102+
103+
artifact_dir = @eval TestJLL LAMMPS_jll.artifact_dir
104+
105+
if !Sys.iswindows()
106+
@eval TestJLL LAMMPS_jll.set_abi(:MPItrampoline)
107+
script = """
108+
using Test
109+
using LAMMPS_jll
110+
@test LAMMPS_jll.abi == "MPItrampoline"
111+
@test LAMMPS_jll.is_available()
112+
@test isdir(LAMMPS_jll.artifact_dir)
113+
@test LAMMPS_jll.artifact_dir !== $(repr(artifact_dir))
114+
"""
115+
@test success(pipeline(`$(Base.julia_cmd()) --project=$dir -e $script`, stderr=stderr, stdout=stdout))
116+
end
102117
end
103118
end
104119
end

0 commit comments

Comments
 (0)