Skip to content

Commit 9f8443a

Browse files
committed
[tests] Added runtests script, updated docs
1 parent 087bd2b commit 9f8443a

3 files changed

Lines changed: 26 additions & 7 deletions

File tree

docs/developer/installation.rst

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,19 @@ Install the system dependencies:
2020
.. code-block:: shell
2121
2222
sudo apt update
23-
sudo apt install -y sqlite3 libsqlite3-dev libpq-dev
24-
sudo apt install -y xmlsec1
23+
sudo apt install xmlsec1 gettext \
24+
sqlite3 \
25+
# the dependencies below are needed
26+
# to test the integration with
27+
# OpenWISP Monitoring
28+
fping \
29+
gdal-bin \
30+
libproj-dev \
31+
libgeos-dev \
32+
libspatialite-dev \
33+
spatialite-bin \
34+
libsqlite3-mod-spatialite
35+
# for selenium tests
2536
sudo apt install -y chromium-browser
2637
2738
Fork and clone the forked repository:
@@ -36,11 +47,12 @@ Navigate into the cloned repository:
3647
3748
cd openwisp-radius/
3849
39-
Launch Redis:
50+
Launch Redis (and InfluxDB for the :doc:`integration with OpenWISP
51+
Monitoring </radius/user/radius_monitoring>`):
4052

4153
.. code-block:: shell
4254
43-
docker compose up -d redis
55+
docker compose up -d redis influxdb
4456
4557
Setup and activate a virtual-environment (we'll be using `virtualenv
4658
<https://pypi.org/project/virtualenv/>`_):
@@ -95,7 +107,7 @@ Run tests with:
95107

96108
.. code-block:: shell
97109
98-
./runtests.py --parallel
110+
./runtests
99111
100112
Run quality assurance tests with:
101113

@@ -136,7 +148,7 @@ Migrating an existing freeradius database
136148
-----------------------------------------
137149

138150
If you already have a freeradius 3 database with the default schema, you
139-
should be able to use it with openwisp-radius (and extended apps) easily:
151+
should be able to use it with OpenWISP RADIUS (and extended apps) easily:
140152

141153
1. first of all, back up your existing database;
142154
2. configure django to connect to your existing database;

run-qa-checks

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
32
set -e
43

54
echo ''

runtests

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
set -e
3+
4+
coverage run runtests.py --parallel > /dev/null 2>&1 || ./runtests.py
5+
SAMPLE_APP=1 coverage run ./runtests.py --parallel > /dev/null 2>&1 || SAMPLE_APP=1 ./runtests.py
6+
MONITORING_INTEGRATION=1 coverage run runtests.py
7+
coverage combine
8+
coverage xml

0 commit comments

Comments
 (0)