diff options
author | alisdair sullivan <alisdairsullivan@gmail.com> | 2017-01-28 23:28:01 -0800 |
---|---|---|
committer | alisdair sullivan <alisdairsullivan@gmail.com> | 2017-01-28 23:28:01 -0800 |
commit | 8e055041607868fe6f5b37d93804c34b670b76a3 (patch) | |
tree | 6ad83bdefe6b308ef1268eb6160bbda014e3843b /test | |
parent | 6c416febc2dfc9811270c20d090f43009d3bfc64 (diff) |
comment `ERL_COMPILER_OPTIONS` tests
Diffstat (limited to 'test')
-rw-r--r-- | test/rebar_compile_SUITE.erl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/rebar_compile_SUITE.erl b/test/rebar_compile_SUITE.erl index aec5dff..d5cc8b4 100644 --- a/test/rebar_compile_SUITE.erl +++ b/test/rebar_compile_SUITE.erl @@ -1397,6 +1397,9 @@ include_file_in_src_test(Config) -> ["as", "test", "compile"], {ok, [{app, Name}]}). +%% this test sets the env var, compiles, records the file last modified timestamp, +%% recompiles and compares the file last modified timestamp to ensure it hasn't +%% changed. this test should run on 19.x+ dont_recompile_when_erl_compiler_options_env_does_not_change(Config) -> %% save existing env to restore after test ExistingEnv = os:getenv("ERL_COMPILER_OPTIONS"), @@ -1435,6 +1438,9 @@ dont_recompile_when_erl_compiler_options_env_does_not_change(Config) -> _ -> os:putenv("ERL_COMPILER_OPTIONS", ExistingEnv) end. +%% this test compiles, records the file last modified timestamp, sets the env +%% var, recompiles and compares the file last modified timestamp to ensure it +%% has changed. this test should run on 19.x+ recompile_when_erl_compiler_options_env_changes(Config) -> %% save existing env to restore after test ExistingEnv = os:getenv("ERL_COMPILER_OPTIONS"), @@ -1473,6 +1479,9 @@ recompile_when_erl_compiler_options_env_changes(Config) -> _ -> os:putenv("ERL_COMPILER_OPTIONS", ExistingEnv) end. +%% this test sets the env var, compiles, records the file last modified +%% timestamp, recompiles and compares the file last modified timestamp to +%% ensure it has changed. this test should run on 18.x always_recompile_when_erl_compiler_options_set(Config) -> %% save existing env to restore after test ExistingEnv = os:getenv("ERL_COMPILER_OPTIONS"), |