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