From 614f8eda885ca43dd682f19212522bc9a9f02d4c Mon Sep 17 00:00:00 2001 From: jean-marie winters Date: Tue, 3 Mar 2015 23:02:02 +0100 Subject: [PATCH] added tests for bs1770gain --- test/test_replaygain.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/test_replaygain.py b/test/test_replaygain.py index 64d65b006..84306a299 100644 --- a/test/test_replaygain.py +++ b/test/test_replaygain.py @@ -33,6 +33,10 @@ 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): @@ -123,6 +127,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__)