Skip to content

Full Test

David Abigt edited this page Jan 10, 2022 · 3 revisions

Does a quick test of almost all of the available API calls your DeepStack setup has to make sure it is working as expected.

Running

Edit vars at top of config.py for the server info and in fullTest.py for the tests you want to run. (See below) Then run with

python fullTest.py

It will exit with a message if/when an issue is found (if failOnError = "Y")

Test control flags. Set to N to skip test.

Run face tests

doFace = "Y"

Run scene detection tests

doScene = "Y"

Run object detection tests

doObj = "Y"

Run backup tests

doBackup = "Y"

Run all pics in the config.imgPath thru enabled (see custom models) object detection tests and compare with a base run.

doExt = "Y"

If you run all the tests (with debugPrintOn = "N") you will see output like this

.
Ran 1 server up tests in 0:00:00.008001
.....................................
Ran 37 face tests in 0:00:02.019431
....................
Ran 20 scene tests in 0:00:00.987697
............
Ran 12 detection tests in 0:00:00.256550
.
Ran 1 backup tests in 0:00:00.014000
......
Ran 6 custom/openlogo tests in 0:00:00.304561
...
..
Ran 5 custom/licence-plate tests in 0:00:00.166108
.........
Ran 9 custom/dark tests in 0:00:00.289784
...........................
Ran 27 custom/actionnetv2 tests in 0:00:01.406866
..........................................
................................................................................
.............................
Ran 151 detection tests in 0:00:04.017401
...................................................
..................................................
Ran 101 custom/openlogo tests in 0:00:08.087629
..............................
......................................................................
Ran 100 custom/licence-plate tests in 0:00:04.009132
..........
................................................................................
...............................................
Ran 137 custom/dark tests in 0:00:07.948979
.................................
................................................................................
.....
Ran 118 custom/actionnetv2 tests in 0:00:08.022125

Of 725 tests
 Ran:725
 Skipped:0
 Passed:725
 Warnings:0
 Failed:0

Clone this wiki locally