int f = TEST_RunAll_accumulated(0);
if (f)
{
- LOG_INFOF("%d tests failed", f);
+ LOG_HELPF("%d tests failed", f);
return true;
}
else
{
- LOG_INFO("All tests OK");
+ LOG_HELP("All tests OK");
return false;
}
}
bool TEST_Run(string s)
{
- LOG_INFOF("%s: testing...", s);
+ LOG_HELPF("%s: testing...", s);
TEST_failed = 0;
TEST_fatal = 0;
TEST_ok = false;
if (isfunction(fn)) callfunction(fn);
if (TEST_failed > 0)
{
- LOG_INFOF("%s: %d items failed.", s, TEST_failed);
+ LOG_HELPF("%s: %d items failed.", s, TEST_failed);
return false;
}
else if (!TEST_ok)
{
- LOG_INFOF("%s: did not complete.", s);
+ LOG_HELPF("%s: did not complete.", s);
return false;
}
return true;
do
printf "%s\n" "$LINE"
printf "%s\n" "$LINE" | grep -q ".*All tests OK$" && PASS=1
-done < <(${ENGINE} +developer 1 +map _init +sv_cmd runtest +wait +quit)
+done < <(${ENGINE} +developer 1 +map _init +sv_cmd dumpnotifs +sv_cmd runtest +wait +quit)
test "$PASS" = "1" || { printf "\033[1;31m%s\033[0m\n" "sv_cmd runtest failed!"; exit 1; }
-
-${ENGINE} +map _init +sv_cmd dumpnotifs +wait +quit
diff notifications.cfg data/data/notifications_dump.cfg ||
{ printf "Please update notifications.cfg using \`dumpnotifs\`!"; exit 1; }