diff --git a/bob/pad/face/test/test_databases.py b/bob/pad/face/test/test_databases.py new file mode 100644 index 0000000000000000000000000000000000000000..23de4dbe1dba1bd33e4cf20b3859f2cf7b45583a --- /dev/null +++ b/bob/pad/face/test/test_databases.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python +# vim: set fileencoding=utf-8 : +# Thu May 24 10:41:42 CEST 2012 + +from nose.plugins.skip import SkipTest + +import bob.bio.base +from bob.bio.base.test.utils import db_available +from bob.bio.base.test.test_database_implementations import check_database + + +@db_available('replay') +def test_replay(): + module = bob.bio.base.load_resource('replay', 'config', + preferred_package='bob.pad.face') + try: + check_database(module.database, protocol=module.protocol, + groups=('train', 'dev', 'eval')) + except IOError as e: + raise SkipTest( + "The database could not be queried; probably the db.sql3 file is missing. Here is the error: '%s'" % e)