comp.lang.ada
 help / color / mirror / Atom feed
* gprbuild and package renames (testsuites)
@ 2019-06-24  7:47 Per Jakobsen
  2019-06-24 15:39 ` briot.emmanuel
  2019-06-26 14:14 ` Mark Lorenzen
  0 siblings, 2 replies; 4+ messages in thread
From: Per Jakobsen @ 2019-06-24  7:47 UTC (permalink / raw)


Hi

I'm using gprbuilds "Naming" package to make Stub-packages for the system to test:

   package Naming is
      for Specification ("B") use "stub_b.ads";
      for Body          ("B") use "stub_b.adb";
   end Naming;

This works fine for a single package, but then I wonder if testing multiple packages may be linked into the same executable:

The package structure is Package A depends on Package B which depends on Package C, and I want to write unit-tests for each package.

To test Package A, a stub must be made for Package B.
To test Package B, a stub must be made for Package C.
Package C can be tested without stubs.

Is it possible and/or reasonable to link in tests for multiple packages into the same testrunner?

Test suite A: Package A -> Package Stub_B
Test suite B: Package B -> Package Stub_C
Test suite C: Package C

Thing can get even more "interesting" if there are circular dependencies ("limited with")...

How are you guys handling this?

~Per

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-06-26 14:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-24  7:47 gprbuild and package renames (testsuites) Per Jakobsen
2019-06-24 15:39 ` briot.emmanuel
2019-06-25  5:47   ` Per Jakobsen
2019-06-26 14:14 ` Mark Lorenzen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox