summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Uiterwijk <puiterwijk@redhat.com>2015-04-06 12:10:27 +0200
committerPatrick Uiterwijk <puiterwijk@redhat.com>2015-04-09 02:20:53 +0200
commit7c69a27be37b979b8734ad105239bfe10cfeaceb (patch)
tree6c2037cd7672a0636f931854f414f7e1e84c532f
parentd51e2b7ff3b1ea8b41bd43d2b554398fc9b3e636 (diff)
downloadipsilon-7c69a27be37b979b8734ad105239bfe10cfeaceb.tar.gz
ipsilon-7c69a27be37b979b8734ad105239bfe10cfeaceb.tar.xz
ipsilon-7c69a27be37b979b8734ad105239bfe10cfeaceb.zip
Check if test deps are installed
https://fedorahosted.org/ipsilon/ticket/91 Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com> Reviewed-by: Nathan Kinder <nkinder@redhat.com>
-rw-r--r--Makefile32
1 files changed, 31 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index bfe3121..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