From 9b1f807f0c5a41d147372f1801d969cdb03ff570 Mon Sep 17 00:00:00 2001 From: Luis Rascao Date: Wed, 31 Dec 2014 09:36:01 +0000 Subject: [PATCH] gpb: add inttest for recompilation with no changes --- inttest/proto_gpb/proto_gpb_rt.erl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/inttest/proto_gpb/proto_gpb_rt.erl b/inttest/proto_gpb/proto_gpb_rt.erl index 785922a..263e9db 100644 --- a/inttest/proto_gpb/proto_gpb_rt.erl +++ b/inttest/proto_gpb/proto_gpb_rt.erl @@ -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(),