Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
physics_benchmarks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
benchmarks
physics_benchmarks
Commits
ef72a933
Commit
ef72a933
authored
4 years ago
by
Sylvester Joosten
Browse files
Options
Downloads
Patches
Plain Diff
renamed juggler_util --> eic_util
parent
65765ca4
No related branches found
No related tags found
1 merge request
!17
Aggregate benchmark results
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dvmp/analysis/vm_mass.cxx
+3
-3
3 additions, 3 deletions
dvmp/analysis/vm_mass.cxx
util/benchmark.hh
+7
-7
7 additions, 7 deletions
util/benchmark.hh
util/exception.hh
+2
-2
2 additions, 2 deletions
util/exception.hh
with
12 additions
and
12 deletions
dvmp/analysis/vm_mass.cxx
+
3
−
3
View file @
ef72a933
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
util/benchmark.hh
+
7
−
7
View file @
ef72a933
...
...
@@ -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
This diff is collapsed.
Click to expand it.
util/exception.hh
+
2
−
2
View file @
ef72a933
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment