Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Compiler/extras/CompilerDevTools/test/testpkg.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Pkg

Pkg.activate(dirname(@__DIR__)) do
Pkg.instantiate()
include("runtests.jl")
end
1 change: 0 additions & 1 deletion JuliaLowering/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
/Manifest.toml
16 changes: 16 additions & 0 deletions JuliaLowering/Manifest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This file is machine-generated - editing it directly is not advised

julia_version = "1.14.0-DEV"
manifest_format = "2.1"
project_hash = "16f6f8d58c46fe20d68a941bfaddb4590471548a"

[[deps.JuliaLowering]]
deps = ["JuliaSyntax"]
path = "."
uuid = "f3c80556-a63f-4383-b822-37d64f81a311"
version = "1.0.0-DEV"

[[deps.JuliaSyntax]]
path = "../JuliaSyntax"
uuid = "70703baa-626e-46a2-a12c-08ffd08c73b4"
version = "2.0.0-DEV"
6 changes: 0 additions & 6 deletions JuliaLowering/test/runtests_vendored.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@ try
# test local (dev) copy of JuliaLowering, not yet vendored into Base
Base.set_active_project(joinpath(@__DIR__, "..", "Project.toml"))
manifest_path = joinpath(@__DIR__, "..", "Manifest.toml")
isfile(manifest_path) && rm(manifest_path)

# activate and instantiate JuliaSyntax as a local package (rather than using
# Base.JuliaSyntax)
import Pkg
Pkg.instantiate()

# restore error hints (emptied by `testdefs.jl`) so that errors print as
# JuliaLowering expects them to
Expand Down
28 changes: 28 additions & 0 deletions deps/jlutilities/objectfile/Manifest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This file is machine-generated - editing it directly is not advised

julia_version = "1.14.0-DEV"
manifest_format = "2.1"
project_hash = "23b8253b8eadb7ba5d7489bb56f38819b7150654"

[[deps.ObjectFile]]
deps = ["Reexport", "StructIO"]
git-tree-sha1 = "22faba70c22d2f03e60fbc61da99c4ebfc3eb9ba"
registries = "General"
uuid = "d8793406-e978-5875-9003-1fc021f44a92"
version = "0.5.0"

[[deps.Reexport]]
git-tree-sha1 = "45e428421666073eab6f2da5c9d310d99bb12f9b"
registries = "General"
uuid = "189a3867-3050-52da-a836-e630ba90ab69"
version = "1.2.2"

[[deps.StructIO]]
git-tree-sha1 = "c581be48ae1cbf83e899b14c07a807e1787512cc"
registries = "General"
uuid = "53d494c1-5632-5724-8f4c-31dff12d585f"
version = "0.3.1"

[registries.General]
url = "https://github.com/JuliaRegistries/General.git"
uuid = "23338594-aafe-5451-b93e-139f81909106"
2 changes: 2 additions & 0 deletions deps/jlutilities/objectfile/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[deps]
ObjectFile = "d8793406-e978-5875-9003-1fc021f44a92"
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ end

const rmwait_timeout = running_under_rr() ? 300 : 30

ENV["JULIA_TEST_BUILDROOT"] = buildroot
if use_revise
# First put this at the top of the DEPOT PATH to install revise if necessary.
# Once it's loaded, we swizzle it to the end, to avoid confusing any tests.
Expand Down
47 changes: 31 additions & 16 deletions test/stdlib_dependencies.jl
Original file line number Diff line number Diff line change
@@ -1,14 +1,37 @@
# This file is a part of Julia. License is MIT: https://julialang.org/license

using Libdl
using Pkg
using Test
prev_env = Base.active_project()
Pkg.activate(temp=true)
Pkg.add(Pkg.PackageSpec(name="ObjectFile", uuid="d8793406-e978-5875-9003-1fc021f44a92", version="0.4"))
using ObjectFile
try

# Load ObjectFile.jl from the vendored jlutilities depot
buildroot = get(ENV, "JULIA_TEST_BUILDROOT", joinpath(@__DIR__, ".."))
depspath = joinpath(buildroot, "deps", "jlutilities")
if ispath(depspath)
depspath = realpath(depspath)
# With a source-tree use the vendored depot
pushfirst!(DEPOT_PATH, joinpath(depspath, "depot"))
using Pkg
old_active_project = Base.active_project()
Base.redirect_stdout(devnull) do
Base.redirect_stderr(devnull) do
Pkg.activate(realpath(joinpath(@__DIR__, "..", "deps", "jlutilities", "objectfile")))
Pkg.instantiate()
end
end
using ObjectFile
popfirst!(DEPOT_PATH)
Base.set_active_project(old_active_project)
else
# Without a source-tree - expect that the user has installed it for us - warn otherwise
ObjectFile_pkgid = Base.PkgId(Base.UUID("d8793406-e978-5875-9003-1fc021f44a92"), "ObjectFile")
if Base.locate_package(ObjectFile_pkgid) !== nothing
@eval using ObjectFile
end
end

if !@isdefined(ObjectFile)
@warn("ObjectFile.jl not available; skipping stdlib JLL dependency tests")
else
strip_soversion(lib::AbstractString) = Base.BinaryPlatforms.parse_dl_name_version(lib)[1]

function get_deps_objectfile_macos(lib_path::String)
Expand Down Expand Up @@ -249,8 +272,8 @@ try

# This is a manually-managed special case
if stdlib_name == "libblastrampoline_jll" &&
prop_name == :libblastrampoline &&
extraneous_deps in (["libopenblas64_"], ["libopenblas"])
prop_name == :libblastrampoline &&
extraneous_deps in (["libopenblas64_"], ["libopenblas"])
deps_mismatch = false
end

Expand Down Expand Up @@ -315,12 +338,4 @@ try
end
end
end

finally
if prev_env !== nothing
Pkg.activate(prev_env)
else
# If no previous environment, activate the default one
Pkg.activate()
end
end