Commit 80d4ac71b41768fd8b96bd4bcd1eb09aa21ae90c
1 parent
32d5d60e
Exists in
dev
updated version and HOWTO_RUN
+ keep test database "test_pyros" after tests
Showing
3 changed files
with
44 additions
and
8 deletions
Show diff stats
HOWTO_RUN.txt
... | ... | @@ -8,9 +8,11 @@ |
8 | 8 | (A) Command-line running (no web interface): |
9 | 9 | ------------------------------------------- |
10 | 10 | |
11 | + | |
11 | 12 | (1) Running pyros interactively: |
12 | 13 | $ [python] ./pyros.py shell |
13 | 14 | |
15 | + | |
14 | 16 | (2) Launching an agent: |
15 | 17 | $ [python] ./pyros.py start <agent-name> |
16 | 18 | => Ex: to start the env-monitoring agent: |
... | ... | @@ -18,7 +20,32 @@ $ [python] ./pyros.py start monitoring |
18 | 20 | => Ex: to start agentA: |
19 | 21 | $ [python] ./pyros.py start agentA |
20 | 22 | |
21 | -(3) Launching many agents: | |
23 | + | |
24 | +(3) Launching the Environment Monitoring (version A) | |
25 | +a) Activate the venv | |
26 | +b) Launch the PLC simulator | |
27 | +(venv) $ cd simulators/plc/ | |
28 | +(ven) $ [python] ./plcSimulator.py | |
29 | +c) Launch the Monitoring agent (from another terminal) | |
30 | +$ [python] ./pyros.py start agentM | |
31 | + | |
32 | + | |
33 | +(4) Launching the Environment Monitoring (version B) | |
34 | + | |
35 | +- From terminal 1 : | |
36 | +a) Activate the venv | |
37 | +b) Launch the Telescope simulator | |
38 | +(venv) $ cd simulators/telescope/ | |
39 | +(venv) $ [python] ./telescopeSimulator.py | |
40 | + | |
41 | +- From terminal 2 : | |
42 | +a) Activate the venv | |
43 | +b) Launch the Telescope Monitoring agent | |
44 | +(venv) $ cd src/core/pyros_django/agent/monitoring/ | |
45 | +(venv) $ [python] ./start_agent_telescope_monitoring.py | |
46 | + | |
47 | + | |
48 | +(5) Launching many agents: | |
22 | 49 | $ [python] ./pyros.py start <agent1-name>,<agent2-name>,. |
23 | 50 | => Ex: start agentA and agentB |
24 | 51 | $ [python] ./pyros.py start agentA,agentB | ... | ... |
README.md
... | ... | @@ -67,15 +67,17 @@ This software has been tested and validated with the following configurations : |
67 | 67 | -------------------------------------------------------------------------------------------- |
68 | 68 | ## LAST VERSION |
69 | 69 | |
70 | -Date: 18/06/2019 | |
70 | +Date: 19/06/2019 | |
71 | 71 | |
72 | 72 | Author: E. Pallier (epallier@irap.omp.eu) |
73 | 73 | |
74 | -VERSION: 0.30.10 | |
75 | - | |
76 | -Comment : | |
77 | -- Ajouté 2 HOWTO (pour test et run) à la racine du projet | |
74 | +VERSION: 0.30.11 | |
78 | 75 | |
76 | +Comment : | |
77 | +- Bugfixed AgentM | |
78 | +- Named test database "test_pyros" explicitely | |
79 | +- Keep test database test_pyros (do not delete it after tests) | |
80 | + | |
79 | 81 | |
80 | 82 | RAPPELS SUR L'UTILISATION : |
81 | 83 | |
... | ... | @@ -129,6 +131,7 @@ Full list of commits: https://gitlab.irap.omp.eu/epallier/pyros/commits/master |
129 | 131 | - migrer le dossier devices_controller/server/ => devices_controller/devices_controller_concrete/server/ |
130 | 132 | - rename server/ => device_simulator_common/ |
131 | 133 | - Deplacement de tous les devices concrets dans leurs dossiers respectifs (Gemini, AK, ...) |
134 | + - Ajouté 2 HOWTO (pour test et run) à la racine du projet | |
132 | 135 | |
133 | 136 | |
134 | 137 | **11/06/2019 : v0.30.2 (EP)** | ... | ... |
pyros.py
... | ... | @@ -314,7 +314,10 @@ def test(): |
314 | 314 | for app in apps: |
315 | 315 | _loaddata() or die() |
316 | 316 | change_dir(PYROS_DJANGO_BASE_DIR) |
317 | - execProcessFromVenv('manage.py test ' + app) or die() | |
317 | + # Delete test_pyros database after tests | |
318 | + #execProcessFromVenv('manage.py test ' + app) or die() | |
319 | + # KEEP test_pyros database after tests | |
320 | + execProcessFromVenv('manage.py test --keep ' + app) or die() | |
318 | 321 | change_dir("PREVIOUS") |
319 | 322 | # execProcess("python install.py install") |
320 | 323 | return True |
... | ... | @@ -322,7 +325,10 @@ def test(): |
322 | 325 | @pyros_launcher.command(help="Run ALL tests") |
323 | 326 | def testall(): |
324 | 327 | change_dir(PYROS_DJANGO_BASE_DIR) |
325 | - execProcessFromVenvAsync("manage.py test") | |
328 | + # Delete test_pyros database after tests | |
329 | + # execProcessFromVenvAsync("manage.py test") | |
330 | + # KEEP test_pyros database after tests | |
331 | + execProcessFromVenvAsync("manage.py test --keep") | |
326 | 332 | change_dir("PREVIOUS") |
327 | 333 | return True |
328 | 334 | ... | ... |