[Dart] Running "make install" as part of the testing process
Blezek, Daniel J., Ph.D.
Blezek.Daniel at mayo.edu
Thu May 29 17:41:06 EDT 2008
Hi Jan,
Dart isn't really the tool for your problem. CTest has a scripting
"language" built in that will do the steps you outline below, see
http://www.cmake.org/Wiki/CMake_Scripting_Of_CTest. Dart intentionally
doesn't have any facilities for running tests. Incidentally, you should
have a look at cdash.org, it's the next generation of Dart.
Regards,
-dan
-----Original Message-----
From: dart-bounces at public.kitware.com
[mailto:dart-bounces at public.kitware.com] On Behalf Of rendek at loria.fr
Sent: Thursday, May 29, 2008 10:51 AM
To: dart at public.kitware.com
Subject: [Dart] Running "make install" as part of the testing process
Hello,
I'm a long time cmake user, but pretty new to ctest and Dart.
The project I wish to configure Dart for consists in several libraries.
Each library sources being hosted in a separate subdirectory.
For each of these library, we have to separate testsuites. One consist
of unit tests, and only requires the tested library code to compile.
The other is more "blackbox" oriented, and the tests need to be linked
with several libraries of the project.
This is more or less the directory tree I have
root
+ lib1
+ include
+ src
+ testsuite
+ unit
+ Unit1.cxx
+ blackbox
+ BBox.cxx
+ lib2
(same dir. structure)
I have no problem with the unit tests. But the blackbox tests would
require the following sequence:
make
make install
ctest
The blackbox tests are linked with the compiled and installed libraries.
Of course, I could explicitly list the path to each library in the build
directory, but I'd rather not do that. Mainly because my blackbox tests
emulate what a real application would do.
Would it be possible to script the above sequence somehow within darts ?
Thank you for your time,
Jan Rendek
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
_______________________________________________
Dart mailing list
Dart at public.kitware.com
http://public.kitware.com/mailman/listinfo/dart
More information about the Dart
mailing list