Signed-off-by: Rob Browning <rlb@defaultvalue.org>
./pytest test/int/test_git.py
./pytest test/ext/test-ftp
./pytest test/int/test_git.py
./pytest test/ext/test-ftp
+If you have the xdist module installed, then you can specify its `-n`
+option to run the tests in parallel (e.g. `./pytest -nauto ...`), or
+you can specify `-j` to make, which will be translated to xdist with
+`-j` becoming `-nauto` and `-jN` becoming `-nN`.
+
Internal tests that test bup's code directly are located in test/int,
and external tests that test bup from the outside, typically by
running the executable, are located in test/ext.
Internal tests that test bup's code directly are located in test/int,
and external tests that test bup from the outside, typically by
running the executable, are located in test/ext.
+ifeq (yes,$(shell config/bin/python -c "import xdist; print('yes')" 2>/dev/null))
+ # MAKEFLAGS must not be in an immediate := assignment
+ parallel_opt = $(lastword $(filter -j%,$(MAKEFLAGS)))
+ get_parallel_n = $(patsubst -j%,%,$(parallel_opt))
+ maybe_specific_n = $(if $(filter -j%,$(parallel_opt)),-n$(get_parallel_n))
+ xdist_opt = $(if $(filter -j,$(parallel_opt)),-nauto,$(maybe_specific_n))
+else
+ xdist_opt =
+endif
+
stupid:
PATH=/bin:/usr/bin $(MAKE) test
stupid:
PATH=/bin:/usr/bin $(MAKE) test
check: test
distcheck: all
check: test
distcheck: all
+ ./pytest $(xdist_opt) -m release
long-test: export BUP_TEST_LEVEL=11
long-test: test
long-test: export BUP_TEST_LEVEL=11
long-test: test
apt-get install python-pyxattr
apt-get install pkg-config linux-libc-dev libacl1-dev
apt-get install acl attr
apt-get install python-pyxattr
apt-get install pkg-config linux-libc-dev libacl1-dev
apt-get install acl attr
+ apt-get isntall python-pytest-xdist # optional (parallel tests)
apt-get install libreadline-dev # optional (bup ftp)
apt-get install python-tornado # optional (bup web)
```
apt-get install libreadline-dev # optional (bup ftp)
apt-get install python-tornado # optional (bup web)
```
+ If you have the Python xdist module installed, then you can
+ probably run the tests faster by adding the make -j option (see <a
+ href="HACKING">./HACKING</a> for additional information):
+
+ ```sh
+ make -j check
+ ```
+
The tests should pass. If they don't pass for you, stop here and
send an email to bup-list@googlegroups.com. Though if there are
symbolic links along the current working directory path, the tests
The tests should pass. If they don't pass for you, stop here and
send an email to bup-list@googlegroups.com. Though if there are
symbolic links along the current working directory path, the tests