Skip to content

Commit

Permalink
clean legacy option
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger-luo committed Aug 6, 2020
1 parent 0f7d1ab commit 1eebf89
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion test/Foo/Comonicon.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name = "foo"

[install]
completion=true
export_path=true
quiet=false
compile="min"
optimize=2
Expand Down
7 changes: 3 additions & 4 deletions test/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ d = Dict(
"install" => Dict(
"optimize" => 2,
"quiet" => false,
"export_path" => true,
"completion" => true,
"compile" => "min",
),
Expand All @@ -57,14 +56,14 @@ d = Dict(

@test d == read_toml(Foo)

Comonicon.build(Foo, false; bin = PATH.project("test", "bin"), quiet = true, export_path = false)
Comonicon.build(Foo, false; bin = PATH.project("test", "bin"), quiet = true)
@test isfile(PATH.project("test", "bin", "foo"))
@test isfile(PATH.project("test", "bin", "foo.jl"))


mock(create_sysimage) do plus
@assert plus isa Mock
Comonicon.build(Foo, true; bin = PATH.project("test", "bin"), quiet = true, export_path = false)
Comonicon.build(Foo, true; bin = PATH.project("test", "bin"), quiet = true)
end

@test ispath(PATH.project("test", "Foo", "deps"))
Expand All @@ -73,7 +72,7 @@ empty!(ARGS)
push!(ARGS, "sysimg")
mock(create_sysimage) do plus
@assert plus isa Mock
Comonicon.install(Foo; bin = PATH.project("test", "bin"), quiet = true, export_path = false)
Comonicon.install(Foo; bin = PATH.project("test", "bin"), quiet = true)
end

@test isfile(PATH.project("test", "Foo", "deps", BuildTools.tarball_name("foo")))
Expand Down
1 change: 0 additions & 1 deletion test/parse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ Comonicon.install(
bin = Comonicon.PATH.project("test", "bin"),
completion = false,
quiet = false,
export_path = false,
)

@test isfile(Comonicon.PATH.project("test", "bin", "dummy"))
Expand Down

0 comments on commit 1eebf89

Please sign in to comment.