mirror of
https://github.com/correl/rebar.git
synced 2024-12-24 11:50:52 +00:00
gpb: add inttest for recompilation with no changes
This commit is contained in:
parent
1ce7059adb
commit
9b1f807f0c
1 changed files with 6 additions and 0 deletions
|
@ -79,6 +79,12 @@ run(_Dir) ->
|
|||
TestMTime2 = read_mtime(TestErl),
|
||||
?assert(TestMTime2 > TestMTime1),
|
||||
|
||||
?DEBUG("Verifying recompilation with no changes~n", []),
|
||||
TestMTime3 = read_mtime(TestErl),
|
||||
?assertMatch({ok, _}, retest_sh:run("./rebar compile", [])),
|
||||
TestMTime4 = read_mtime(TestErl),
|
||||
?assert(TestMTime3 =:= TestMTime4),
|
||||
|
||||
?DEBUG("Verify cleanup~n", []),
|
||||
?assertMatch({ok, _}, retest_sh:run("./rebar clean", [])),
|
||||
ok = check_files_deleted(),
|
||||
|
|
Loading…
Reference in a new issue