Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unit Testing (was: Bugs vs. unit tests)
12-22-2010, 10:34 AM,
#4
 
from the Auto-updater thread:
NaN Wrote:The main function in unittest.cpp might cause problems for MacOS guys. They are compiling everything in the src directory.
I think the Mac build method is the problem, really. Is there no way to exclude a file from the build with Xcode?

This is a bigger question, but why not just make the Xcode build rely on SCons? There is already OS X-specific code in SConstruct and src/SConscript to handle this, although it probably needs to be updated since it has been neglected. One of the original reasons for using SCons was that it was relatively easy to use the same build system across different operating systems. Things like special build targets (e.g. "scons test") are not available to OS X developers, and the likely result is that the tests will never get run.

A hack to work around the problem would be to just put
Code:
#ifndef __APPLE__
/* int main... */
#endif
around the main function in unittest.cpp.
Reply


Messages In This Thread
[No subject] - by thelusiv - 12-17-2010, 12:00 PM
[No subject] - by thelusiv - 12-22-2010, 10:34 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)