$include_dir="/home/hyper-archives/boost-build/include"; include("$include_dir/msg-header.inc") ?>
From: Artem Alimarine (artem_at_[hidden])
Date: 2006-08-09 07:49:47
Hi,
Imagine I build an executable mylib.exe that depends on a library mylib.
# jam file for myexe
exe myexe : main.cpp <library>mylib ;
# jam file for the library
lib mylib : ... ;
unit-test mylib_test : ... ;
How can I make the unit-test to execute automatically every time the
executable is linked and the library is changed?
I know that I can give an explicit dependency in the exe rule
exe myexe : main.cpp <library>mylib : mylib_test ;
but that would require every client to give this dependency.
How can I encapsulate automatic testing in the library jamfile?
I wanted something like:
# jam file for myexe
exe myexe : main.cpp tested_mylib ;
# jam file for the library
lib mylib : ... ;
unit-test mylib_test : ... ;
??? tested_mylib : mylib : mylib_test ;
Artem