Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
flame-clmc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
flame
flame-clmc
Commits
5c2f04c6
Commit
5c2f04c6
authored
7 years ago
by
Nikolay Stanchev
Browse files
Options
Downloads
Patches
Plain Diff
[ Issue #56 ] - Update README file, info for generating test data
parent
fafde653
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+13
-2
13 additions, 2 deletions
README.md
test/streaming-sim/StreamingSim.py
+2
-0
2 additions, 0 deletions
test/streaming-sim/StreamingSim.py
with
15 additions
and
2 deletions
README.md
+
13
−
2
View file @
5c2f04c6
...
@@ -119,11 +119,22 @@ use this
...
@@ -119,11 +119,22 @@ use this
}
}
```
```
Run a python script to generate the test data sets
The next step is to generate the test data, which could be done in two ways.
First option is to run a python script to generate the test data sets
`python3 /vagrant/test/streaming-sim/StreamingSim.py`
`python3 /vagrant/test/streaming-sim/StreamingSim.py`
Test the generated data set by executing the following command
This script could also be used to clear the generated data by using the '-c' option
`python3 /vagrant/test/streaming-sim/StreamingSim.py -c`
The second option is to directly run the testing module, which will detect if the data was generated, and if not, will automatically
generate the data before executing the tests. Keep in mind that if the test data is being generated using this way, a 10 seconds timeout
is given after the generation is finished so that the data could properly be inserted into the database. If the data was already generated
using the first option, only the tests would be executed.
The command for running the testing module is
`pytest -s /vagrant/test/streaming-sim/VerifySimResults.py`
`pytest -s /vagrant/test/streaming-sim/VerifySimResults.py`
...
...
This diff is collapsed.
Click to expand it.
test/streaming-sim/StreamingSim.py
+
2
−
0
View file @
5c2f04c6
...
@@ -210,6 +210,8 @@ def run_simulation_fixture():
...
@@ -210,6 +210,8 @@ def run_simulation_fixture():
if
"
CLMCMetrics
"
not
in
dbs
:
if
"
CLMCMetrics
"
not
in
dbs
:
simulator
=
Sim
(
INFLUX_DB_URL
)
simulator
=
Sim
(
INFLUX_DB_URL
)
simulator
.
run
(
SIMULATION_TIME_SEC
)
simulator
.
run
(
SIMULATION_TIME_SEC
)
print
(
"
10 seconds timeout is given so that the data could properly be inserted into the database.
"
)
import
time
import
time
time
.
sleep
(
10
)
time
.
sleep
(
10
)
...
...
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