Skip to content

Commit e1a2493

Browse files
committed
Add a test
1 parent cda51c2 commit e1a2493

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

test/choosetests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const TESTNAMES = [
2929
"channels", "iostream", "secretbuffer", "specificity",
3030
"reinterpretarray", "syntax", "corelogging", "missing", "asyncmap",
3131
"smallarrayshrink", "opaque_closure", "filesystem", "download",
32-
"scopedvalues",
32+
"scopedvalues", "compileall"
3333
]
3434

3535
const INTERNET_REQUIRED_LIST = [

test/compileall.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# This test builds a full system image, so it can take a little while.
2+
# We make it a sepearate test target here, so that it can run in parallel
3+
# with the rest of the tests.
4+
5+
mktempdir() do dir
6+
run(`$(Base.julia_cmd()) --compile=all --strip-ir --output-o $(dir)/sys.o.a -e 'exit()'`)
7+
Base.Linking.link_image(joinpath(dir, "sys.o.a"), joinpath(dir, "sys.so"))
8+
@test success(`$(Base.julia_cmd()) -J $(dir)/sys.so -e 'Base.scrub_repl_backtrace(nothing); exit()'`)
9+
end

0 commit comments

Comments
 (0)