3 # Copyright 2003 Dave Abrahams
4 # Distributed under the Boost Software License, Version 1.0.
5 # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
7 # This tests the core rule for enumerating the variable names in a module.
11 t = BoostBuild.Tester(pass_toolset=0)
13 t.write("file.jam", """\
21 expected = var1 var2 ;
22 names = [ VARNAMES foo ] ;
23 if $(names) in $(expected) && $(expected) in $(names)
29 EXIT expected to find variables $(expected:J=", ") in module foo,
30 but found $(names:J=", ") instead. ;
36 t.run_build_system(["-ffile.jam"], status=0)