Skip to content

Commit

Permalink
add tests to --project
Browse files Browse the repository at this point in the history
  • Loading branch information
Moelf committed May 6, 2019
1 parent b3b75cf commit 076de66
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/cmdlineargs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ let exename = `$(Base.julia_cmd()) --startup-file=no`
@test startswith(read(`$exename --help`, String), header)
end

# --project
let expanded = abspath(expanduser("~/foo"))
@test occursin(expanded, readchomp(`$exename --project='~/foo' -E 'Base.active_project()'`))
@test !occursin("~", readchomp(`$exename --project='~/foo' -E 'Base.active_project()'`))
end

# --quiet, --banner
let t(q,b) = "Base.JLOptions().quiet == $q && Base.JLOptions().banner == $b"
@test success(`$exename -e $(t(0, -1))`)
Expand Down

0 comments on commit 076de66

Please sign in to comment.