Re: otest -- only useful for bundles?
Re: otest -- only useful for bundles?
- Subject: Re: otest -- only useful for bundles?
- From: James Bucanek <email@hidden>
- Date: Mon, 7 Nov 2005 11:24:11 -0700
James Bucanek wrote on Sunday, November 6, 2005:
>-- Quiestion #2 --
>
>I've got this working for an Objective-C command-line utility and a Cocoa
>application, but it still fails to run the tests for my C++ command-line tool.
>I double checked everything I did for the Obj-C test case, and I appear to
>have everything set up correctly -- according to the instructions at least.
<clip>
>Here's where it gets stuck. The application builds OK, but then Xcode tries to
>build the PrimesToolTest bundle, and I get a link error.
After some searching, I discovered what the problem is. In addition to disabling ZeroLink, you must also turn off the "Symbols Hidden by Default" (GCC_SYMBOLS_PRIVATE_EXTERN) build setting for the application. This allows the test bundle to link to symbols in the executable's object files that wouldn't normally be declared as public symbols.
However, I'm still interested in answering these questions:
>-- Question #3 --
>
>Does the code I inserted into main() to run the test automatically turn off
>when the application is executed normally? Will it not spit out those annoying
>messages? How does my app know that tests should be run vs. when it should
>execute normally? Both the example code and the code I have above *alway* run
>the tests and exit. As its written now, my application won't ever run.
>
>-- Question #4 --
>
>When configuring a dependent unit test to test a framework or dynamic library,
>how should the target be configured? How does otest know which frameworks and
>libraries are being tested?
>
>-- Question #5 --
>
>Can you configure a dependent unit test to test a static library?
>
--
James Bucanek
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden