Skip to content

Add gRPC testsuite #1806

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

Merged
merged 33 commits into from
Aug 9, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
874d2e2
testsuite: Added helper functions to handle test envs
cmaglie Jul 12, 2022
dae3242
testsuite: Added helper functions to run arduino-cli
cmaglie Jul 12, 2022
9679f1c
testsuite: Added colored output to arduino-cli Run helper
cmaglie Jul 12, 2022
46c381e
testsuite: Pass cli config through env variables
cmaglie Jul 12, 2022
9ae6760
testsuite: added env commands to download and extract files
cmaglie Jul 13, 2022
1465a20
testsuite: added commands to start cli daemon and run some gRPC calls
cmaglie Jul 13, 2022
f53c673
testsuite: moved test harness inside 'internal' package
cmaglie Jul 13, 2022
82e98ee
testsuite: added first daemon test for gRPC board watch
cmaglie Jul 13, 2022
b453bca
testsuite: added http server helper
cmaglie Jul 28, 2022
db39fb0
testsuite: added JSON helpers
cmaglie Jul 29, 2022
f2c886e
testsuite: Added possibility to use shared download staging folder
cmaglie Jul 29, 2022
1ab2ef4
testsuite: Converted a core_test.py test (WIP)
cmaglie Jul 29, 2022
eac1356
REMOVEME: Deactivate daemon integration test for now
cmaglie Jul 29, 2022
2631e96
testsuite: force colored output
cmaglie Jul 29, 2022
330b51d
testsuite: moved all generic subroutines into their own library
cmaglie Aug 1, 2022
b886381
testsuite: moved daemon test in his own dir
cmaglie Aug 1, 2022
a9d73c2
fixed typo
cmaglie Aug 1, 2022
f3c1463
testsuite: added some helpers to improve daemon testing
cmaglie Aug 1, 2022
94ba9ac
testsuite: added test for #1614
cmaglie Aug 1, 2022
688f7af
Removed converted test
cmaglie Aug 2, 2022
9fea578
testsuite: perform build before test
cmaglie Aug 2, 2022
0c282cd
Added missing comment
cmaglie Aug 2, 2022
55833f8
Renamed test file
cmaglie Aug 2, 2022
eea3ec9
Skip failing tests
cmaglie Aug 2, 2022
ca557ac
Updated licensed cache
cmaglie Aug 2, 2022
a929ff7
re-enable test for fixed bug
cmaglie Aug 2, 2022
1953902
testsuite: disable postinstall
cmaglie Aug 3, 2022
0896f4c
Removed useless startDaemon
cmaglie Aug 5, 2022
f21e86c
Renamed inst -> grpcInst
cmaglie Aug 5, 2022
d977ffe
Close daemon gRPC connection on test cleanup
cmaglie Aug 5, 2022
82e47d3
Added comment
cmaglie Aug 5, 2022
87561fe
Apply suggestions from code review
cmaglie Aug 8, 2022
757fa06
Update internal/integrationtest/arduino-cli.go
cmaglie Aug 9, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Skip failing tests
  • Loading branch information
cmaglie committed Aug 5, 2022
commit eea3ec91fe245c7aa21e5da34d9032ec7859d0bd
5 changes: 3 additions & 2 deletions internal/integrationtest/daemon/daemon_board_watch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ import (
)

func TestArduinoCliDaemon(t *testing.T) {
t.Skip("Deactivated for now")
t.SkipNow()
// See: https://github.com/arduino/arduino-cli/pull/1804

t.SkipNow() // TO BE Removed once the bug is fixed

env, cli := createEnvForDaemon(t)
defer env.CleanUp()
Expand Down
5 changes: 5 additions & 0 deletions internal/integrationtest/daemon/daemon_compile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ import (
)

func TestDaemonCompileOptions(t *testing.T) {
// See: https://github.com/arduino/arduino-cli/issues/1614
// See: https://github.com/arduino/arduino-cli/pull/1820

t.SkipNow() // TO BE Removed once the bug is fixed

env, cli := createEnvForDaemon(t)
defer env.CleanUp()

Expand Down