add the 'make test' command
This commit is contained in:
parent
625e5c98ee
commit
b881616d3a
7
Makefile
7
Makefile
|
@ -32,6 +32,13 @@ init:
|
||||||
borg init -e repokey-blake2; \
|
borg init -e repokey-blake2; \
|
||||||
)
|
)
|
||||||
|
|
||||||
|
test:
|
||||||
|
@. venv/bin/activate
|
||||||
|
@( \
|
||||||
|
cd tests/; \
|
||||||
|
python3 -m unittest; \
|
||||||
|
)
|
||||||
|
|
||||||
clean: distclean
|
clean: distclean
|
||||||
rm -rf build/
|
rm -rf build/
|
||||||
rm -rf venv/
|
rm -rf venv/
|
||||||
|
|
|
@ -88,11 +88,12 @@ pip3 install -r requirements.txt
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
You're now all set to work on Borg-Qt. It's a good idea to run the tests before
|
You're now all set to work on Borg-Qt. It's a good idea to run the tests before
|
||||||
starting. You can do this with the following command. Run from inside the
|
starting. You can do this with the following command from the root of the
|
||||||
~tests/~ directory.
|
repository.
|
||||||
|
|
||||||
#+begin_src sh
|
#+begin_src sh
|
||||||
python3 -m unittest
|
make test
|
||||||
|
#+end_src
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Used packages
|
** Used packages
|
||||||
|
|
Loading…
Reference in New Issue