-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bbad8b7
commit fe8a6ee
Showing
5 changed files
with
102 additions
and
2 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
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,4 @@ | ||
[deps] | ||
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" | ||
TOML = "fa267f1f-6049-4f14-aa54-33bafae1ed76" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" |
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,13 @@ | ||
using Test | ||
|
||
@testset "Remove Bundles" begin | ||
count = 0 | ||
for depot in DEPOT_PATH | ||
path = joinpath(depot, "registries", "LocalCustomRegistry", "remove.jl") | ||
if isfile(path) | ||
run(`julia --startup-file=no $path`) | ||
count += 1 | ||
end | ||
end | ||
@test count == 1 | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using Test | ||
import Pkg | ||
import TOML | ||
|
||
@testset "Verify Bundles" begin | ||
count = 0 | ||
env_dir = joinpath(DEPOT_PATH[1], "environments") | ||
for named_env in readdir(env_dir) | ||
if contains(named_env, "Bundle") | ||
manifest_toml_file = joinpath(env_dir, named_env, "Manifest.toml") | ||
@assert isfile(manifest_toml_file) | ||
manifest_toml = TOML.parsefile(manifest_toml_file) | ||
resolved_version = manifest_toml["julia_version"] | ||
output = readchomp( | ||
`julia +$resolved_version --startup-file=no --project=@$named_env -e "import TestPackage; TestPackage.greet()"`, | ||
) | ||
package_version = manifest_toml["deps"]["TestPackage"][1]["version"] | ||
@test contains(output, "Hello, $(package_version)!") | ||
count += 1 | ||
end | ||
end | ||
@test count == 4 | ||
end |