HOWTO_TEST.txt 1.4 KB

*************************************************************************************
 Here is how you can TEST that pyros is working well (ensure that nothing is broken)
*************************************************************************************

(More on this subject at https://docs.google.com/document/d/1osHT3d8GiofRd9k3nL7cz4Hcmo9WVEOcSaSSQpgJcFs/edit#heading=h.odcd50f0rjwh)


(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 the Gemini telescope (or its simulator) :
	- test with telescope SIMULATOR (use -s option) :
		$ ./pyros.py -ts start agentDeviceTelescopeGemini,agentTelescopeRequester
	- test with REAL telescope :
		$ ./pyros.py -t start agentDeviceTelescopeGemini,agentTelescopeRequester
- (3) Test with  agentMultiRequester (AgentMajordome like) sending commands to several device agents at once : the Gemini telescope device agent (or simulator), and the SBIG device agent (or simulator):
		$ ./pyros.py -t start agentDeviceTelescopeGemini,agentDeviceSBIG,agentMultiRequester
	 
(C) Interactive testing:
	$ ./pyros.py shell

(D) Devices testing:
	$ cd src/devices_controller/
Suivre les instructions du document README.md de ce dossier