3.1.3. Waf Tool Check DB Vars

The tool is located in tools/waf-tools.

3.1.3.1. Tool Documentation

Implements a waf tool to check the database initialization in foxBMS.

Listing 3.11 shows how to use this tool.

Listing 3.11 f_check_db_vars.py
1
2
3
4
5
6
7
8
def configure(conf):
    conf.load("f_check_db_vars")

def build:
    bld(
        features="db_check",
        files=bld.path.ant_glob("tests/unit/**/*.c"),
    )
f_check_db_vars.check_data_base_init(self)

Task creator for check_db_vars

class f_check_db_vars.check_db_vars(*args: Any, **kwargs: Any)

Bases: waflib.Task.

checks that database variables are initialized

keyword()

displayed keyword when this check is run

run()

does the actual check