1#!/usr/local/bin/python3.8
2
3# Copyright 2015 Aaron Boman
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)
6
7# Test that free property inside.
8
9import BoostBuild
10
11t = BoostBuild.Tester(use_test_config=False)
12
13t.write("jamroot.jam", "")
14t.write(
15    "subdir/build.jam",
16    """
17    import feature ;
18    feature.feature my-feature : : free ;
19    """
20)
21t.write(
22    "subdir/subsubdir/build.jam",
23    """
24    exe hello : hello.c ;
25    """
26)
27t.write(
28    "subdir/subsubdir/hello.c",
29    r"""
30    #include <stdio.h>
31
32    int main(int argc, char **argv){
33        printf("%s\n", "Hello, World!");
34    }
35    """
36)
37
38# run from the root directory
39t.run_build_system(['subdir/subsubdir', 'my-feature="some value"'])
40
41t.cleanup()
42