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
Updated licensed cache
  • Loading branch information
cmaglie committed Aug 5, 2022
commit ca557acf1389968e30a6a30b4bd9345543a987c1
2 changes: 1 addition & 1 deletion .licenses/go/github.com/mattn/go-isatty.dep.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: github.com/mattn/go-isatty
version: v0.0.12
version: v0.0.14
type: go
summary: Package isatty implements interface to isatty
homepage: https://pkg.go.dev/github.com/mattn/go-isatty
Expand Down
2 changes: 1 addition & 1 deletion .licenses/go/github.com/mattn/go-runewidth.dep.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: github.com/mattn/go-runewidth
version: v0.0.9
version: v0.0.13
type: go
summary:
homepage: https://pkg.go.dev/github.com/mattn/go-runewidth
Expand Down
33 changes: 33 additions & 0 deletions .licenses/go/github.com/rivo/uniseg.dep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: github.com/rivo/uniseg
version: v0.2.0
type: go
summary: 'Package uniseg implements Unicode Text Segmentation according to Unicode
Standard Annex #29 (http://unicode.org/reports/tr29/).'
homepage: https://pkg.go.dev/github.com/rivo/uniseg
license: mit
licenses:
- sources: LICENSE.txt
text: |
MIT License

Copyright (c) 2019 Oliver Kuederle

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
notices: []
6 changes: 3 additions & 3 deletions .licenses/go/golang.org/x/sys/internal/unsafeheader.dep.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
name: golang.org/x/sys/internal/unsafeheader
version: v0.0.0-20210823070655-63515b42dcdf
version: v0.0.0-20220520151302-bc2c85ada10a
type: go
summary: Package unsafeheader contains header declarations for the Go runtime's slice
and string implementations.
homepage: https://pkg.go.dev/golang.org/x/sys/internal/unsafeheader
license: bsd-3-clause
licenses:
- sources: sys@v0.0.0-20210823070655-63515b42dcdf/LICENSE
- sources: sys@v0.0.0-20220520151302-bc2c85ada10a/LICENSE
text: |
Copyright (c) 2009 The Go Authors. All rights reserved.

Expand Down Expand Up @@ -36,7 +36,7 @@ licenses:
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- sources: sys@v0.0.0-20210823070655-63515b42dcdf/PATENTS
- sources: sys@v0.0.0-20220520151302-bc2c85ada10a/PATENTS
text: |
Additional IP Rights Grant (Patents)

Expand Down
6 changes: 3 additions & 3 deletions .licenses/go/golang.org/x/sys/unix.dep.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
name: golang.org/x/sys/unix
version: v0.0.0-20210823070655-63515b42dcdf
version: v0.0.0-20220520151302-bc2c85ada10a
type: go
summary: Package unix contains an interface to the low-level operating system primitives.
homepage: https://pkg.go.dev/golang.org/x/sys/unix
license: bsd-3-clause
licenses:
- sources: sys@v0.0.0-20210823070655-63515b42dcdf/LICENSE
- sources: sys@v0.0.0-20220520151302-bc2c85ada10a/LICENSE
text: |
Copyright (c) 2009 The Go Authors. All rights reserved.

Expand Down Expand Up @@ -35,7 +35,7 @@ licenses:
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- sources: sys@v0.0.0-20210823070655-63515b42dcdf/PATENTS
- sources: sys@v0.0.0-20220520151302-bc2c85ada10a/PATENTS
text: |
Additional IP Rights Grant (Patents)

Expand Down