3.1.4. Check DB Vars

The tool is located in tools/waf-tools.

3.1.4.1. Tool Documentation

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

Listing 3.1 shows how to use this tool.

Listing 3.1 f_check_db_vars.py
1def configure(conf):
2    conf.load("f_check_db_vars")
3
4def build:
5    bld(
6        features="db_check",
7        files=bld.path.ant_glob("tests/unit/**/*.c"),
8    )
class f_check_db_vars.check_db_vars(*args: Any, **kwargs: Any)

Bases: Task

checks that database variables are initialized

keyword()

displayed keyword when this check is run

run()

does the actual check