2019-02-28 04:48:59 +00:00
|
|
|
#!/usr/bin/env julia
|
2018-09-07 17:15:46 +00:00
|
|
|
# Verify the version:
|
2019-03-05 16:40:40 +00:00
|
|
|
if VERSION != v"1.0.2"
|
2018-09-07 17:15:46 +00:00
|
|
|
exit(1)
|
|
|
|
end
|
|
|
|
|
2019-02-26 16:50:16 +00:00
|
|
|
try
|
|
|
|
# Test that the package was installed.
|
|
|
|
using IteratorInterfaceExtensions
|
2018-10-01 02:20:22 +00:00
|
|
|
|
2019-02-26 16:50:16 +00:00
|
|
|
# Verify that the environment variables are set correctly for julia 1.0+
|
|
|
|
@assert "julia" ∈ readdir(Sys.BINDIR)
|
|
|
|
catch
|
|
|
|
exit(1)
|
|
|
|
end
|
2018-09-07 17:15:46 +00:00
|
|
|
|
2019-03-13 16:14:05 +00:00
|
|
|
# Verify that kernels are not installed in home directory (issue #620)
|
|
|
|
try
|
|
|
|
using IJulia
|
2019-04-30 06:35:15 +00:00
|
|
|
@assert IJulia.kerneldir() == ENV["NB_PYTHON_PREFIX"] * "/share/jupyter/kernels"
|
2019-03-13 16:14:05 +00:00
|
|
|
catch
|
|
|
|
exit(1)
|
|
|
|
end
|
|
|
|
|
2018-09-07 17:15:46 +00:00
|
|
|
exit(0)
|