Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package test fails #38

Open
m-kahr opened this issue Nov 29, 2018 · 1 comment
Open

package test fails #38

m-kahr opened this issue Nov 29, 2018 · 1 comment

Comments

@m-kahr
Copy link

m-kahr commented Nov 29, 2018

Hi,
I just added ApplicationBuilder by,
(v1.0) pkg> add ApplicationBuilder
Then,
(v1.0 pkg> test Applicationbuilder
produces several errors on Ubuntu 18.04, Julia 1.0 (see output below). I also failed to build any of the provided examples "manually".

(v1.0) pkg> test ApplicationBuilder
Testing ApplicationBuilder
Resolving package versions...
Status /tmp/tmpRJOPpr/Manifest.toml
[f9309374] ApplicationBuilder v0.2.1
[c7e460c6] ArgParse v0.6.1
[bf4720bc] AssetRegistry v0.1.0
[9e28174c] BinDeps v0.8.10
[b99e7846] BinaryProvider v0.5.3
[ad839575] Blink v0.9.0
[e1450e63] BufferedStreams v1.0.0
[34da2185] Compat v1.4.0
[864edb3b] DataStructures v0.14.0
[de31a74c] FunctionalCollections v0.4.0
[c27321d9] Glob v1.2.0
[cd3eb016] HTTP v0.7.1
[0862f596] HTTPClient v0.2.1
[9fb69e20] Hiccup v0.2.2
[83e8ac13] IniFile v0.5.0
[97c1335a] JSExpr v0.4.0
[682c06a0] JSON v0.20.0
[50d2b5c4] Lazy v0.13.2
[b27032c2] LibCURL v0.4.1
[522f3ed2] LibExpat v0.5.0
[2ec943e9] Libz v1.0.0
[1914dd2f] MacroTools v0.4.4
[739be429] MbedTLS v0.6.6
[ffc61752] Mustache v0.5.8
[a975b10e] Mux v0.5.3
[510215fc] Observables v0.2.3
[bac558e1] OrderedCollections v1.0.2
[9b87118b] PackageCompiler v0.5.1
[fa939f87] Pidfile v1.1.0
[189a3867] Reexport v0.2.0
[ae029012] Requires v0.5.2
[aa65fe97] SnoopCompile v0.3.1
[bd369af6] Tables v0.1.11
[b718987f] TextWrap v0.3.0
[30578b45] URIParser v0.4.0
[0f1e0344] WebIO v0.6.1
[104b5d7c] WebSockets v1.1.0
[cc8bc4a8] Widgets v0.4.3
[c17dfb99] WinRPM v0.4.2
[2a0f44e3] Base64 [@stdlib/Base64]
[ade2ca70] Dates [@stdlib/Dates]
[8bb1440f] DelimitedFiles [@stdlib/DelimitedFiles]
[8ba89e20] Distributed [@stdlib/Distributed]
[7b1f6079] FileWatching [@stdlib/FileWatching]
[b77e0a4c] InteractiveUtils [@stdlib/InteractiveUtils]
[76f85450] LibGit2 [@stdlib/LibGit2]
[8f399da3] Libdl [@stdlib/Libdl]
[37e2e46d] LinearAlgebra [@stdlib/LinearAlgebra]
[56ddb016] Logging [@stdlib/Logging]
[d6f4376e] Markdown [@stdlib/Markdown]
[a63ad114] Mmap [@stdlib/Mmap]
[44cfe95a] Pkg [@stdlib/Pkg]
[de0858da] Printf [@stdlib/Printf]
[3fa0cd96] REPL [@stdlib/REPL]
[9a3f8284] Random [@stdlib/Random]
[ea8e919c] SHA [@stdlib/SHA]
[9e88b42a] Serialization [@stdlib/Serialization]
[1a1011a3] SharedArrays [@stdlib/SharedArrays]
[6462fe0b] Sockets [@stdlib/Sockets]
[2f01184e] SparseArrays [@stdlib/SparseArrays]
[10745b16] Statistics [@stdlib/Statistics]
[8dfed614] Test [@stdlib/Test]
[cf7118a7] UUIDs [@stdlib/UUIDs]
[4ec0a83e] Unicode [@stdlib/Unicode]
make_bundle_identifier Utils: Error During Test at /home/kahr/.julia/packages/ApplicationBuilder/gJLwU/test/ApplicationBuilder.jl:13
Test threw exception
Expression: occursin(#= /home/kahr/.julia/packages/ApplicationBuilder/gJLwU/test/ApplicationBuilder.jl:13 =# @r_str("^com.[a-z0-9]+.myappnamedthisapp22$"), ApplicationBuilder.make_bundle_identifier("My app named this_app22"))
UndefVarError: make_bundle_identifier not defined
Stacktrace:
[1] macro expansion at /home/kahr/.julia/packages/ApplicationBuilder/gJLwU/test/ApplicationBuilder.jl:13 [inlined]
[2] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Test/src/Test.jl:1083 [inlined]
[3] top-level scope at /home/kahr/.julia/packages/ApplicationBuilder/gJLwU/test/ApplicationBuilder.jl:13
HelloWorld.app: Error During Test at /home/kahr/.julia/packages/ApplicationBuilder/gJLwU/test/ApplicationBuilder.jl:19
Test threw exception
Expression: 0 == include("build_examples/hello.jl")
LoadError: ArgumentError: isdefined: too few arguments (expected 2)
Stacktrace:
[1] top-level scope at none:0
[2] include at ./boot.jl:317 [inlined]
[3] include_relative(::Module, ::String) at ./loading.jl:1041
[4] include(::Module, ::String) at ./sysimg.jl:29
[5] include(::String) at ./client.jl:388
[6] macro expansion at /home/kahr/.julia/packages/ApplicationBuilder/gJLwU/test/ApplicationBuilder.jl:19 [inlined]
[7] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Test/src/Test.jl:1083 [inlined]
[8] top-level scope at /home/kahr/.julia/packages/ApplicationBuilder/gJLwU/test/ApplicationBuilder.jl:19
in expression starting at /home/kahr/.julia/packages/ApplicationBuilder/gJLwU/test/build_examples/hello.jl:9
HelloWorld.app: Test Failed at /home/kahr/.julia/packages/ApplicationBuilder/gJLwU/test/ApplicationBuilder.jl:20
Expression: isdir("$(builddir)/HelloWorld.app")
Stacktrace:
[1] macro expansion at /home/kahr/.julia/packages/ApplicationBuilder/gJLwU/test/ApplicationBuilder.jl:20 [inlined]
[2] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Test/src/Test.jl:1083 [inlined]
[3] top-level scope at /home/kahr/.julia/packages/ApplicationBuilder/gJLwU/test/ApplicationBuilder.jl:19
HelloWorld.app: Error During Test at /home/kahr/.julia/packages/ApplicationBuilder/gJLwU/test/ApplicationBuilder.jl:21
Test threw exception
Expression: success(#= /home/kahr/.julia/packages/ApplicationBuilder/gJLwU/test/ApplicationBuilder.jl:21 =# @cmd("$builddir/HelloWorld.app/Contents/MacOS/hello"))
IOError: could not spawn /tmp/tmphMwh4B/HelloWorld.app/Contents/MacOS/hello: no such file or directory (ENOENT)
Stacktrace:
[1] _jl_spawn(::String, ::Array{String,1}, ::Cmd, ::Tuple{Base.DevNull,Base.DevNull,Base.DevNull}) at ./process.jl:367
[2] (::getfield(Base, Symbol("##494#495")){Cmd})(::Tuple{Base.DevNull,Base.DevNull,Base.DevNull}) at ./process.jl:509
[3] setup_stdio(::getfield(Base, Symbol("##494#495")){Cmd}, ::Tuple{Base.DevNull,Base.DevNull,Base.DevNull}) at ./process.jl:490
[4] #_spawn#493(::Nothing, ::Function, ::Cmd, ::Tuple{Base.DevNull,Base.DevNull,Base.DevNull}) at ./process.jl:508
[5] #_spawn at ./none:0 [inlined]
[6] #_spawn#499 at ./process.jl:548 [inlined]
[7] _spawn at ./process.jl:548 [inlined]
[8] success(::Cmd) at ./process.jl:701
[9] macro expansion at /home/kahr/.julia/packages/ApplicationBuilder/gJLwU/test/ApplicationBuilder.jl:21 [inlined]
[10] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Test/src/Test.jl:1083 [inlined]
[11] top-level scope at /home/kahr/.julia/packages/ApplicationBuilder/gJLwU/test/ApplicationBuilder.jl:19
No external Dependencies: Error During Test at /home/kahr/.julia/packages/ApplicationBuilder/gJLwU/test/ApplicationBuilder.jl:28
Test threw exception
Expression: !(success(pipeline(#= /home/kahr/.julia/packages/ApplicationBuilder/gJLwU/test/ApplicationBuilder.jl:29 =# @cmd("otool -l "$builddir/HelloWorld.app/Contents/MacOS/hello""),#= /home/kahr/.julia/packages/ApplicationBuilder/gJLwU/test/ApplicationBuilder.jl:30 =# @cmd("grep 'julia'"), #= /home/kahr/.julia/packages/ApplicationBuilder/gJLwU/test/ApplicationBuilder.jl:31 =# @cmd("grep -v '@rpath'"))))
IOError: could not spawn otool -l /tmp/tmphMwh4B/HelloWorld.app/Contents/MacOS/hello: no such file or directory (ENOENT)
Stacktrace:
[1] _jl_spawn(::String, ::Array{String,1}, ::Cmd, ::Tuple{Base.DevNull,RawFD,Base.DevNull}) at ./process.jl:367
[2] (::getfield(Base, Symbol("##494#495")){Cmd})(::Tuple{Base.DevNull,RawFD,Base.DevNull}) at ./process.jl:509
[3] setup_stdio(::getfield(Base, Symbol("##494#495")){Cmd}, ::Tuple{Base.DevNull,RawFD,Base.DevNull}) at ./process.jl:490
[4] #_spawn#493(::Base.ProcessChain, ::Function, ::Cmd, ::Tuple{Base.DevNull,RawFD,Base.DevNull}) at ./process.jl:508
[5] (::getfield(Base, Symbol("#kw##_spawn")))(::NamedTuple{(:chain,),Tuple{Base.ProcessChain}}, ::typeof(Base._spawn), ::Cmd, ::Tuple{Base.DevNull,RawFD,Base.DevNull}) at ./none:0
[6] #_spawn#491(::Base.ProcessChain, ::Function, ::Base.OrCmds, ::Tuple{Base.DevNull,RawFD,Base.DevNull}) at ./process.jl:411
[7] (::getfield(Base, Symbol("#kw##_spawn")))(::NamedTuple{(:chain,),Tuple{Base.ProcessChain}}, ::typeof(Base._spawn), ::Base.OrCmds, ::Tuple{Base.DevNull,RawFD,Base.DevNull}) at ./none:0
[8] #_spawn#491(::Nothing, ::Function, ::Base.OrCmds, ::Tuple{Base.DevNull,Base.DevNull,Base.DevNull}) at ./process.jl:411
[9] #_spawn at ./none:0 [inlined]
[10] #_spawn#499 at ./process.jl:548 [inlined]
[11] _spawn at ./process.jl:548 [inlined]
[12] success(::Base.OrCmds) at ./process.jl:701
[13] macro expansion at /home/kahr/.julia/packages/ApplicationBuilder/gJLwU/test/ApplicationBuilder.jl:28 [inlined]
[14] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Test/src/Test.jl:1083 [inlined]
[15] macro expansion at /home/kahr/.julia/packages/ApplicationBuilder/gJLwU/test/ApplicationBuilder.jl:28 [inlined]
[16] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Test/src/Test.jl:1083 [inlined]
[17] top-level scope at /home/kahr/.julia/packages/ApplicationBuilder/gJLwU/test/ApplicationBuilder.jl:19
commandline_app: Error During Test at /home/kahr/.julia/packages/ApplicationBuilder/gJLwU/test/ApplicationBuilder.jl:36
Test threw exception
Expression: 0 == include("build_examples/commandline_hello.jl")
LoadError: ArgumentError: isdefined: too few arguments (expected 2)
Stacktrace:
[1] top-level scope at none:0
[2] include at ./boot.jl:317 [inlined]
[3] include_relative(::Module, ::String) at ./loading.jl:1041
[4] include(::Module, ::String) at ./sysimg.jl:29
[5] include(::String) at ./client.jl:388
[6] macro expansion at /home/kahr/.julia/packages/ApplicationBuilder/gJLwU/test/ApplicationBuilder.jl:36 [inlined]
[7] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Test/src/Test.jl:1083 [inlined]
[8] top-level scope at /home/kahr/.julia/packages/ApplicationBuilder/gJLwU/test/ApplicationBuilder.jl:36
in expression starting at /home/kahr/.julia/packages/ApplicationBuilder/gJLwU/test/build_examples/commandline_hello.jl:7
commandline_app: Test Failed at /home/kahr/.julia/packages/ApplicationBuilder/gJLwU/test/ApplicationBuilder.jl:37
Expression: success(#= /home/kahr/.julia/packages/ApplicationBuilder/gJLwU/test/ApplicationBuilder.jl:37 =# @cmd("open $builddir/hello.app"))
Stacktrace:
[1] macro expansion at /home/kahr/.julia/packages/ApplicationBuilder/gJLwU/test/ApplicationBuilder.jl:37 [inlined]
[2] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Test/src/Test.jl:1083 [inlined]
[3] top-level scope at /home/kahr/.julia/packages/ApplicationBuilder/gJLwU/test/ApplicationBuilder.jl:36
Test Summary: | Pass Fail Error Total
Test ApplicationBuilder (by compiling examples/*.jl) | 1 2 5 8
make_bundle_identifier Utils | 1 1
HelloWorld.app | 1 1 3 5
No external Dependencies | 1 1
commandline_app | 1 1 2
ERROR: LoadError: Some tests did not pass: 1 passed, 2 failed, 5 errored, 0 broken.
in expression starting at /home/kahr/.julia/packages/ApplicationBuilder/gJLwU/test/runtests.jl:3
ERROR: Package ApplicationBuilder errored during testing

@NHDaly
Copy link
Owner

NHDaly commented Dec 5, 2018

:( Thanks for trying this @mikeKAH!

Sadly, i don't think anyone has tried running this on Linux in a long time. But definitely the tests all assumed they were running on a Mac, so i'm not surprised they fail. But I'd love to both A) add linux tests, and B) fix linux!

I just opened #39 for (A).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants