Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Daemon version #33

Merged
merged 22 commits into from
Mar 18, 2024
Merged

Daemon version #33

merged 22 commits into from
Mar 18, 2024

Conversation

bgn42
Copy link
Collaborator

@bgn42 bgn42 commented Mar 12, 2024

This version starts CubeMX and then itself as a daemon. Then it ends normally. The daemon then waits for changes in .mxproject and creates correspondig cgen and MX_Device.h. When CubeMX ends then the daemon also ends.

cmd/main.go Fixed Show fixed Hide fixed
Copy link

github-actions bot commented Mar 12, 2024

Test Results

  6 files  ±  0   54 suites  ±0   4s ⏱️ -1s
 96 tests + 25   96 ✅ + 25  0 💤 ±0  0 ❌ ±0 
576 runs  +150  576 ✅ +150  0 💤 ±0  0 ❌ ±0 

Results for commit 8210b16. ± Comparison against base commit e9f35b9.

This pull request removes 3 and adds 28 tests. Note that renamed tests count towards both.
github.com/open-cmsis-pack/generator-bridge/internal/common ‑ TestFoo
github.com/open-cmsis-pack/generator-bridge/internal/stm32CubeMX ‑ TestIniReader
github.com/open-cmsis-pack/generator-bridge/internal/utils ‑ TestAddLine
github.com/open-cmsis-pack/generator-bridge/cmd/commands ‑ Test_configureGlobalCmd
github.com/open-cmsis-pack/generator-bridge/cmd/commands ‑ Test_configureGlobalCmd/test
github.com/open-cmsis-pack/generator-bridge/cmd/commands ‑ Test_printVersionAndLicense
github.com/open-cmsis-pack/generator-bridge/cmd/commands ‑ Test_printVersionAndLicense/test
github.com/open-cmsis-pack/generator-bridge/internal/common ‑ TestReadYml
github.com/open-cmsis-pack/generator-bridge/internal/common ‑ TestReadYml/test
github.com/open-cmsis-pack/generator-bridge/internal/stm32CubeMX ‑ ExamplePrintKeyValInt
github.com/open-cmsis-pack/generator-bridge/internal/stm32CubeMX ‑ ExamplePrintKeyValStr
github.com/open-cmsis-pack/generator-bridge/internal/stm32CubeMX ‑ ExamplePrintKeyValStrs
github.com/open-cmsis-pack/generator-bridge/internal/utils ‑ TestAddQuotes/test
…

♻️ This comment has been updated with latest results.

added option -l for log file and corrected defer to ignore the return value of close
Copy link
Collaborator

@DavidLesnjak DavidLesnjak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested "deamon" functionality with csolution and uVision. It work as expected.

@jkrech
Copy link
Member

jkrech commented Mar 18, 2024

Accepting coverage being below 35%.
Accepting that lint check warning.

@jkrech jkrech merged commit 28196b8 into main Mar 18, 2024
20 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[cbridge] Return to caller on successful launch of generator and run as daemon until generator terminates
4 participants