Go to file
Armando Montanez 7753c3edc5 stm32f429i-disc1: improve test runner integration
- Try to use pw_cli logger for test output format.
 - Log each line of captured subprocess output individually.
 - Minor tweaks to log statements.

Example:

...
20191202 14:38:19 OUT [26656] INF [       OK ] Format.ArgumentLargerThanBuffer_ReturnsResourceExhausted
20191202 14:38:19 OUT [26656] INF [ RUN      ] Format.CallFormatWithVaList_CallsCorrectFormatOverload
20191202 14:38:19 OUT [26656] INF [       OK ] Format.CallFormatWithVaList_CallsCorrectFormatOverload
20191202 14:38:19 OUT [26656] INF [==========] Done running all tests.
20191202 14:38:19 OUT [26656] INF [  PASSED  ] 6 test(s).
20191202 14:38:19 OUT [26656] INF [  FAILED  ] 1 test(s).
20191202 14:38:19 OUT [26656] ERR Test suite had one or more failures
20191202 14:38:19 ERR stm32f429i_disc1_unit_test_runner exited with status 1
20191202 14:38:19 INF Test  9/10: [FAIL] format_test
...

Change-Id: I99798f5c7d4770c4cf5def7ae621a374cad7f89b
2019-12-03 00:22:55 +00:00
docs Fix copyright notices 2019-11-27 22:34:02 +00:00
env_setup Add fix for broken Python on Homebrew. 2019-12-02 22:57:58 +00:00
pw_bloat Fix copyright notices 2019-11-27 22:34:02 +00:00
pw_build Fix bazel build. 2019-12-02 21:44:15 +00:00
pw_cli Add environment variable to pw_cli.process module 2019-12-02 21:48:12 +00:00
pw_docgen pw_docgen: Fix paths, multiple sources 2019-11-25 14:55:02 -08:00
pw_dumb_io Fix copyright notices 2019-11-27 22:34:02 +00:00
pw_dumb_io_baremetal_stm32f429 Fix copyright notices 2019-11-27 22:34:02 +00:00
pw_dumb_io_stdio Fix copyright notices 2019-11-27 22:34:02 +00:00
pw_module pw_module: Start the Pigweed meta-module 2019-11-27 21:33:13 +00:00
pw_preprocessor Fix copyright notices 2019-11-27 22:34:02 +00:00
pw_presubmit/py Script for installing a presubmit pre-push hook 2019-12-02 14:26:14 -08:00
pw_span Fix copyright notices 2019-11-27 22:34:02 +00:00
pw_status Fix copyright notices 2019-11-27 22:34:02 +00:00
pw_string Fix bazel build. 2019-12-02 21:44:15 +00:00
pw_toolchain Small Cortex-M4 toolchain tweaks 2019-11-18 21:14:52 +00:00
pw_unit_test pw_unit_test: Create test running groups 2019-12-02 16:03:32 -08:00
pw_varint Fix the copyright notice on a few files 2019-12-03 00:00:28 +00:00
targets stm32f429i-disc1: improve test runner integration 2019-12-03 00:22:55 +00:00
.clang-format Add preprocessor and unit_test modules 2019-11-04 16:07:34 -08:00
.gitignore Adding env_setup folder and initial setup script. 2019-11-22 23:33:36 +00:00
.gn Initial Pigweed modules 2019-10-31 17:43:53 -07:00
.pylintrc Add .pylintrc 2019-11-27 11:18:08 -08:00
AUTHORS Initial commit for Pigweed 2019-10-31 13:26:45 -07:00
BUILD Remove SUBDIRS from BUILD. (Apparently unused.) 2019-11-19 18:28:54 +00:00
BUILD.gn pw_unit_test: Create test running groups 2019-12-02 16:03:32 -08:00
BUILDCONFIG.gn Start build target config files 2019-11-14 00:34:25 +00:00
CONTRIBUTING.md Fix copyright notices 2019-11-27 22:34:02 +00:00
LICENSE Initial commit for Pigweed 2019-10-31 13:26:45 -07:00
modules.gni pw_varint: Add varint module 2019-12-02 18:39:29 +00:00
pw_vars_default.gni Update test runner to run tests from metadata 2019-11-22 17:58:51 +00:00
README.md Add fix for broken Python on Homebrew. 2019-12-02 22:57:58 +00:00
WORKSPACE Add bazel build system files. 2019-11-14 07:16:44 -08:00

Pigweed Embedded Oriented Software Libraries

Pigweed is a collection of embedded-focused libraries, which we call "modules". These modules are designed for small-footprint MMU-less microcontrollers like the ST Micro STM32L452 or the Nordic NRF82832. The modules are designed to facilitate easy integration into existing codebases.

Pigweed is in the early stages of development.

Getting Started

$ git clone sso://pigweed.googlesource.com/pigweed/pigweed ~/pigweed
$ cd ~/pigweed
$ env_setup/cipd/cipd.py auth-login  # Once per machine.
$ . env_setup/setup.sh

If you're using Homebrew and you get an error saying module 'http.client' has no attribute 'HTTPSConnection' then your Homebrew Python was not set up to support SSL. Ensure it's installed with brew install openssl and then run brew uninstall python && brew install python. After that things should work.

The environment setup script will pull down the versions of tools necessary to build Pigweed and add them to your environment. You can then build with either GN or Bazel. You can also confirm you're getting the right versions of tools—they should be installed under env_setup/.

$ which gn
~/pigweed/env_setup/cipd/tools/gn
$ gn gen out/host
$ ninja -C out/host
$ which bazel
~/pigweed/env_setup/cipd/tools/bazel
$ bazel test //...

And do the following to test on hardware. (The bazel build does not yet support building for hardware.)

$ gn gen --args='pw_target_config = "//targets/stm32f429i-disc1/target_config.gni"' out/disco
$ ninja -C out/disco

If any of this doesn't work please file a bug.