Boost logo

Boost-Build :

Subject: [Boost-build] bjam - conditionally building and running specific tests
From: Robert Ramey (ramey_at_[hidden])
Date: 2017-11-11 21:10:30

I have a test which I only want to be run if <link>shared and not when
using <link>static. I'm looking for the bjam syntax to do this. This page

seems to suggest that I can do this by setting the "requirements"
arugment of bjam commands to

run test_dll_exported.cpp polymorphic_base.cpp : <link>shared
dll_polymorphic_derived2_lib : test_dll_exported

but it doesn't seem to work for me. The above example is contrived to
make simpler. The real case from the Jamfile.v2 file in the test
directory of the serialization code.

Any help appreciated

Robert Ramey

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at