diff --git a/docs/plugins/replaygain.rst b/docs/plugins/replaygain.rst index b8f385df8..3411d3d40 100644 --- a/docs/plugins/replaygain.rst +++ b/docs/plugins/replaygain.rst @@ -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:: diff --git a/test/test_replaygain.py b/test/test_replaygain.py index fe1bdfea5..3eb93520f 100644 --- a/test/test_replaygain.py +++ b/test/test_replaygain.py @@ -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__)