Skip to content
Snippets Groups Projects
Commit ef72a933 authored by Sylvester Joosten's avatar Sylvester Joosten
Browse files

renamed juggler_util --> eic_util

parent 65765ca4
No related branches found
No related tags found
1 merge request!17Aggregate benchmark results
......@@ -41,7 +41,7 @@ int vm_mass(const std::string& config_name) {
// create our test definition
// test_tag
juggler_util::test vm_mass_resolution_test{
eic::util::test vm_mass_resolution_test{
{{"name",
fmt::format("{}_{}_{}_mass_resolution", test_tag, vm_name, decay_name)},
{"title",
......@@ -135,8 +135,8 @@ int vm_mass(const std::string& config_name) {
vm_mass_resolution_test.error(-1);
// write out our test data
juggler_util::write_test(vm_mass_resolution_test,
fmt::format("{}vm_mass.json", output_prefix));
eic::util::write_test(vm_mass_resolution_test,
fmt::format("{}vm_mass.json", output_prefix));
// That's all!
return 0;
......
......@@ -14,7 +14,7 @@
// Usage Example 1 (single test):
// ==============================
// 1. define our test
// juggler_util::test test1{
// eic::util::test test1{
// {{"name", "example_test"},
// {"title", "Example Test"},
// {"description", "This is an example of a test definition"},
......@@ -23,18 +23,18 @@
// 2. set pass/fail/error status and return value (in this case .99)
// test1.pass(0.99)
// 3. write our test data to a json file
// juggler_util::write_test(test1, "test1.json");
// eic::util::write_test(test1, "test1.json");
//
// Usage Example 2 (multiple tests):
// =================================
// 1. define our tests
// juggler_util::test test1{
// eic::util::test test1{
// {{"name", "example_test"},
// {"title", "Example Test"},
// {"description", "This is an example of a test definition"},
// {"quantity", "efficiency"},
// {"target", "1"}}};
// juggler_util::test test2{
// eic::util::test test2{
// {{"name", "another_test"},
// {"title", "Another example Test"},
// {"description", "This is a second example of a test definition"},
......@@ -43,11 +43,11 @@
// 2. set pass/fail/error status and return value (in this case .99)
// test1.fail(10)
// 3. write our test data to a json file
// juggler_util::write_test({test1, test2}, "test.json");
// eic::util::write_test({test1, test2}, "test.json");
// Namespace for utility scripts, FIXME this should be part of an independent
// library
namespace juggler_util {
namespace eic::util {
struct test_definition_error : exception {
test_definition_error(std::string_view msg)
......@@ -109,6 +109,6 @@ void write_test(const test& data, const std::string& fname) {
write_test(vtd, fname);
}
} // namespace juggler_util
} // namespace eic::util
#endif
......@@ -4,7 +4,7 @@
#include <exception>
#include <string>
namespace juggler_util {
namespace eic::util {
class exception : public std::exception {
public:
exception(std::string_view msg, std::string_view type = "exception")
......@@ -18,6 +18,6 @@ private:
std::string msg_;
std::string type_;
};
} // namespace juggler_util
} // namespace eic::util
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment