diff --git a/tests/Makefile b/tests/Makefile index 3457bb4..eaa726c 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -1,27 +1,28 @@ tests: - set -e; \ + @set -e; \ for i in *-tests/Makefile; do \ + $(MAKE) -C $$(dirname $$i) -j clean; \ echo '==== Making:' $$(dirname $$i); \ $(MAKE) -C $$(dirname $$i) -j; \ done debugtest: - set -e; \ + @set -e; \ $(MAKE) clean; \ $(MAKE) -C debug-mode -j; \ debug-mode/debug-tests.out runtests: debugtest - $(MAKE) clean - $(MAKE) tests - set -e; \ + @$(MAKE) clean + @$(MAKE) tests + @set -e; \ for i in *-tests/Makefile; do \ echo '==== Running:' $$(dirname $$i); \ $$(dirname $$i)/$$(dirname $$i).out; \ done clean: - set -e; \ + @set -e; \ for i in *-tests/Makefile; do \ echo '==== Cleaning:' $$(dirname $$i); \ $(MAKE) -C $$(dirname $$i) clean; \ diff --git a/tests/classbind-tests/classbind-tests.ino b/tests/classbind-tests/classbind-tests.ino index 14c7b4f..cc53977 100644 --- a/tests/classbind-tests/classbind-tests.ino +++ b/tests/classbind-tests/classbind-tests.ino @@ -19,7 +19,8 @@ class TestReceiver : public MqttClassBinder void onPublish(const MqttClient* /* source */, const Topic& topic, const char* payload, size_t /* length */) { - Serial << "--> routed message received by " << name_ << ':' << topic.c_str() << " = " << payload << endl; + (void) topic; + // Serial << "--> routed message received by " << name_ << ':' << topic.c_str() << " = " << payload << endl; messages[name_]++; } @@ -35,7 +36,8 @@ std::map TestReceiver::messages; static int unrouted = 0; void onUnrouted(const MqttClient*, const Topic& topic, const char*, size_t) { - Serial << "--> unrouted: " << topic.c_str() << endl; + (void) topic; + // Serial << "--> unrouted: " << topic.c_str() << endl; unrouted++; } diff --git a/tests/local-tests/local-tests.ino b/tests/local-tests/local-tests.ino index 252ff8d..75305b0 100644 --- a/tests/local-tests/local-tests.ino +++ b/tests/local-tests/local-tests.ino @@ -42,7 +42,7 @@ test(local_client_should_unregister_when_destroyed) test(local_client_do_not_disconnect_after_publishing) { - set_millis(0); + EpoxyTest::set_millis(0); MqttBroker broker(1883); MqttClient client(&broker, "client"); MqttClient sender(&broker, "sender"); @@ -56,7 +56,7 @@ test(local_client_do_not_disconnect_after_publishing) sender.publish("test", "value"); broker.loop(); - add_seconds(60); + EpoxyTest::add_seconds(60); client.loop(); sender.loop(); broker.loop();