Skip to content

Commit

Permalink
add --inline command line tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebolewski committed Jan 2, 2015
1 parent 94dd3cc commit f32430e
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 @@ -80,6 +80,12 @@ end
@test readchomp(`$exename --depwarn=yes -E "Base.syntax_deprecation_warnings(false)"`) == "true"
@test !success(`$exename --depwarn=false`)

# --inline
@test readchomp(`$exename -E "bool(Base.JLCompilerOpts().can_inline)"`) == "true"
@test readchomp(`$exename --inline=yes -E "bool(Base.JLCompilerOpts().can_inline)"`) == "true"
@test readchomp(`$exename --inline=no -E "bool(Base.JLCompilerOpts().can_inline)"`) == "false"
@test !success(`$exename --inline=false`)

# pass arguments
let testfile = joinpath(dirname(@__FILE__), "test_loadfile.jl")
@test readchomp(`$exename $testfile foo -bar --baz`) == "UTF8String[\"foo\",\"-bar\",\"--baz\"]"
Expand Down

0 comments on commit f32430e

Please sign in to comment.