gpb: add inttest for recompilation with no changes

This commit is contained in:
Luis Rascao 2014-12-31 09:36:01 +00:00 committed by Tomas Abrahamsson
parent 1ce7059adb
commit 9b1f807f0c

View file

@ -79,6 +79,12 @@ run(_Dir) ->
TestMTime2 = read_mtime(TestErl), TestMTime2 = read_mtime(TestErl),
?assert(TestMTime2 > TestMTime1), ?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", []), ?DEBUG("Verify cleanup~n", []),
?assertMatch({ok, _}, retest_sh:run("./rebar clean", [])), ?assertMatch({ok, _}, retest_sh:run("./rebar clean", [])),
ok = check_files_deleted(), ok = check_files_deleted(),