mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
ircd::util: Add a weak interface for the test trigger stub.
This commit is contained in:
parent
7d61473fcf
commit
91ce49d671
3 changed files with 19 additions and 0 deletions
17
include/ircd/util/test.h
Normal file
17
include/ircd/util/test.h
Normal 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();
|
||||
}
|
|
@ -60,6 +60,7 @@ namespace ircd
|
|||
#include "hash.h"
|
||||
#include "fpe.h"
|
||||
#include "closure.h"
|
||||
#include "test.h"
|
||||
|
||||
// Unsorted section
|
||||
namespace ircd {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue