Source code for loudnessPlotter.test.test_build
#/usr/bin/python
# -*- coding: utf-8 -*-
import os
import subprocess
import sys
import unittest
[docs]class BuildTest(unittest.TestCase):
[docs] def setUp(self):
unittest.TestCase.setUp(self)
[docs] def test_build(self):
""" build wave_analyze bin """
#os.chdir(os.path.join(os.path.dirname(os.path.abspath(__file__)),'loudnessPlotter'))
if sys.platform == 'win32' :
cmd=''
else:
cmd='cd ebu_r128/; make clean; make wave_analyze; cp wave_analyze ../.'
#also try mingw?
subprocess.call(cmd,shell=True)
[docs] def tearDown(self):
unittest.TestCase.tearDown(self)
if __name__ == '__main__':
unittest.main()