-
Notifications
You must be signed in to change notification settings - Fork 14
pulga
EyesOfThings edited this page Feb 20, 2017
·
12 revisions
- How to run them
- Tests implemented
- Expected output of the tests
- Additional information
The steps for executing them are:
- Run myriad/apps/pulga_control_app in the EoT device. It will create an AP (SSID = Myriad2Wifi, password = visilabap, if the WifiFunctions library has not been modified) and will start the MQTT broker.
- When Pulga shows "Waiting" in the command line, run the test.py file. This test will create a MQTT client which will connect to the generated AP and will test several of the functionalities of Pulga.
- ConnectToBrocker --> The client tests if it is able to connect to and disconnect from the broker. It also tests the connection of the client if it is already connected.
- SubscribeUnsubscribe --> The client tests the subscription and unsubscription from a topic.
- UploadFile --> The client tests the upload file feature.
- DownloadFile --> The client tests the download file feature.
- UploadDownloadFileAreEqual --> The test compares the downloaded file with the uploaded file.
- RequestSnapshot --> The client requests a snapshot from Pulga.
- UpdateDate --> The client tests the update date functionality.
- GetDate --> The client tests the get date functionality.
- EOTMakeDirSD --> The test creates a dir “Test” in the SD card.
- EOTListFilesSD --> The client obtains the complete list of files contained in the SD card.
- EOTDeleteFileSD --> The test deletes the file uploaded previously to the SD card.
- EOTDeleteDirSD --> The test deletes the dir “Test” from the SD card.
- UploadElf --> The test uploads an Elf binary to the flash memory of the EoT device.
The expected output of the tests must be similar to:
test00ConnectToBroker (main.PulgaTests) ... Waiting for connection to reach NM_ACTIVE_CONNECTION_STATE_ACTIVATED state ...
Connection established!
ok
test01SubscribeUnsubscribe (main.PulgaTests) ... Check if unsubscription was successful
ok
test02UploadFile (main.PulgaTests) ... Uploading 000000 chunk
Uploading 000001 chunk
……
Uploading 000013 chunk
ok
test03DownloadFile (main.PulgaTests) ... Downloading chunk
Downloading chunk
……
Downloading chunk
ok
test04UploadDownloadFileAreEqual (main.PulgaTests) ... ok
test05RequestSnapshot (main.PulgaTests) ... ok
test06UpdateDate (main.PulgaTests) ... ok
test07GetDate (main.PulgaTests) ... ok
test08EOTMakeDirSD (main.PulgaTests) ... ok
test09EOTListFilesSD (main.PulgaTests) ... OpenCVTests;0;Thu Dec 3 12:04:36 2015
Thu Dec 3 12:04:36 2015
Thu Dec 3 12:04:36 2015
test.py;1;Fri Jan 1 00:00:18 1988
Fri Jan 1 00:00:18 1988
Fri Jan 1 00:00:18 1988
……
ok
test10EOTDeleteFileSD (main.PulgaTests) ... ok
test11EOTDeleteDirSD (main.PulgaTests) ... ok
test12UploadElf (main.PulgaTests) ... Uploading 000000 chunk
Uploading 000001 chunk
……
Uploading 000013 chunk
ok
Ran 13 tests in 18.286s
Website | Twitter | Linkedin | Flickr | Slideshare
Myriad
-
Libraries
-
Applications
-
Unittests
Desktop
-
Libraries
-
Applications
-
Unittests
Android
-
Applications