Angus Gratton
2597e046c5
Merge branch 'bugfix/ci_retries_when_download_v4.0' into 'release/v4.0'
...
CI: retry shell commands when download (v4.0)
See merge request espressif/esp-idf!9890
2020-08-04 12:48:03 +08:00
Michael (XIAO Xufeng)
26d7fb7744
Merge branch 'ci/resume_esp_flash_tests_4.0' into 'release/v4.0'
...
ci: resume esp_flash unit tests (v4.0)
See merge request espressif/esp-idf!9793
2020-08-02 17:15:24 +08:00
Alexey Gerenkov
a7fe03dcb0
tools: Updates OpenOCD version to 'v0.10.0-esp32-20200709'
2020-07-31 07:16:19 +00:00
Anton Maklakov
c2d261c88e
ci: use the retry script to download
2020-07-31 13:07:07 +07:00
Anton Maklakov
8ed6242e27
ci: add a helper for retrying shell command
2020-07-31 13:04:59 +07:00
Mahavir Jain
d3034e8172
Merge branch 'bugfix/convert-string-to-bytes_v4.0' into 'release/v4.0'
...
components: convert string to bytes to fix TypeError (backport v4.0)
See merge request espressif/esp-idf!9732
2020-07-30 16:11:02 +08:00
Roland Dobai
6bec17308c
Tools: Close temporary file before invoking external tools accessing it
2020-07-29 07:39:50 +02:00
Michael (XIAO Xufeng)
818a2f8768
ci: resume esp_flash unit tests
2020-07-29 10:00:23 +08:00
Angus Gratton
8cfc9f1609
Merge branch 'bugfix/prov_retry_failures_v4.0' into 'release/v4.0'
...
ci: Add retries for all provisioning methods, some refactors (v4.0)
See merge request espressif/esp-idf!9389
2020-07-23 13:17:21 +08:00
martin.gano
2595326978
components: convert string to bytes to fix TypeError There is a string passed as an argument for function, but a format of a string seemingly refers to bytes therefore it needs to be converted to bytes Solves https://esp32.com/viewtopic.php?f=13&t=16529
...
(cherry picked from commit cb0bdb8bba
)
2020-07-22 11:04:22 +02:00
Renz Christian Bagaporo
34f4b5a4d3
ci: pushd and cd in one go in idf_build_process defaults test
2020-07-20 18:24:05 +08:00
Renz Bagaporo
d30f3b6edd
cmake: fix setting defaults in idf_build_process
...
Closes https://github.com/espressif/esp-idf/issues/5053
2020-07-20 18:24:05 +08:00
Renz Bagaporo
948795265d
ci: test idf_build_process defaults set properly
2020-07-20 18:24:02 +08:00
He Yin Ling
ce88e9d3fe
CI: do not run cases likely to fail
2020-07-19 14:58:28 +08:00
He Yin Ling
83895b4e78
CI: disable cases with test env SSC_T5_1
2020-07-19 14:58:28 +08:00
He Yin Ling
53852b555e
CI: temp allow mesh job to fail as runner is not stable
2020-07-19 14:58:27 +08:00
Angus Gratton
bf1394eeb8
Merge branch 'feature/toolchain_2020r2_v4.0' into 'release/v4.0'
...
Update toolchain to esp-2020r2 (backport v4.0)
See merge request espressif/esp-idf!9001
2020-07-16 16:22:17 +08:00
Anton Maklakov
009492ca9a
Merge branch 'bugfix/fix_static_analysis_rules_v4.0' into 'release/v4.0'
...
static analysis: Apply current limits of known defects (v4.0)
See merge request espressif/esp-idf!9277
2020-07-15 16:56:22 +08:00
Anton Maklakov
6182c172bf
Update toolchain to esp-2020r2
...
Fixes PSRAM issues, volatile loads with -O2, std::locale, C++ exception crashs, FDE sorting switchable;
Includes a 64-bit toolchain for Windows (win64);
Closes https://github.com/espressif/esp-idf/issues/5090
Closes https://github.com/espressif/esp-idf/issues/5112
Closes https://github.com/espressif/esp-idf/issues/5150
2020-07-14 14:04:54 +07:00
Jeroen Domburg
faae3ceec5
Add fixes for gcc8 psram fix improvement
2020-07-14 14:04:53 +07:00
Ivan Grokhotkov
1e95aba03a
Merge branch 'feature/msys2_env_update_v4.0' into 'release/v4.0'
...
windows: Update MSYS2 pre-compiled legacy build environment (v4.0)
See merge request espressif/esp-idf!9144
2020-07-06 15:16:39 +08:00
Angus Gratton
d7f251aef3
ci provisioning: Add some experiments to check the runner's STA state
...
Not clear why sometimes it associates without negotiating a new DHCP lease.
2020-07-03 09:13:46 +00:00
Angus Gratton
e0fc7b1c48
esp_prov: Extend the timeout for HTTP connection to SoftAP
2020-07-03 09:13:46 +00:00
Angus Gratton
7358470ae9
ci wifi_tools: Log the wpa_supplicant interface state when trying to connect
...
Trigger reconnection if wpa_supplicant seems to have dropped the connection.
2020-07-03 09:13:46 +00:00
Angus Gratton
822b6986aa
esp_prov: Refactor to use new 'wait_wifi_connected' function
...
Means all provisioning examples will have the same retry behaviour.
2020-07-03 09:13:46 +00:00
Angus Gratton
6787718e1b
ci provisioning: Use strings instead of "magic numbers" for connection state
2020-07-03 09:13:46 +00:00
David Cermak
ae177f7077
static analysis: Apply current limits of known defects on v4.0
2020-06-25 06:16:14 +00:00
Roland Dobai
9624d9b19b
Tools: Mention ESPPORT and ESPBAUD in idf.py --help
...
Closes https://github.com/espressif/esp-idf/issues/5461
2020-06-24 10:19:37 +02:00
morris
b53c59b7a4
tools: fix python lint
2020-06-24 13:22:21 +08:00
Roland Dobai
0de2507b24
tools/idf.py: Clean Python bytecode files
2020-06-22 10:44:26 +02:00
Angus Gratton
83d6ab9b5f
msys2: Remove python version consideration in pacman commands
2020-06-12 10:24:29 +10:00
Angus Gratton
6a844f3737
Merge branch 'bugfix/kconfig_hex_values_v4.0' into 'release/v4.0'
...
kconfig: Fix two cases of hex values being handled incorrectly (v4.0)
See merge request espressif/esp-idf!8788
2020-06-01 14:48:16 +08:00
Angus Gratton
2ea5f522f3
ci: Don't push to Github or deploy docs on customized pipelines
...
BOT_TRIGGER_WITH_LABEL must be empty (meaning all tests are running).
2020-05-27 19:06:30 +10:00
Angus Gratton
d1107a5234
ci: Increase target test runnner count
2020-05-27 11:17:52 +10:00
Angus Gratton
43c32f878a
Merge branch 'bugfix/ci_partition_table_detection_v4.0' into 'release/v4.0'
...
CI: Fix partition table detection if "partition" is in the project name (v4.0)
See merge request espressif/esp-idf!8432
2020-05-27 07:51:54 +08:00
Angus Gratton
6059992efd
Merge branch 'feature/ldgen_output_determinism_v4.0' into 'release/v4.0'
...
ldgen: determinism in mapping rule order (v4.0)
See merge request espressif/esp-idf!8663
2020-05-27 07:50:11 +08:00
Angus Gratton
fa527dc6b3
Merge branch 'bugfix/make_to_cmake_msys_py3_v4.0' into 'release/v4.0'
...
tools: Make Unicode from subprocess result in the CMake convert script (v4.0)
See merge request espressif/esp-idf!8544
2020-05-27 07:49:34 +08:00
Angus Gratton
1d7765eeea
Merge branch 'bugfix/ci_unterminated_sdkconfig_defaults_v4.0' into 'release/v4.0'
...
CI: Add EOL to sdkconfig.defaults before adding sdkconfig.ci (v4.0)
See merge request espressif/esp-idf!8457
2020-05-27 07:48:43 +08:00
Angus Gratton
a748457a70
version: Update to v4.0.1
2020-05-25 14:05:55 +10:00
Angus Gratton
18abdd7cb0
confserver: Always store hex values in sdkconfig with 0x prefix
...
This is not necessary for correct behaviour or to have valid sdkconfig files
(previous commit adds tests for this), but it's useful for consistency with
sdkconfig files generated by menuconfig.
As reported in https://github.com/espressif/vscode-esp-idf-extension/issues/83
2020-05-18 17:02:37 +10:00
Angus Gratton
260fe847e2
kconfig: Fix generation of hex outputs for Make & CMake
...
And add tests for hex output formatting in all output formats.
Previously, Make & CMake outputs only formatted hex values with the 0x prefix
if they had the 0x prefix in the sdkconfig file. Now this prefix is always
applied.
Closes https://github.com/espressif/vscode-esp-idf-extension/issues/83
2020-05-18 17:02:37 +10:00
Renz Bagaporo
4011393920
ldgen: determinism in mapping rule order
...
This MR imposes some determinism in the mapping rule order in the output
file. For each section, the archives are arranged alphabetically
(ascending), and the mapping rules in each archive are arranged by
increasing specificity then alphabetically (ascending). The default
rules remain the very first rule for each section.
2020-05-08 21:10:19 +08:00
Angus Gratton
08bcb587ec
Merge branch 'fix/ci_example_test_prov_v4.0' into 'release/v4.0'
...
CI: Fix prov example test exception handle (v4.0)
See merge request espressif/esp-idf!8440
2020-05-06 16:59:20 +08:00
Shivani Tipnis
a7ca14b064
CI: Fix prov example test cryptography package version exception handling
2020-05-06 04:54:59 +00:00
Nachiket Kukade
1fc54cfad8
Increase example cmake parallel jobs number
2020-05-06 10:21:29 +05:30
Roland Dobai
7f4b651434
tools: Make Unicode from subprocess result in the CMake convert script
...
Fixes an issue with Python 3 in MSYS where it fails while trying to join
paths where one part is Unicode (default string on Python3) and the
second part are bytes (returned by the subprocess call).
Closes https://github.com/espressif/esp-idf/issues/5189
2020-04-28 15:22:27 +02:00
Roland Dobai
c4af9d3e24
CI: Add EOL to sdkconfig.defaults before adding sdkconfig.ci
2020-04-23 16:54:33 +02:00
Roland Dobai
2d13bfb8fa
CI: Fix partition table detection if "partition" is in the project name
2020-04-22 10:05:18 +02:00
Mahavir Jain
2cc9d28a35
Merge branch 'fix/wifi_provisioning_uuid_v4.0' into 'release/v4.0'
...
Wifi_provisioning: Change service_uuid to non standard 128 bit UUID and add retries in test script (backport v4.0)
See merge request espressif/esp-idf!8163
2020-04-01 13:04:26 +08:00
Angus Gratton
a3f3c7bdc3
Merge branch 'bugfix/monitor_encrypted_target_v4.0' into 'release/v4.0'
...
tools: Fix flashing encrypted binaries from IDF Monitor (v4.0)
See merge request espressif/esp-idf!8128
2020-03-31 13:11:02 +08:00
Angus Gratton
0b822a9ec7
Merge branch 'bugfix/kconfiglib_open_encoding_v4.0' into 'release/v4.0'
...
tools: Avoid Unicode error in kconfiglib while opening files
See merge request espressif/esp-idf!8082
2020-03-31 11:52:16 +08:00
Prasad Alatkar
1e2ca78aac
Wifi_provisioning_ble: Change service_uuid to non standard 128 bit UUID (v4.0)
...
- Modifies UUIDs in scheme_ble, manager example and esp_prov tool to custom 128
bit UUID
2020-03-30 11:22:32 +05:30
Roland Dobai
13f4656d2a
tools: Fix flashing encrypted binaries from IDF Monitor
2020-03-27 10:31:37 +01:00
Roland Dobai
e9fdc4c7b2
tools: Avoid Unicode error in kconfiglib while opening files
...
This fix is for IDF v4.0 and earlier versions. The upstream kconfiglib
included since IDF v4.1 doesn't have this issue.
Closes https://github.com/espressif/esp-idf/issues/4977
2020-03-23 11:36:10 +01:00
Renz Christian Bagaporo
35839232c8
cmake: utility to create a failing target
2020-03-22 21:09:23 +08:00
Renz Bagaporo
7663928e49
ci: add test for partition_table target
2020-03-22 21:04:13 +08:00
Shubham Kulkarni
8785ac4c2a
Bugfix for failing OTA example
...
example_test.py is added to test advanced_https_ota_example and native ota_example.
Closes https://github.com/espressif/esp-idf/issues/4394
2020-03-18 08:19:56 +00:00
He Yin Ling
0ad0507f88
ci: add find job id argument job status:
...
if we retry failed job, we will have 2 jobs with same name in one pipeline. we need to use status to find the retried job instead of failed job.
2020-03-12 09:59:31 +08:00
Michael (XIAO Xufeng)
1b08b7c5fb
Merge branch 'bugfix/spiflash_read_psram_v4.0' into 'release/v4.0'
...
spi_flash: Fix over-allocation and OOM crash when reading from SPI flash to PSRAM buffers (v4.0)
See merge request espressif/esp-idf!7878
2020-03-09 11:10:52 +08:00
Angus Gratton
c38c3ff3f0
spi_flash: Remove 16KB free internal heap limit for esp_flash_read() into PSRAM
...
Allocation of the temporary internal buffer will now repeat until a small enough buffer can be
allocated, and only fail if less than a 256 byte block of internal RAM is free.
Adds unit test for the same, and generic test utility for creating memory pressure.
2020-03-09 09:59:43 +11:00
Angus Gratton
3d0ecfdc70
cmake: Add warnings that convert_to_cmake.py doesn't calculate component requirements
...
Any component which requires another component will need this manually
added to its CMakeLists.txt file.
2020-03-05 17:06:38 +11:00
Angus Gratton
e85c4a65a4
cmake: convert_to_cmake: Fix possible whitespace issues
...
As reported on forum:
https://esp32.com/viewtopic.php?f=2&t=13565&p=53476#p53453
split() with no arg will match any whitespace sequence not just
a single space, so takes care of case where two spaces are
inserted in the variable value.
2020-03-05 17:06:38 +11:00
Angus Gratton
a2af518069
Merge branch 'bugfix/ci_weekend_test_update_v4.0' into 'release/v4.0'
...
ci: a build_system_test(_cmake) fix and some mqtt fixes (backport v4.0)
See merge request espressif/esp-idf!7773
2020-03-02 12:43:34 +08:00
Roland Dobai
2a4173e9a6
Docs: Encourage to used Python 3
2020-02-26 09:01:42 +01:00
David Cermak
ee8ab79696
ci: fix test build system when using template repository from a
...
different branch then master
2020-02-25 18:32:22 +07:00
David Cermak
a7f573c3a1
ci: fix weekend test confguration update per latest refactoring of
...
grouping tests
2020-02-25 18:32:11 +07:00
Angus Gratton
a8fe083017
cmake: Set uninitialized variable warnings in ULP & bootloader subprojects
...
Fixes issue where PYTHON was not being expanded when running ulp_mapgen.py,
causing Windows launch setting to be used - reported here:
https://esp32.com/viewtopic.php?f=13&t=12640&p=50283#p50283
Closes https://github.com/espressif/esp-idf/issues/4785
2020-02-25 17:16:42 +11:00
Roland Dobai
6b6d9d7321
confgen.py: Escape special characters for cmake
...
Closes https://github.com/espressif/esp-idf/issues/4751
2020-02-18 09:55:53 +01:00
michael
8c148ede22
mcpwm: enable some unit tests again
2020-02-15 18:39:27 +08:00
Ivan Grokhotkov
45454cd477
ci: re-add the lost PEDANTIC_{C,CXX}FLAGS in CMake example builds
2020-02-13 19:01:43 +01:00
Ivan Grokhotkov
2309313103
Merge branch 'bugfix/ci_no_attempts_no_custom_toolchain_url_v4.0' into 'release/v4.0'
...
ci: no stage attempts variables, no custom toolchain url (backport v4.0)
See merge request espressif/esp-idf!7542
2020-02-12 17:55:17 +08:00
Ivan Grokhotkov
8cb3cc5154
Merge branch 'bugfix/idf_tools_virtualenv_v4.0' into 'release/v4.0'
...
idf_tools.py: fix install-python-env failure with virtualenv 20.0.0 (backport v4.0)
See merge request espressif/esp-idf!7553
2020-02-12 17:32:20 +08:00
Ivan Grokhotkov
7ccf6ebada
idf_tools.py: fix install-python-env failure with virtualenv 20.0.0
...
--no-site-packages is the default behavior since virtualenv 1.7
(released in Nov 2011). This option was removed in virtualenv 20.0.
2020-02-11 09:46:03 +01:00
Anton Maklakov
f368f69922
idf_tools.py: fix downloading for tools which have "on_request" options for some platforms.
...
'install' and 'download' options can be used for 'required' or 'all' tools
2020-02-10 20:10:26 +01:00
Anton Maklakov
c5d20275dd
ci: remove using IDF_XTENSA_TOOLCHAIN_URL because there are idf_tools.json and multi-target support
2020-02-10 18:38:23 +07:00
Ivan Grokhotkov
c3961fdacb
Merge branch 'bugfix/idf_monitor_usbser_sys_v4.0' into 'release/v4.0'
...
tools: work around usbser.sys bug in IDF monitor (v4.0)
See merge request espressif/esp-idf!7470
2020-02-10 17:34:00 +08:00
Ivan Grokhotkov
c8215756fa
Merge branch 'feature/idfpy_add_baud_parameter_to_monitor_v4.0' into 'release/v4.0'
...
idf.py: add monitor-baud option to monitor command (v4.0)
See merge request espressif/esp-idf!7461
2020-02-10 17:33:32 +08:00
Ivan Grokhotkov
97ef8fd057
Merge branch 'bugfix/idf_tools_v4.0' into 'release/v4.0'
...
idf_tools.py bug fixes (backport v4.0)
See merge request espressif/esp-idf!7479
2020-02-10 16:29:27 +08:00
Angus Gratton
c2bce897b8
idf.py: Add environment variable to enable ccache by default
2020-01-30 12:14:54 +01:00
Ivan Grokhotkov
5140eea3d1
tools/docker: enable ccache by default
2020-01-30 12:10:31 +01:00
Ivan Grokhotkov
1b0473494f
tools/docker: install CMake version provided in tools.json
...
Closes https://github.com/espressif/esp-idf/issues/4644
Closes IDFGH-2559
2020-01-30 12:10:31 +01:00
Ivan Grokhotkov
97242031e7
idf_tools.py: fix typo in __PYVENV_LAUNCHER__ env variable name
...
Fixes the workaround added in 9279b72a6
.
2020-01-30 11:59:29 +01:00
Ivan Grokhotkov
5ab36dc2ec
idf_tools.py: fix virtualenv issue for macOS with homebrew
2020-01-30 11:59:16 +01:00
Ivan Grokhotkov
09dd8ca3e9
idf_tools.py: when guessing IDF_PATH, set it in the enviroment
...
This allows the processes launched from idf_tools.py to use the value
of IDF_PATH. One such example is the installation of Python packages,
when requirements.txt uses IDF_PATH to refer to the esp-windows-curses
package.
Closes https://github.com/espressif/esp-idf/issues/4341
2020-01-30 11:57:51 +01:00
Rosa Elena Veiga Otero
02596a7efa
tools: work around usbser.sys bug in idf_monitor
...
implemented workaround in idf_monitor for known usbser.sys bug which
causes changes in RTS signal to only be sent if DTR signal also changes.
Works by forcing a dummy change in DTR signal (re-assigning its current
value, as it has previously been done in the flashing tool)
Closes https://github.com/espressif/esp-idf/pull/4676
2020-01-29 10:36:43 +01:00
Sergei Silnov
ead0e6da36
idf.py: add monitor-baud option to monitor command
2020-01-27 18:54:37 +01:00
Anton Maklakov
ef34e6f6f7
ci: fix tags for internal deploy jobs
2020-01-10 18:33:11 +07:00
Shivani Tipnis
b7a191a996
ci: Fix target variable default value v4.0
2020-01-07 20:29:06 +05:30
Renz Christian Bagaporo
989dac1e64
cmake: implement utility to import prebuilt libraries
2020-01-06 09:39:49 +08:00
Ivan Grokhotkov
cb1d440cb8
Merge branch 'bugfix/fix_python3_errors_for_ttfw_v4.0' into 'release/v4.0'
...
test: fix python3 errors for ttfw (backport v4.0)
See merge request espressif/esp-idf!7146
2019-12-31 17:56:37 +08:00
Roland Dobai
e8b454e802
CI: Adjust the test parameters of IDF Monitor
2019-12-30 14:28:30 +01:00
He Yin Ling
dae4da07c3
CI: reduce number of unit test jobs
2019-12-30 10:59:47 +08:00
He Yin Ling
ca3b2a8909
test: fix multiple devices cases fail on python3
2019-12-30 10:55:57 +08:00
He Yin Ling
95f0553f40
test: let unit test jobs use python3
2019-12-30 10:55:46 +08:00
He Yin Ling
09935510bd
ttfw: fix incorrect relative import for python3
2019-12-30 10:55:32 +08:00
Angus Gratton
83813f830d
Merge branch 'bugfix/menuconfig_confirm_v4.0' into 'release/v4.0'
...
Menuconfig: Don't ask to save configuration when nothing has changed (backport v4.0)
See merge request espressif/esp-idf!6813
2019-12-20 13:11:00 +08:00
Jiang Jiang Jian
482d2f06c3
Merge branch 'ci/artifact_expiry_v4.0' into 'release/v4.0'
...
ci: Keep build artifacts for 4 days (v4.0)
See merge request espressif/esp-idf!6994
2019-12-16 14:23:44 +08:00
Angus Gratton
3ba9eae86c
Merge branch 'feature/ci_optimize_artifact_download_v4.0' into 'release/v4.0'
...
CI: optimize example build and artifact download (backport v4.0)
See merge request espressif/esp-idf!6940
2019-12-13 11:36:04 +08:00
Angus Gratton
a8e01de0e4
ci: Keep build artifacts for 4 days
2019-12-12 06:30:13 +00:00
Angus Gratton
0104a24a36
Merge branch 'bugfix/server_down_message_v4.0' into 'release/v4.0'
...
tools: Produce user friendly error during install when the server is down (v4.0)
See merge request espressif/esp-idf!6958
2019-12-12 08:12:36 +08:00
Angus Gratton
30ac846112
Merge branch 'bugfix/cmake_secure_boot_v4.0' into 'release/v4.0'
...
secure boot: CMake bug fixes (v4.0)
See merge request espressif/esp-idf!6630
2019-12-12 06:30:37 +08:00
He Yin Ling
45a50ed701
test: fix incorrect error type in xunit result
2019-12-11 15:57:49 +11:00
He Yin Ling
fd481d9cdd
ci: fix fetch submodule error on python3
2019-12-11 15:57:49 +11:00
Ivan Grokhotkov
ec8e057e4c
ci: remove dependencies from link_check job
2019-12-11 15:57:49 +11:00
He Yin Ling
fbdedee4cb
ci: reduce number of unit test cases
2019-12-11 15:57:49 +11:00
He Yin Ling
48786c1da0
CI: remove not exist file from executable-list.txt
2019-12-11 15:57:49 +11:00
He Yin Ling
e9be102224
CI: build system do not check submodule for CI
2019-12-11 15:57:49 +11:00
He Yin Ling
3691ebc273
CI: modify fetch submodule method:
...
download archive for submodules instead of clone
2019-12-11 15:57:49 +11:00
He Yin Ling
31b9329d36
CI: raise import error instead of exit for ble tools
2019-12-11 15:57:49 +11:00
He Yin Ling
d00acce7b2
CI: support only download artifacts by request:
...
use CI dependencies could waste a lot bandwidth for target test jobs, as
example binary artifacts are very large. Now we will parse required
artifacts first, then use API to download required files in artifacts.
2019-12-11 15:57:49 +11:00
He Yin Ling
6e05a79536
test: update example and unit tests with new import roles:
...
tiny_test_fw is a python package now. import it using normal way.
2019-12-11 15:57:49 +11:00
He Yin Ling
978bf09f83
CI: add utility gitlab_api
2019-12-11 15:57:49 +11:00
He Yin Ling
7a5d17e1b7
tiny-test-fw: move to tools/esp_python_packages:
...
make `tiny_test_fw` as a package and move to root path of idf python
packages
2019-12-11 15:57:49 +11:00
He Yin Ling
d3e0301aee
tiny-test-fw: only load module from the same file one time:
...
we should only load one module once.
if we load one module twice, python will regard the same object loaded in the first time and second time as different objects.
it will lead to strange errors like `isinstance(object, type_of_this_object)` return False
2019-12-11 15:57:49 +11:00
He Yin Ling
69c0e6243e
unit-test-app: fix test script error when handling multiple unit test configs in one config file:
...
If we have multiple configs, we need to flash DUT with different binaries. But if we don't close DUT before apply new config, the old DUT will be reused, so new config name will not be applied.
2019-12-11 15:57:49 +11:00
He Yin Ling
cffe7bf3a1
ci: use more flexible assign for unit test cases
2019-12-11 15:57:49 +11:00
He Yin Ling
1041bc800c
unit-test-app: print config name in test script
2019-12-11 15:57:49 +11:00
He Yin Ling
dd74a331c7
tiny-test-fw: print useful debug info when assign test:
...
* total requirements (number of required jobs vs tags)
* unused CI jobs
* missing jobs (number of missing jobs vs tags)
2019-12-11 15:57:49 +11:00
He Yin Ling
6ee7492512
ci: optimize unit test assignment:
...
Currently we use config and test function as filter when assign cases to one CI job. It's not necessary as the runner can run test with different configs / test functions. Now we will try to assign as many cases to a job as possible, to reduce the amount of jobs required.
2019-12-11 15:57:49 +11:00
Ivan Grokhotkov
3fcecdd12e
ci: don't add build_examples_make as a target_test dependency
2019-12-11 15:57:49 +11:00
Ivan Grokhotkov
f3c8907cef
ci: reimplement build_examples_cmake using {find,build}_apps.py
2019-12-11 15:57:49 +11:00
Ivan Grokhotkov
7db756fbd9
tiny-test-fw: add build config and target options
2019-12-11 15:57:49 +11:00
Ivan Grokhotkov
1d72766f1a
tools: add build warnings checking script
2019-12-11 15:57:49 +11:00
Ivan Grokhotkov
5d03ae7428
tools: add {find,build}_apps.py, scripts to build multiple apps
...
This commit adds a pair of scripts, find_apps.py and build_apps.py.
These scripts are intended to be used in various CI jobs, building
multiple applications with different configurations and targets.
The first script, find_apps.py, is used to prepare the list of builds:
1. It finds apps for the given build system.
2. For each app, it finds configurations (sdkconfig files) which need
to be built.
3. It filters out the apps and configurations which are not compatible
with the given target.
4. It outputs the list of builds into stdout or a file. Currently the
format is a list of lines, each line a JSON string. In the future,
the tool can be updated to output YAML files.
The lists of builds can be concatenated and processed with standard
command line tools, like sed.
The second script, build_apps.py, executes the builds from the list.
It can execute a subset of builds based on --parallel-count and
--parallel-index arguments.
These two scripts are intended to replace build_examples_make,
build_examples_cmake, and the custom unit-test-app logic (in the
Makefile and idf_ext.py).
Closes IDF-641
2019-12-11 15:57:49 +11:00
Roland Dobai
bb7e52a4a8
tools: Produce user friendly error during install when the server is down
...
Closes https://github.com/espressif/esp-idf/issues/4329
2019-12-09 15:51:38 +01:00
Angus Gratton
4d3c650b49
Merge branch 'bugfix/macos_link_toomany_open_files_v4.0' into 'release/v4.0'
...
build system: explicitly disable LTO plugin to reduce the number of simultaneously open files (backport v4.0)
See merge request espressif/esp-idf!6867
2019-12-09 06:19:30 +08:00
Ivan Grokhotkov
afeed3cc6f
build system: explicitly disable LTO plugin
...
... to reduce the number of simultaneously open files at link time.
When plugin support is enabled in the linker, BFD's (and the
corresponding file handles) are cached for the plugin to use. This
results in quite a large number of simultaneously open files, which
hits the default limit on macOS (256 files).
Since we aren't using LTO now, disable it explicitly when invoking the
linker.
Closes IDF-923
Closes IDFGH-1764
Closes https://github.com/espressif/esp-idf/issues/3989
2019-11-28 11:02:18 +01:00
Roland Dobai
c45830d03f
tools: Don't use git work-tree in idf_tools.py
...
Closes https://github.com/espressif/esp-idf/issues/4355
2019-11-26 08:56:34 +01:00
Roland Dobai
97488fe806
Menuconfig: Don't ask to save configuration when nothing has changed
...
Closes https://github.com/espressif/esp-idf/issues/4303
2019-11-25 11:29:58 +01:00
Michael (XIAO Xufeng)
337b1df430
esp_flash: add unit test for external flash and QE toggling
...
Tests for external flash chips used to controlled by macros, one bin for
one chip. And tests are done manually. This commit refactored the test
so that all 3 chips can all run in single test.
2019-11-21 12:26:15 +08:00
Angus Gratton
668c0dfb9b
Merge branch 'bugfix/idfpy_before_flash_option_v4.0' into 'release/v4.0'
...
idf.py: Add --before flag to esptool.py call (v4.0)
See merge request espressif/esp-idf!6625
2019-11-21 06:40:14 +08:00
Angus Gratton
0b0f8d6d6c
Merge branch 'feature/windows_ccache_enable_v4.0' into 'release/v4.0'
...
tools: export IDF_CCACHE_ENABLE on Windows by default (backport v4.0)
See merge request espressif/esp-idf!6664
2019-11-21 06:39:27 +08:00
Jiang Jiang Jian
3b879ce8c3
Merge branch 'bugfix/put_more_rx_code_to_iram_v4.0' into 'release/v4.0'
...
Put some rx code to iram (backport v4.0)
See merge request espressif/esp-idf!6492
2019-11-20 11:19:20 +08:00
Angus Gratton
99fb9a3f7c
Merge branch 'bugfix/miscellaneous_cmake_fixes' into 'release/v4.0'
...
CMake bugfixes
See merge request espressif/esp-idf!6654
2019-11-19 06:52:07 +08:00
xiehang
e5773cc2fe
esp_wifi: Put some rx code to iram and update phy4180
2019-11-18 02:54:46 +00:00
Angus Gratton
5bb0b39700
ci: Add test configs for 32kHz crystals
2019-11-16 17:06:14 +08:00
Ivan Grokhotkov
68ad6ad63a
tools/docker: use correct branch and commit of IDF when building
2019-11-12 09:57:15 +01:00
Ivan Grokhotkov
981b2496cb
tools: export IDF_CCACHE_ENABLE on Windows by default
2019-11-12 09:54:57 +01:00
Renz Christian Bagaporo
e4137cc6ca
cmake: support git worktree
...
Use rev-parse to get the HEAD directory instead of manually looking for
it. This method works in the main repository, worktrees and submodules.
Closes https://github.com/espressif/esp-idf/issues/4136
2019-11-11 18:09:15 +08:00
Renz Christian Bagaporo
308e4fcce1
cmake: do not check if sdkconfig exists
2019-11-11 18:06:48 +08:00
Renz Christian Bagaporo
95b5745c3c
cmake: treat unregistered components as unresolved
2019-11-11 18:03:26 +08:00
Renz Christian Bagaporo
ecce2bc926
cmake: introduce BUILD_COMPONENT_ALIASES
...
This commit makes it so that BUILD_COMPONENT holds only the component,
and a new property BUILD_COMPONENT_ALIASES hold the full name of the
component.
This also removes erroneous check for duplicate components, as this can
never happen:
(1) if two components have the same name but different prefixes,
the internal names are still unique between them
(2)if two components happen to have the same name and same prefix, the
latter would override the former
2019-11-11 18:01:00 +08:00
Renz Christian Bagaporo
b69898257a
cmake: make build components available before immediately
...
Previous implementation only builds list of components included in the
build during component registration.
Since the build components is known as the requirements expansion is
ongoing, update the list here instead.
2019-11-11 18:00:50 +08:00
Renz Christian Bagaporo
22548d0ea4
cmake: hide internal targets
...
Use imported library, which does not create additional rules, but still
allows attaching arbitraty properties instead of custom targets. This
allows the targets to not appear in the target list of IDEs such as
CLion.
2019-11-11 17:58:02 +08:00
Michael (XIAO Xufeng)
f54cab62a2
ci: fix one ut issue when using Wrover-B module with newer ver of PSRAM
...
The workaround for PSRAM that will occupy an SPI bus is enabled only when:
1. used on 32MBit ver 0 PSRAM.
2. work at 80MHz.
The test used to only check 32MBit by the config option, but for PSRAM
on Wrover-B module seems to use a newer version of 32MBit PSRAM. So it
expects the workaround to be enabled, but actually not.
This commit split the unit test into two parts:
1. check all SPI buses are available, for all configs except psram_hspi
and psram_vspi, run on regular runners (including Wrover and Wrover-B).
a hidden option is enabled so that the compiler knows it's not building
psram_hspi or psram_vspi.
2. check the specified bus are acquired, for config psram_hspi and
psram_vspi. This only run on special runner (legacy Wrover module).
2019-11-08 08:25:35 +00:00
Angus Gratton
90568fbf00
secure boot: Fix bug where verification key was not embedded in app
2019-11-08 11:39:01 +08:00
tatsutaigu
6f6629e568
idf.py: Add --before flag to esptool.py call
...
Merges https://github.com/espressif/esp-idf/pull/4125
2019-11-07 17:37:18 +01:00
Anton Maklakov
2cd3018c0a
Introduce esp-2019r2 toolchain
2019-11-04 16:21:56 +07:00
Jiang Jiang Jian
62a609190d
Merge branch 'feature/idf_tools_installer_v2.1_v4.0' into 'release/v4.0'
...
IDF tools installer: extra fixes, bump version to v2.1 (backport 4.0)
See merge request espressif/esp-idf!6401
2019-10-21 10:49:12 +08:00
Jiang Jiang Jian
9f1d992ef9
Merge branch 'bugfix/idf_py_fix_property_dict_v4.0' into 'release/v4.0'
...
idf.py: Fix PropertyDict implementation (v4.0)
See merge request espressif/esp-idf!6249
2019-10-21 10:37:31 +08:00