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

This commit is contained in:
Marek Fiala
2025-09-25 16:21:06 +02:00
committed by BOT
parent 78ae7ab085
commit 1e351a8b67
4 changed files with 311 additions and 162 deletions

View File

@@ -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
```