@@ -7,14 +7,14 @@ PackageCompiler.compile_package("Matcha", "UnicodeFun", force = false, reuse = f
77# build again, with resuing the snoop file
88img_file = PackageCompiler. compile_package (" Matcha" , " UnicodeFun" , force = false , reuse = true )
99# TODO test revert - I suppose i wouldn't have enough rights on travis to move around dll's?
10-
10+ julia = Base . julia_cmd () . exec[ 1 ]
1111@testset " basic tests" begin
1212 @test isfile (img_file)
1313 userimg = PackageCompiler. sysimg_folder (" precompile.jl" )
1414 @test isfile (userimg)
1515 # Make sure we actually snooped stuff
1616 @test length (readlines (userimg)) > 700
17- @test success (` julia -J $(img_file) ` )
17+ @test success (` $ julia -J $(img_file) ` )
1818 mktempdir () do dir
1919 sysfile = joinpath (dir, " sys" )
2020 PackageCompiler. compile_system_image (sysfile, " native" )
2929 juliac = joinpath (@__DIR__ , " .." , " juliac.jl" )
3030 jlfile = joinpath (@__DIR__ , " .." , " examples" , " hello.jl" )
3131 cfile = joinpath (@__DIR__ , " .." , " examples" , " program.c" )
32- julia = Base. julia_cmd ()
3332 @test success (` $julia $juliac -vosej $jlfile $cfile $build ` )
3433 @test isfile (joinpath (build, " hello.$(Libdl. dlext) " ))
3534 @test isfile (joinpath (build, " hello$(executable_ext ()) " ))
0 commit comments