X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fipsilon.git;a=blobdiff_plain;f=Makefile;h=49a17d175543bcff007e62c48c858e26ded38cc4;hp=662c8935848c8e7475dfa0fd75ad86e4ca675ad3;hb=12139c6090941f67c098bf4387ce00a8503e825e;hpb=cd855ea000e6baa994423c486779935bd02a6426 diff --git a/Makefile b/Makefile index 662c893..49a17d1 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 @@ -60,11 +90,13 @@ wrappers: tests: wrappers 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=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 test: lp-test unittests tests