forked from JuliaLang/Pkg.jl
-
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.
Added test for preference sandboxing of implicit test dependencies (J…
- Loading branch information
1 parent
63e9558
commit ac0e850
Showing
11 changed files
with
142 additions
and
0 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
39 changes: 39 additions & 0 deletions
39
test/test_packages/Sandbox_PreservePrefsImplicit/Manifest.toml
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,39 @@ | ||
# This file is machine-generated - editing it directly is not advised | ||
|
||
julia_version = "1.10.0-DEV" | ||
manifest_format = "2.0" | ||
project_hash = "e136fd416d7f0eac7db513d485d3aaa3148ab079" | ||
|
||
[[deps.Dates]] | ||
deps = ["Printf"] | ||
uuid = "ade2ca70-3891-5945-98fb-dc099432e06a" | ||
|
||
[[deps.Foo]] | ||
deps = ["FooDep"] | ||
path = "dev/Foo" | ||
uuid = "128bfcea-dc33-4310-8fcf-6a5a6a7c0677" | ||
version = "0.1.0" | ||
|
||
[[deps.FooDep]] | ||
deps = ["Preferences"] | ||
path = "dev/FooDep" | ||
uuid = "22d90790-ba35-49ef-9cc5-1d4fefcbe869" | ||
version = "0.1.0" | ||
|
||
[[deps.Preferences]] | ||
deps = ["TOML"] | ||
git-tree-sha1 = "47e5f437cc0e7ef2ce8406ce1e7e24d44915f88d" | ||
uuid = "21216c6a-2e73-6563-6e65-726566657250" | ||
version = "1.3.0" | ||
|
||
[[deps.Printf]] | ||
deps = ["Unicode"] | ||
uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7" | ||
|
||
[[deps.TOML]] | ||
deps = ["Dates"] | ||
uuid = "fa267f1f-6049-4f14-aa54-33bafae1ed76" | ||
version = "1.0.3" | ||
|
||
[[deps.Unicode]] | ||
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5" |
18 changes: 18 additions & 0 deletions
18
test/test_packages/Sandbox_PreservePrefsImplicit/Project.toml
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,18 @@ | ||
authors = ["Carsten Bauer <[email protected]>"] | ||
name = "Sandbox_PreservePrefsImplicit" | ||
uuid = "ecddbb86-518e-4a4d-b30b-c11ee99fa784" | ||
version = "0.1.0" | ||
|
||
[deps] | ||
Foo = "128bfcea-dc33-4310-8fcf-6a5a6a7c0677" | ||
|
||
[extras] | ||
FooDep = "22d90790-ba35-49ef-9cc5-1d4fefcbe869" | ||
Foo = "128bfcea-dc33-4310-8fcf-6a5a6a7c0677" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
|
||
[preferences] | ||
FooDep.weather = "sunny" | ||
|
||
[targets] | ||
test = ["Test", "Foo"] |
10 changes: 10 additions & 0 deletions
10
test/test_packages/Sandbox_PreservePrefsImplicit/dev/Foo/Manifest.toml
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,10 @@ | ||
# This file is machine-generated - editing it directly is not advised | ||
|
||
julia_version = "1.10.0-DEV" | ||
manifest_format = "2.0" | ||
project_hash = "9562b3808eb1a86b32d5877e169219af8bc5346a" | ||
|
||
[[deps.FooDep]] | ||
path = "../FooDep" | ||
uuid = "22d90790-ba35-49ef-9cc5-1d4fefcbe869" | ||
version = "0.1.0" |
7 changes: 7 additions & 0 deletions
7
test/test_packages/Sandbox_PreservePrefsImplicit/dev/Foo/Project.toml
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,7 @@ | ||
name = "Foo" | ||
uuid = "128bfcea-dc33-4310-8fcf-6a5a6a7c0677" | ||
authors = ["Carsten Bauer <[email protected]>"] | ||
version = "0.1.0" | ||
|
||
[deps] | ||
FooDep = "22d90790-ba35-49ef-9cc5-1d4fefcbe869" |
5 changes: 5 additions & 0 deletions
5
test/test_packages/Sandbox_PreservePrefsImplicit/dev/Foo/src/Foo.jl
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,5 @@ | ||
module Foo | ||
|
||
using FooDep | ||
|
||
end # module Foo |
27 changes: 27 additions & 0 deletions
27
test/test_packages/Sandbox_PreservePrefsImplicit/dev/FooDep/Manifest.toml
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,27 @@ | ||
# This file is machine-generated - editing it directly is not advised | ||
|
||
julia_version = "1.10.0-DEV" | ||
manifest_format = "2.0" | ||
project_hash = "5784e7f1610542ec1dd97b517265a6694167840e" | ||
|
||
[[deps.Dates]] | ||
deps = ["Printf"] | ||
uuid = "ade2ca70-3891-5945-98fb-dc099432e06a" | ||
|
||
[[deps.Preferences]] | ||
deps = ["TOML"] | ||
git-tree-sha1 = "47e5f437cc0e7ef2ce8406ce1e7e24d44915f88d" | ||
uuid = "21216c6a-2e73-6563-6e65-726566657250" | ||
version = "1.3.0" | ||
|
||
[[deps.Printf]] | ||
deps = ["Unicode"] | ||
uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7" | ||
|
||
[[deps.TOML]] | ||
deps = ["Dates"] | ||
uuid = "fa267f1f-6049-4f14-aa54-33bafae1ed76" | ||
version = "1.0.3" | ||
|
||
[[deps.Unicode]] | ||
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5" |
7 changes: 7 additions & 0 deletions
7
test/test_packages/Sandbox_PreservePrefsImplicit/dev/FooDep/Project.toml
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,7 @@ | ||
name = "FooDep" | ||
uuid = "22d90790-ba35-49ef-9cc5-1d4fefcbe869" | ||
authors = ["Carsten Bauer <[email protected]>"] | ||
version = "0.1.0" | ||
|
||
[deps] | ||
Preferences = "21216c6a-2e73-6563-6e65-726566657250" |
8 changes: 8 additions & 0 deletions
8
test/test_packages/Sandbox_PreservePrefsImplicit/dev/FooDep/src/FooDep.jl
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,8 @@ | ||
module FooDep | ||
|
||
using Preferences | ||
|
||
set!(key, value) = @set_preferences!(key=>value) | ||
get(key) = @load_preference(key) | ||
|
||
end # module FooDep |
5 changes: 5 additions & 0 deletions
5
test/test_packages/Sandbox_PreservePrefsImplicit/src/Sandbox_PreservePrefsImplicit.jl
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,5 @@ | ||
module Sandbox_PreservePrefsImplicit | ||
|
||
using Foo | ||
|
||
end # module Sandbox_PreservePrefsImplicit |
2 changes: 2 additions & 0 deletions
2
test/test_packages/Sandbox_PreservePrefsImplicit/test/runtests.jl
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,2 @@ | ||
# using Foo | ||
# @show Foo.FooDep.get("weather") |