From 1890182d433e101c7888f0bb38193274f55b2cfa Mon Sep 17 00:00:00 2001 From: Yaman Umuroglu <maltanar@gmail.com> Date: Mon, 18 May 2020 14:05:45 +0100 Subject: [PATCH] [Docs] add docs about new quicktest mode --- docs/finn/getting_started.rst | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/docs/finn/getting_started.rst b/docs/finn/getting_started.rst index e2b56b7f7..95594bb67 100644 --- a/docs/finn/getting_started.rst +++ b/docs/finn/getting_started.rst @@ -49,11 +49,30 @@ The run-docker.sh script forwards ports 8888 for Jupyter and 8081 for Netron, an Running the test suite directly ******************************* +FINN comes with a set of tests to check for regressions. The full test suite +(which will take several hours to run and require a PYNQ board) can be executed +by: + :: sh run-docker.sh test -FINN comes with a set of tests which can be launched using the command above. Note that some of the tests involve extra compilation and the entire test suite may take some time to complete. +There is a quicker variant of the test suite that skips the tests marked as +requiring Vivado or as slow-running tests: + +:: + + sh run-docker.sh quicktest + +If you want to run individual tests, you can do this *inside the Docker container +from the FINN root directory* as follows: + +:: + + python setup.py test --addopts "-k test_end2end_tfc_w1a2" + +Please see the pytest documentation for more about picking tests by marks or +by name. Environment variables ********************** -- GitLab