py: added doc, unittests, anonymous encryption mode

This commit is contained in:
git@daemon.de
2014-12-24 11:17:03 +01:00
parent b52ac4b0df
commit 5f8d50ec47
11 changed files with 394 additions and 78 deletions

View File

@@ -1,7 +1,7 @@
#
# This file is part of Pretty Curved Privacy (pcp1).
#
# Copyright (C) 2013 T.Linden.
# Copyright (C) 2013-2015 T. von Dein.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -64,11 +64,20 @@ cpptest_SOURCES = cpptest.cpp
# %wheel ALL = NOPASSWD: /sbin/umount
# %wheel ALL = NOPASSWD: /sbin/mdmfs
test: check
if BUILDPY
MAYPY=pytest
endif
test: check $(MAYPY)
ctest:
rm -f test* v* stresstest/*
./unittests.pl unittests.cfg $(CHECK)
@echo "To run a single test only, type: 'make test CHECK=testname'"
pytest:
./unittests.pl pyunittests.cfg $(CHECK)
stresstest: check
./unittests.pl stresstests.cfg