RPMBUILD = $(PWD)/dist/rpmbuild
-all: lint pep8
+all: lint pep8 test
+ echo "All tests passed"
lint:
# Analyze code
# don't show recommendations, info, comments, report
# W0613 - unused argument
# Ignore cherrypy class members as they are dynamically added
+ # Ignore IPA API class members as they are dynamically added
pylint -d c,r,i,W0613 -r n -f colorized \
--notes= \
- --ignored-classes=cherrypy \
+ --ignored-classes=cherrypy,API \
./ipsilon
pep8:
tests: wrappers
PYTHONPATH=./ ./tests/tests.py --test=test1
+ PYTHONPATH=./ ./tests/tests.py --test=testlogout
+ PYTHONPATH=./ ./tests/tests.py --test=testrest
PYTHONPATH=./ ./tests/tests.py --test=attrs
PYTHONPATH=./ ./tests/tests.py --test=trans
PYTHONPATH=./ ./tests/tests.py --test=pgdb
+ PYTHONPATH=./ ./tests/tests.py --test=fconf
+
+test: lp-test unittests tests
-test: lp-test tests
+unittests:
PYTHONPATH=./ ./ipsilon/tools/saml2metadata.py
+ PYTHONPATH=./ python ./ipsilon/util/policy.py
sdist:
python setup.py sdist