test(tools): Moved preset parsing into core_ext.py and added tests

This commit is contained in:
Marek Fiala
2025-11-03 17:34:21 +01:00
committed by Frantisek Hrbata
parent 6c01b6a324
commit 58b848dc15
4 changed files with 311 additions and 162 deletions
@@ -62,10 +62,23 @@ To build and run the app with `prod2` configuration, repeat the steps above, rep
To avoid having to specify `--preset` argument every time you run `idf.py`, you can set `IDF_PRESET` environment variable:
<!-- FIXME: Windows instructions -->
For UNIX-like systems (Linux, macOS):
```shell
export IDF_PRESET=prod1
# subsequent commands will work with 'prod1' configuration:
```
For Windows (PowerShell):
```powershell
$ENV:IDF_PRESET='prod1'
```
For Windows (cmd.exe):
```shell
set IDF_PRESET=prod1
```
Then subsequent commands will work with `prod1` configuration:
```shell
idf.py build
idf.py flash monitor
```