Merge pull request #1344 from jmwatte/bs1770gainsupport

Bs1770gainsupport-tests
This commit is contained in:
Adrian Sampson 2015-03-15 15:35:39 -07:00
commit cf3388fae7
2 changed files with 11 additions and 1 deletions

View file

@ -83,7 +83,7 @@ In order to use this backend, you will need to install the bs1770gain command-li
* goto `bs1770gain`_ and follow the download instructions
* make sure it is in your $PATH
.. _bs1770gain: bs1770gain.sourceforge.net
.. _bs1770gain: http://bs1770gain.sourceforge.net/
Then, enable the plugin (see :ref:`using-plugins`) and specify the
backend in your configuration file::

View file

@ -33,6 +33,11 @@ if any(has_program(cmd, ['-v']) for cmd in ['mp3gain', 'aacgain']):
else:
GAIN_PROG_AVAILABLE = False
if has_program('bs1770gain', ['--replaygain']):
LOUDNESS_PROG_AVAILABLE = True
else:
LOUDNESS_PROG_AVAILABLE = False
class ReplayGainCliTestBase(TestHelper):
@ -132,6 +137,11 @@ class ReplayGainCmdCliTest(ReplayGainCliTestBase, unittest.TestCase):
backend = u'command'
@unittest.skipIf(not LOUDNESS_PROG_AVAILABLE, 'bs1770gain cannot be found')
class ReplayGainLdnsCliTest(ReplayGainCliTestBase, unittest.TestCase):
backend = u'bs1770gain'
def suite():
return unittest.TestLoader().loadTestsFromName(__name__)