Koosha
Koosha

Reputation: 1584

How to set environment variable in Boost Build for Boost Unit Test Framework?

Please note that:

How do I do this in my Jamfile?

Upvotes: 0

Views: 1207

Answers (1)

chwala
chwala

Reputation: 199

I found here an option called testing.arg, you can use it to send arguments to the UnitTest's executable before starting it.

Here you can find information that you can set the environment variable using the following syntax in the UnitTest's command line --<command_line_argument_name>=<argument_value>.

By combining both information, we can assume that this will help you:

unit-test helpers_test
    : helpers_test.cpp helpers
    : <testing.arg>"--LC_ALL=C"
;
``

Upvotes: 0

Related Questions