0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +01:00

ircd::util: Add a weak interface for the test trigger stub.

This commit is contained in:
Jason Volk 2019-05-24 18:24:33 -07:00
parent 7d61473fcf
commit 91ce49d671
3 changed files with 19 additions and 0 deletions

17
include/ircd/util/test.h Normal file
View file

@ -0,0 +1,17 @@
// Matrix Construct
//
// Copyright (C) Matrix Construct Developers, Authors & Contributors
// Copyright (C) 2016-2019 Jason Volk <jason@zemos.net>
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice is present in all copies. The
// full license for this software is available in the LICENSE file.
#pragma once
#define HAVE_IRCD_UTIL_TEST_H
namespace ircd::util
{
void test();
}

View file

@ -60,6 +60,7 @@ namespace ircd
#include "hash.h"
#include "fpe.h"
#include "closure.h"
#include "test.h"
// Unsorted section
namespace ircd {

View file

@ -312,6 +312,7 @@ console_cmd__help(opt &out, const string_view &line)
bool
console_cmd__test(opt &out, const string_view &line)
{
ircd::test();
return true;
}