• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Target setup for unit testing (using cppunit)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Target setup for unit testing (using cppunit)


  • Subject: Re: Target setup for unit testing (using cppunit)
  • From: Chris Hanson <email@hidden>
  • Date: Fri, 25 Nov 2005 16:40:28 -0800

On Nov 25, 2005, at 8:42 AM, James Bucanek wrote:

The symbols in your application need to be accessible to the tests in your unit test bundle both at link-time and at run-time.

You "link" your test bundle to your application by treating it like framework. In the Other Linker Flags build setting for you test bundle, add your application's binary to the list of frameworks:

OTHER_LDFLAGS = -framework Carbon -framework YourApplication

For this purpose you should point the BUNDLE_LOADER build setting in your bundle target configurations (available as "Bundle Loader" in the Linker settings collection) at your built application's executable:


BUNDLE_LOADER = $(BUILT_PRODUCTS_DIR)/YourApplication.app/Contents/ MacOS/YourApplication

This tells the linker that you're building a bundle that expects to import some symbols from the executable that is loading it. See the ld(1) man page, specifically the documentation for the -bundle_loader flag.

  -- Chris

_______________________________________________
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


  • Follow-Ups:
    • Re: Target setup for unit testing (using cppunit)
      • From: Stefan van den Oord <email@hidden>
References: 
 >Re: Target setup for unit testing (using cppunit) (From: James Bucanek <email@hidden>)

  • Prev by Date: Re: /Library/Caches/com.apple.Xcode.<UID> is huge!
  • Next by Date: Prevent warnings on forward struct declaration
  • Previous by thread: Re: Target setup for unit testing (using cppunit)
  • Next by thread: Re: Target setup for unit testing (using cppunit)
  • Index(es):
    • Date
    • Thread