forked from brettviren/wire-cell-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Factor Testing namespace and add interface to detectors.jsonnet content.
- Loading branch information
1 parent
444f7a0
commit 2cbba27
Showing
5 changed files
with
82 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,34 @@ | ||
#ifndef WIRECELLUTIL_TESTING | ||
#define WIRECELLUTIL_TESTING | ||
|
||
#include "WireCellUtil/Configuration.h" | ||
|
||
#define BOOST_ENABLE_ASSERT_HANDLER 1 | ||
#include <boost/assert.hpp> | ||
|
||
#define Assert BOOST_ASSERT | ||
#define AssertMsg BOOST_ASSERT_MSG | ||
|
||
#include <string> | ||
#include <vector> | ||
|
||
namespace boost { | ||
void assertion_failed(char const* expr, char const* function, char const* file, long line); | ||
void assertion_failed_msg(char const* expr, char const* msg, char const* function, char const* file, long line); | ||
} // namespace boost | ||
|
||
namespace WireCell { | ||
namespace Testing { | ||
// Add a stderr and file log sink based on the argv[0] name. | ||
// Bare calls, eg, spdlog::debug() may then be issued. | ||
void log(const char* argv0); | ||
namespace WireCell::Testing { | ||
|
||
// Add a stderr and file log sink based on the argv[0] name. | ||
// Bare calls, eg, spdlog::debug() may then be issued. | ||
void log(const char* argv0); | ||
|
||
// Load plugins. If empty, load "core" plugins. | ||
void load_plugins(std::vector<std::string> list = {}); | ||
|
||
// Return the known detectors object from a given source. | ||
Configuration detectors(const std::string& source="detectors.jsonnet"); | ||
|
||
} | ||
} // namespace WireCell | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters