Menu

Unit tests on MacOS

2013-07-22
2013-07-23
  • Joep Admiraal

    Joep Admiraal - 2013-07-22

    Hi,

    I am trying to run the unit tests on MacOS(10.8.4).
    Is this supported?
    If not, on which platform do you develop?

    This is the console output I get.

    ./unittest.sh
    ~/Documents/joep/dmx/qlcplus ~/Documents/joep/dmx/qlcplus
    dyld: Library not loaded: @executable_path/../Frameworks/libportaudio.2.dylib
      Referenced from: /Users/joep/Documents/joep/dmx/qlcplus/engine/src/libqlcplusengine.1.0.0.dylib
      Reason: image not found
    ./test.sh: line 4: 77207 Trace/BPT trap: 5       ./bus_test
    ~/Documents/joep/dmx/qlcplus
    133 Engine unit tests failed. Please fix before commit.
    

    I did manage to compile (and run) the program so I guess the frameworks should be at some place on my harddrive.

    Thanks,
    Joep Admiraal

     
  • Rowan Deppeler

    Rowan Deppeler - 2013-07-22

    The shell script appears to be assuming the frameworks are built in the current build directory which is not normally the case on the Mac.

    Rather than run the unittest.sh, use terminal, cd {qlc+ source dir} and run the 'make check'..i.e.

    cd /Volumes/Test/qlc+ (...where ever your source is.. )
    make check

    .. and wait for all the output :)
    Note: The Vellman test will fail as it is a windows only beast.

     
  • Joep Admiraal

    Joep Admiraal - 2013-07-23

    Thanks,

    It seems I had two problems, one was that I was running the tests in a terminal that was opened before I downloaded the stuff to compile qlcplus.
    The other was the make check versus unittest.sh.

    The tests are running fine now.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.