diff options
author | Denys Fedoryshchenko <denys.f@collabora.com> | 2024-08-22 11:46:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-22 11:46:38 +0300 |
commit | a4980e9db708c05192e3e7c624983983b6816123 (patch) | |
tree | 6d98f68feb09c3fb5d64fb5c9723aca971c9a25d /tests/README.md | |
parent | 0eb54934a8746091a5f3eef2ae0db726975c24da (diff) | |
parent | fd7d220aed51e2082e19630106f43071e65e8f9c (diff) | |
download | accel-ppp-a4980e9db708c05192e3e7c624983983b6816123.tar.gz accel-ppp-a4980e9db708c05192e3e7c624983983b6816123.zip |
Merge pull request #177 from svlobanov/pcre-tests
tests: add pcre negative cases, improve pcre-related code test coverage
Diffstat (limited to 'tests/README.md')
-rw-r--r-- | tests/README.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/README.md b/tests/README.md index d062ed46..689a16d8 100644 --- a/tests/README.md +++ b/tests/README.md @@ -6,7 +6,7 @@ These tests are done for Ubuntu and Debian distros. Please use latest stable Deb Install pytest -Using apt: `sudo apt install python3-pytest python3-pytest-dependency` or using pip: `sudo pip3 install pytest pytest-dependency`. +Using apt: `sudo apt install python3-pytest python3-pytest-dependency python3-pytest-order` or using pip: `sudo pip3 install pytest pytest-dependency pytest-order`. pytest-dependency version must be >= 0.5 (with 'scope' support) @@ -43,13 +43,13 @@ sudo insmod build/drivers/ipoe/driver/ipoe.ko ```bash # from this dir (tests) -sudo python3 -m pytest -Wall -v +sudo python3 -m pytest -Wall --order-dependencies -v ``` To skip tests related to ipoe and vlan_mon kernel modules: ```bash # from this dir (tests) -sudo python3 -m pytest -Wall -v -m "not ipoe_driver and not vlan_mon_driver" +sudo python3 -m pytest -Wall --order-dependencies -v -m "not ipoe_driver and not vlan_mon_driver" ``` ## Preparations (for coverage report) @@ -83,7 +83,7 @@ Then insert kernel modules (ipoe.ko and vlan-mon.ko) ```bash # from root dir (parent for this dir) -sudo python3 -m pytest -Wall tests -v # execute tests to collect coverage data +sudo python3 -m pytest -Wall --order-dependencies tests -v # execute tests to collect coverage data mkdir tests/report gcovr --config=tests/gcovr.conf # default report gcovr --config=tests/gcovr.conf --csv # csv report |