Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update linux/windows bundle API to support newer ApplicationBuilder f…
…eatures: - binary_name - cpu_target - commandline_app - snoopfile - autosnoop
- Loading branch information
Showing
5 changed files
with
50 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Windows and Linux tests | ||
|
||
using Test | ||
using Pkg | ||
using ApplicationBuilder | ||
|
||
builddir = mktempdir() | ||
@assert isdir(builddir) | ||
|
||
@testset "HelloWorld.app" begin | ||
@test 0 == include("build_examples/commandline_hello.jl") | ||
@test isdir(joinpath(builddir, "hello")) | ||
@test success(`$builddir/hello/bin/hello`) | ||
#@test success(`open $builddir/hello.app`) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,22 @@ | ||
using Test | ||
|
||
@testset "ApplicationBuilder.jl" begin | ||
|
||
# TODO: Make the tests work on Windows and Linux!!! :'( | ||
@static if Sys.isapple() | ||
|
||
@testset "ApplicationBuilder.jl" begin | ||
@testset "Test ApplicationBuilder (by compiling examples/*.jl)" begin | ||
include("ApplicationBuilder.jl") | ||
end | ||
@testset "Command-line interface (compiling examples/*.jl)" begin | ||
include("build_app-cli.jl") | ||
end | ||
|
||
else # Windows and Linux | ||
|
||
@testset "bundle.jl" begin | ||
include("bundle.jl") | ||
end | ||
|
||
end | ||
end |