From e0bd046a51d6ba7282cc6826c5b481cf37a78915 Mon Sep 17 00:00:00 2001 From: Etienne Pallier Date: Tue, 18 Jun 2019 11:37:46 +0200 Subject: [PATCH] - Ajouté 2 HOWTO (pour test et run) à la racine du projet --- HOWTO_RUN.txt | 42 ++++++++++++++++++++++++++++++++++++++++++ HOWTO_TEST.txt | 19 +++++++++++++++++++ README.md | 10 +++------- 3 files changed, 64 insertions(+), 7 deletions(-) create mode 100644 HOWTO_RUN.txt create mode 100644 HOWTO_TEST.txt diff --git a/HOWTO_RUN.txt b/HOWTO_RUN.txt new file mode 100644 index 0000000..6ec4fd9 --- /dev/null +++ b/HOWTO_RUN.txt @@ -0,0 +1,42 @@ + + +******************************* + Here is how you can RUN pyros +******************************* + +------------------------------------------- +(A) Command-line running (no web interface): +------------------------------------------- + +(1) Running pyros interactively: +$ [python] ./pyros.py shell + +(2) Launching an agent: +$ [python] ./pyros.py start +=> Ex: to start the env-monitoring agent: +$ [python] ./pyros.py start monitoring +=> Ex: to start agentA: +$ [python] ./pyros.py start agentA + +(3) Launching many agents: +$ [python] ./pyros.py start ,,. +=> Ex: start agentA and agentB +$ [python] ./pyros.py start agentA,agentB +=> You could also start ALL agents at once: +$ [python] ./pyros.py start all + + +------------------------------------------- +(B) Running with the website +------------------------------------------- + +(1) Start only the webserver (for pyros website) +$ [python] ./pyros.py start webserver +Then, connect to http://localhost:8000 +You can also connect to the admin interface: http://localhost:8000/admin +(Login as 'pyros' with the password 'DjangoPyros') + +(2) Now, you can start some (or all) agents to have the website come to life ! +See section (A) just above + + \ No newline at end of file diff --git a/HOWTO_TEST.txt b/HOWTO_TEST.txt new file mode 100644 index 0000000..96c2e60 --- /dev/null +++ b/HOWTO_TEST.txt @@ -0,0 +1,19 @@ + +************************************************************************************* + Here is how you can TEST that pyros is working well (ensure that nothing is broken) +************************************************************************************* + +(A) Running the unit tests suite: +- (1) Some unit tests only: +./pyros.py test +- (2) All unit tests: +./pyros.py testall + +(B) Test with agents: +- (1) Test with agentA and agentB sending commands to each other: +./pyros.py -t start agentA,agentB +- (2) Test with agentTelescopeRequester sending commands to agentDevice: +./pyros.py -t start agentTelescopeRequester,agentDevice + +(C) Interactive testing: +./pyros.py shell diff --git a/README.md b/README.md index bc83db1..4205d9e 100644 --- a/README.md +++ b/README.md @@ -67,18 +67,14 @@ This software has been tested and validated with the following configurations : -------------------------------------------------------------------------------------------- ## LAST VERSION -Date: 17/06/2019 +Date: 18/06/2019 Author: E. Pallier (epallier@irap.omp.eu) -VERSION: 0.30.9 +VERSION: 0.30.10 Comment : -- Restructuration du projet - phase 5b : /src/devices_controller/ => réorganisation interne 2/2 : - - create folder devices_controller/devices_controller_concrete/ - - migrer le dossier devices_controller/server/ => devices_controller/devices_controller_concrete/server/ - - rename server/ => device_simulator_common/ -- Deplacement de tous les devices concrets dans leurs dossiers respectifs (Gemini, AK, ...) +- Ajouté 2 HOWTO (pour test et run) à la racine du projet RAPPELS SUR L'UTILISATION : -- libgit2 0.21.2