Browse Source

Improve upgrade test

Loïc Hoguin 9 years ago
parent
commit
3783b494e1
1 changed files with 3 additions and 0 deletions
  1. 3 0
      test/Makefile

+ 3 - 0
test/Makefile

@@ -91,6 +91,9 @@ core-upgrade-no-config: build clean-core-upgrade-no-config
 	$i "Append a rule to the Erlang.mk file for testing purposes"
 	$i "Append a rule to the Erlang.mk file for testing purposes"
 	$t echo "erlang_mk_upgrade_test_rule: ; @echo FAIL" >> $(APP)/erlang.mk
 	$t echo "erlang_mk_upgrade_test_rule: ; @echo FAIL" >> $(APP)/erlang.mk
 
 
+	$i "Check that the test rule works as intended"
+	$t test "FAIL" = "`$(MAKE) -C $(APP) --no-print-directory erlang_mk_upgrade_test_rule V=0`"
+
 	$i "Upgrade Erlang.mk"
 	$i "Upgrade Erlang.mk"
 	$t $(MAKE) -C $(APP) erlang-mk $v
 	$t $(MAKE) -C $(APP) erlang-mk $v