Skip to content

Commit

Permalink
Add test_sysimage
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Apr 1, 2019
1 parent e1cf765 commit a879830
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions test/test_sysimage.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import sys

import pytest

from .test_compatible_exe import runcode
from julia.sysimage import build_sysimage


@pytest.mark.pyjulia__using_default_setup
@pytest.mark.julia
def test_build_and_load(tmpdir):
sysimage_path = str(tmpdir.join("sys.so"))
build_sysimage(sysimage_path)

runcode(
sys.executable,
"""
from julia.api import Julia
sysimage_path = {!r}
jl = Julia(sysimage=sysimage_path)
""".format(
sysimage_path
),
)

0 comments on commit a879830

Please sign in to comment.