From b881616d3ad69bdd1c8de0c5252ad48d19e45170 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Sun, 20 Jan 2019 20:56:19 +0100 Subject: [PATCH] add the 'make test' command --- Makefile | 7 +++++++ README.org | 7 ++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index e16648a..aec545f 100644 --- a/Makefile +++ b/Makefile @@ -32,6 +32,13 @@ init: borg init -e repokey-blake2; \ ) +test: + @. venv/bin/activate + @( \ + cd tests/; \ + python3 -m unittest; \ + ) + clean: distclean rm -rf build/ rm -rf venv/ diff --git a/README.org b/README.org index 14c0eb0..e10d354 100644 --- a/README.org +++ b/README.org @@ -88,11 +88,12 @@ pip3 install -r requirements.txt #+end_src 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 -~tests/~ directory. +starting. You can do this with the following command from the root of the +repository. #+begin_src sh -python3 -m unittest +make test +#+end_src #+end_src ** Used packages