X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fipsilon.git;a=blobdiff_plain;f=Makefile;h=b90cd66d912dd10e75b9fe642769c6367d49c41e;hp=bfe3121d66cfb05e3719bf702aa384b473d68f9f;hb=effa209e386930ad705f255e61c24a5dfb057987;hpb=0f56ef9942ee631a9306806bea8f3bb8e7b81076 diff --git a/Makefile b/Makefile index bfe3121..b90cd66 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,38 @@ RPMBUILD = $(PWD)/dist/rpmbuild -all: lint pep8 test +all: testdeps lint pep8 test echo "All tests passed" +testdeps: + # Determine if test deps are installed + # First, some binaries + which lessc + which pylint + which pep8 + which httpd + which postgres + which openssl + which slapd + # Now, python libraries + python -c 'import openid' + python -c 'import openid_teams' + python -c 'import openid_cla' + python -c 'import cherrypy' + python -c 'import M2Crypto' + python -c 'import lasso' + python -c 'import sqlalchemy' + python -c 'import ldap' + python -c 'import pam' + python -c 'import fedora' + python -c 'import ipapython' + python -c 'import jinja2' + python -c 'import psycopg2' + # And now everything else + ls /usr/share/doc/sssd + ls /usr/lib64/libsss_simpleifp.so.0 + ls /usr/lib64/httpd/modules/mod_wsgi.so + ls /usr/libexec/mod_auth_mellon + lint: # Analyze code # don't show recommendations, info, comments, report @@ -12,6 +42,7 @@ lint: pylint -d c,r,i,W0613 -r n -f colorized \ --notes= \ --ignored-classes=cherrypy,API \ + --disable=star-args \ ./ipsilon pep8: @@ -23,6 +54,7 @@ ui: less/ipsilon.less less/admin.less # Create CSS lesscpy less/ipsilon.less > ui/css/ipsilon.css lesscpy less/admin.less > ui/css/admin.css + lesscpy less/styles.less > ui/css/styles.css # Requires NodeJS less and clear-css packages # Should be removed when lesscpy starts to work properly @@ -32,9 +64,11 @@ ui-node: less/ipsilon.less less/admin.less #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 + # FIXME: temporarily disable clean-css for development lessc less/ipsilon.less ui/css/ipsilon.css lessc less/admin.less ui/css/admin.css + lessc less/styles.less ui/css/styles.css + lessc less/patternfly/patternfly.less ui/css/patternfly.css clean: rm -fr testdir cscope.out @@ -47,6 +81,7 @@ lp-test: pylint -d c,r,i,W0613 -r n -f colorized \ --notes= \ --ignored-classes=cherrypy \ + --disable=star-args \ ./tests pep8 tests @@ -58,15 +93,21 @@ wrappers: #SOCKET_WRAPPER_DEFAULT_IFACE=9 tests: wrappers + rm -rf testdir PYTHONPATH=./ ./tests/tests.py --test=test1 PYTHONPATH=./ ./tests/tests.py --test=testlogout PYTHONPATH=./ ./tests/tests.py --test=testnameid PYTHONPATH=./ ./tests/tests.py --test=testrest + PYTHONPATH=./ ./tests/tests.py --test=testmapping + PYTHONPATH=./ ./tests/tests.py --test=testgssapi PYTHONPATH=./ ./tests/tests.py --test=attrs PYTHONPATH=./ ./tests/tests.py --test=trans PYTHONPATH=./ ./tests/tests.py --test=pgdb PYTHONPATH=./ ./tests/tests.py --test=fconf PYTHONPATH=./ ./tests/tests.py --test=ldap + PYTHONPATH=./ ./tests/tests.py --test=ldapdown + PYTHONPATH=./ ./tests/tests.py --test=openid + PYTHONPATH=./ ./tests/tests.py --test=dbupgrades test: lp-test unittests tests