Use the IPA API directly when adding the HTTP principal
[cascardo/ipsilon.git] / Makefile
index a0b78b1..f39b26f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,17 @@
 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:
@@ -57,13 +59,18 @@ wrappers:
 
 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 tests
+test: lp-test unittests tests
+
+unittests:
        PYTHONPATH=./ ./ipsilon/tools/saml2metadata.py
+       PYTHONPATH=./ python ./ipsilon/util/policy.py
 
 sdist:
        python setup.py sdist