Skip to content

Commit e99a106

Browse files
author
Frankie Robertson
committed
Add test for Julia project.toml in binder subdirectory
1 parent 61b76f6 commit e99a106

File tree

5 files changed

+77
-0
lines changed

5 files changed

+77
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file is machine-generated - editing it directly is not advised
2+
3+
julia_version = "1.8.2"
4+
manifest_format = "2.0"
5+
project_hash = "8a6b9faef104dfa92a55997106baee3560dc25bc"
6+
7+
[[deps.IteratorInterfaceExtensions]]
8+
git-tree-sha1 = "a3f24677c21f5bbe9d2a714f95dcd58337fb2856"
9+
uuid = "82899510-4779-5014-852e-03e436cf321d"
10+
version = "1.0.0"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[deps]
2+
IteratorInterfaceExtensions = "82899510-4779-5014-852e-03e436cf321d"
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This file is machine-generated - editing it directly is not advised
2+
3+
julia_version = "1.8.2"
4+
manifest_format = "2.0"
5+
project_hash = "663bcf2fe6af67425c484706d7562ccb3a370117"
6+
7+
[[deps.Adapt]]
8+
deps = ["LinearAlgebra"]
9+
git-tree-sha1 = "195c5505521008abea5aee4f96930717958eac6f"
10+
uuid = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
11+
version = "3.4.0"
12+
13+
[[deps.Artifacts]]
14+
uuid = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
15+
16+
[[deps.CompilerSupportLibraries_jll]]
17+
deps = ["Artifacts", "Libdl"]
18+
uuid = "e66e0078-7015-5450-92f7-15fbd957f2ae"
19+
version = "0.5.2+0"
20+
21+
[[deps.Libdl]]
22+
uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
23+
24+
[[deps.LinearAlgebra]]
25+
deps = ["Libdl", "libblastrampoline_jll"]
26+
uuid = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
27+
28+
[[deps.OpenBLAS_jll]]
29+
deps = ["Artifacts", "CompilerSupportLibraries_jll", "Libdl"]
30+
uuid = "4536629a-c528-5b80-bd46-f80d51c5b363"
31+
version = "0.3.20+0"
32+
33+
[[deps.libblastrampoline_jll]]
34+
deps = ["Artifacts", "Libdl", "OpenBLAS_jll"]
35+
uuid = "8e850b90-86db-534c-a0d3-1478176c7d93"
36+
version = "5.1.1+0"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[deps]
2+
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"

tests/julia/project-binder-dir/verify

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/usr/bin/env julia
2+
3+
if VERSION != v"1.8.2"
4+
println("Julia version should be 1.8.2")
5+
exit(1)
6+
end
7+
8+
# Verify that the environment variables are set correctly for julia 1.0+
9+
@assert "julia" readdir(Sys.BINDIR)
10+
11+
try
12+
# Test that the package was installed.
13+
using Adapt
14+
catch
15+
println("Should be able to load Adapt")
16+
exit(1)
17+
end
18+
19+
try
20+
using IteratorInterfaceExtensions
21+
# Test that the package was not installed.
22+
println("Should not be able to load IteratorInterfaceExtensions")
23+
exit(1)
24+
catch
25+
end
26+
27+
exit(0)

0 commit comments

Comments
 (0)