Tests written using Python CHIP Controller used for gating chef device functionality.
The chef_device_functional_test
job in chef.yaml shows all chef tests run in CI.
docker run -it --rm ghcr.io/project-chip/chip-build:167 /bin/bash
Run the remaining commands inside the container.
git clone https://github.com/project-chip/connectedhomeip.git
cd connectedhomeip git config --global --add safe.directory "*" python scripts/checkout_submodules.py --shallow --recursive --platform linux source ./scripts/bootstrap.sh scripts/run_in_build_env.sh './scripts/build_python.sh --install_virtual_env out/python_env'
./examples/chef/chef.py -b -d {app_name} -t linux
app_name
and test_file
) -scripts/run_in_python_env.sh out/python_env './scripts/tests/run_python_test.py --app examples/chef/linux/out/{app_name} --factory-reset --script ./examples/chef/tests/{test_file}.py --script-args "--commissioning-method on-network --discriminator 3840 --passcode 20202021" --app-stdin-pipe /tmp/chef_stdin.txt'