Use the IPA API directly when adding the HTTP principal
[cascardo/ipsilon.git] / Makefile
index d4d570d..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:
@@ -25,9 +27,14 @@ ui: less/ipsilon.less less/admin.less
 # Requires NodeJS less and clear-css packages
 # Should be removed when lesscpy starts to work properly
 ui-node: less/ipsilon.less less/admin.less
+
        # Create and minify CSS
-       lessc --clean-css less/ipsilon.less ui/css/ipsilon.css
-       lessc --clean-css less/admin.less ui/css/admin.css
+       #lessc --clean-css less/ipsilon.less ui/css/ipsilon.css
+       #lessc --clean-css less/admin.less ui/css/admin.css
+
+       #FIXME: temporarily disable clean-css fo deveopment
+       lessc less/ipsilon.less ui/css/ipsilon.css
+       lessc less/admin.less ui/css/admin.css
 
 clean:
        rm -fr testdir cscope.out
@@ -52,11 +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 unittests tests
 
-test: lp-test tests
+unittests:
        PYTHONPATH=./ ./ipsilon/tools/saml2metadata.py
+       PYTHONPATH=./ python ./ipsilon/util/policy.py
 
 sdist:
        python setup.py sdist