Unverified Commit b6cc517d authored by MatteoPologruto's avatar MatteoPologruto Committed by GitHub

[skip-changelog] Remove python testsuite and the related workflow (#2011)

* Remove python testsuite and the related workflows

* Update documentation according to the removal of the python testsuite

* Remove `check-python-task` and the related unused dependencies
parent f850706b
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-python/.flake8
# See: https://flake8.pycqa.org/en/latest/user/configuration.html
# The code style defined in this file is the official standardized style to be used in all Arduino tooling projects and
# should not be modified.
[flake8]
doctests = True
per-file-ignores =
test/test_upload_mock.py:E501
ignore =
E741,
# W503 and W504 are mutually exclusive. PEP 8 recommends line break before.
W503
max-complexity = 10
max-line-length = 120
select = E,W,F,C,N
from pathlib import Path
import json
if __name__ == "__main__":
import sys
tests_path = sys.argv[1]
test_files = [str(f) for f in Path(tests_path).glob("test_*.py")]
print(json.dumps(test_files))
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-python-task.md
name: Check Python
env:
# See: https://github.com/actions/setup-python/tree/main#available-versions-of-python
PYTHON_VERSION: "3.9"
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
on:
push:
paths:
- ".github/workflows/check-python-task.ya?ml"
- "**/.flake8"
- "**/poetry.lock"
- "**/pyproject.toml"
- "**/setup.cfg"
- "Taskfile.ya?ml"
- "**/tox.ini"
- "**.py"
pull_request:
paths:
- ".github/workflows/check-python-task.ya?ml"
- "**/.flake8"
- "**/poetry.lock"
- "**/pyproject.toml"
- "**/setup.cfg"
- "Taskfile.ya?ml"
- "**/tox.ini"
- "**.py"
workflow_dispatch:
repository_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install Poetry
run: pip install poetry
- name: Install Task
uses: arduino/setup-task@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
version: 3.x
- name: Run flake8
uses: liskin/gh-problem-matcher-wrap@v2
with:
linters: flake8
run: task python:lint
formatting:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install Poetry
run: pip install poetry
- name: Install Task
uses: arduino/setup-task@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
version: 3.x
- name: Format Python code
run: task python:format
- name: Check formatting
run: git diff --color --exit-code
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/test-go-integration-task.md
name: Test Integration
env:
# See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
GO_VERSION: "1.17"
# See: https://github.com/actions/setup-python/tree/main#available-versions-of-python
PYTHON_VERSION: "3.9"
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
on:
create:
push:
paths:
- ".github/workflows/test-go-integration-task.ya?ml"
- "Taskfile.ya?ml"
- "**.go"
- "go.mod"
- "go.sum"
- "poetry.lock"
- "pyproject.toml"
- "test/**"
pull_request:
paths:
- ".github/workflows/test-go-integration-task.ya?ml"
- "Taskfile.ya?ml"
- "**.go"
- "go.mod"
- "go.sum"
- "poetry.lock"
- "pyproject.toml"
- "test/**"
workflow_dispatch:
repository_dispatch:
jobs:
run-determination:
runs-on: ubuntu-latest
outputs:
result: ${{ steps.determination.outputs.result }}
steps:
- name: Determine if the rest of the workflow should run
id: determination
run: |
RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x"
# The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead.
if [[ \
"${{ github.event_name }}" != "create" || \
"${{ github.ref }}" =~ $RELEASE_BRANCH_REGEX \
]]; then
# Run the other jobs.
RESULT="true"
else
# There is no need to run the other jobs.
RESULT="false"
fi
echo "result=$RESULT" >> $GITHUB_OUTPUT
tests-collector:
runs-on: ubuntu-latest
needs: run-determination
if: needs.run-determination.outputs.result == 'true'
outputs:
tests-data: ${{ steps.collection.outputs.tests-data }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Collect tests
id: collection
run: |
echo "tests-data=$(python .github/tools/get_integration_tests.py ./test/)" >> $GITHUB_OUTPUT
test:
needs: tests-collector
strategy:
matrix:
operating-system:
- ubuntu-latest
- windows-latest
- macos-latest
tests: ${{ fromJSON(needs.tests-collector.outputs.tests-data) }}
runs-on: ${{ matrix.operating-system }}
env:
ARDUINO_CLI_USER_AGENT_EXTENSION: ${{ secrets.CLOUDFLARE_SPAMCHECK_BYPASS_TOKEN }}
steps:
# By default, actions/checkout converts the repo's LF line endings to CRLF on the Windows runner.
- name: Disable EOL conversions
run: git config --global core.autocrlf false
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install Poetry
run: pip install poetry
- name: Install Task
uses: arduino/setup-task@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
version: 3.x
- name: Build Arduino CLI
run: task go:build
- name: Install poetry deps
run: task poetry:install-deps
- name: Run integration tests
run: poetry run pytest ${{ matrix.tests }}
...@@ -6,7 +6,6 @@ Arduino CLI is an all-in-one solution that provides Boards/Library Managers, ske ...@@ -6,7 +6,6 @@ Arduino CLI is an all-in-one solution that provides Boards/Library Managers, ske
and many other tools needed to use any Arduino compatible board and platform from command line or machine interfaces. and many other tools needed to use any Arduino compatible board and platform from command line or machine interfaces.
[![Test Go status](https://github.com/arduino/arduino-cli/actions/workflows/test-go-task.yml/badge.svg)](https://github.com/arduino/arduino-cli/actions/workflows/test-go-task.yml) [![Test Go status](https://github.com/arduino/arduino-cli/actions/workflows/test-go-task.yml/badge.svg)](https://github.com/arduino/arduino-cli/actions/workflows/test-go-task.yml)
[![Test Integration status](https://github.com/arduino/arduino-cli/actions/workflows/test-go-integration-task.yml/badge.svg)](https://github.com/arduino/arduino-cli/actions/workflows/test-go-integration-task.yml)
[![Publish Nightly Build status](https://github.com/arduino/arduino-cli/actions/workflows/publish-go-nightly-task.yml/badge.svg)](https://github.com/arduino/arduino-cli/actions/workflows/publish-go-nightly-task.yml) [![Publish Nightly Build status](https://github.com/arduino/arduino-cli/actions/workflows/publish-go-nightly-task.yml/badge.svg)](https://github.com/arduino/arduino-cli/actions/workflows/publish-go-nightly-task.yml)
[![Deploy Website status](https://github.com/arduino/arduino-cli/actions/workflows/deploy-cobra-mkdocs-versioned-poetry.yml/badge.svg)](https://github.com/arduino/arduino-cli/actions/workflows/deploy-cobra-mkdocs-versioned-poetry.yml) [![Deploy Website status](https://github.com/arduino/arduino-cli/actions/workflows/deploy-cobra-mkdocs-versioned-poetry.yml/badge.svg)](https://github.com/arduino/arduino-cli/actions/workflows/deploy-cobra-mkdocs-versioned-poetry.yml)
[![Codecov](https://codecov.io/gh/arduino/arduino-cli/branch/main/graph/badge.svg)](https://codecov.io/gh/arduino/arduino-cli) [![Codecov](https://codecov.io/gh/arduino/arduino-cli/branch/main/graph/badge.svg)](https://codecov.io/gh/arduino/arduino-cli)
......
...@@ -122,15 +122,6 @@ tasks: ...@@ -122,15 +122,6 @@ tasks:
{{default .DEFAULT_INTEGRATIONTEST_GO_PACKAGES .GO_PACKAGES}} \ {{default .DEFAULT_INTEGRATIONTEST_GO_PACKAGES .GO_PACKAGES}} \
{{.TEST_LDFLAGS}} {{.TEST_LDFLAGS}}
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/test-go-integration-task/Taskfile.yml
go:test-integration:
desc: Run integration tests
deps:
- task: go:build
- task: poetry:install-deps
cmds:
- poetry run pytest test
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-go-task/Taskfile.yml # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-go-task/Taskfile.yml
go:vet: go:vet:
desc: Check for errors in Go code desc: Check for errors in Go code
...@@ -244,22 +235,6 @@ tasks: ...@@ -244,22 +235,6 @@ tasks:
cmds: cmds:
- clang-format -i rpc/cc/arduino/cli/*/*/*.proto - clang-format -i rpc/cc/arduino/cli/*/*/*.proto
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-python-task/Taskfile.yml
python:format:
desc: Format Python files
deps:
- task: poetry:install-deps
cmds:
- poetry run black .
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-python-task/Taskfile.yml
python:lint:
desc: Lint Python code
deps:
- task: poetry:install-deps
cmds:
- poetry run flake8 --show-source
build: build:
desc: Build the project desc: Build the project
deps: deps:
...@@ -269,7 +244,7 @@ tasks: ...@@ -269,7 +244,7 @@ tasks:
desc: Run the full testsuite, `legacy` will be skipped desc: Run the full testsuite, `legacy` will be skipped
cmds: cmds:
- task: go:test - task: go:test
- task: go:test-integration - task: go:integration-test
test-legacy: test-legacy:
desc: Run tests for the `legacy` package desc: Run tests for the `legacy` package
...@@ -297,7 +272,6 @@ tasks: ...@@ -297,7 +272,6 @@ tasks:
cmds: cmds:
- task: go:vet - task: go:vet
- task: go:lint - task: go:lint
- task: python:lint
- task: protoc:check - task: protoc:check
check-legacy: check-legacy:
......
...@@ -76,7 +76,6 @@ To build the Arduino CLI from sources you need the following tools to be availab ...@@ -76,7 +76,6 @@ To build the Arduino CLI from sources you need the following tools to be availab
If you want to run integration tests you will also need: If you want to run integration tests you will also need:
- A serial port with an Arduino board attached - A serial port with an Arduino board attached
- A working [Python][3] environment, version 3.8 or later
If you're working on the gRPC interface you will also have to: If you're working on the gRPC interface you will also have to:
...@@ -115,7 +114,7 @@ task go:test ...@@ -115,7 +114,7 @@ task go:test
To run integration tests (these will take some time and require special setup, see following paragraph): To run integration tests (these will take some time and require special setup, see following paragraph):
```shell ```shell
task go:test-integration task go:integration-test
``` ```
#### Running only some tests #### Running only some tests
...@@ -163,65 +162,29 @@ the above requirements. ...@@ -163,65 +162,29 @@ the above requirements.
##### Software requirements for running integration tests: ##### Software requirements for running integration tests:
A working Python environment. Chances are that you already have Python installed in your system, if this is not the case A working Go environment. Chances are that you already have Go installed in your system, if this is not the case you can
you can [download][3] the official distribution or use the package manager provided by your Operating System. [download][1] the official distribution or use the package manager provided by your Operating System.
Some dependencies need to be installed before running the tests and to avoid polluting your global Python environment
with dependencies that might be only used by the Arduino CLI, to do so we use [Poetry][poetry-website]. First you need
to install it (you might need to `sudo` the following command):
```shell
pip3 install --user poetry
```
For more installation options read the [official documentation][poetry-docs].
#### Running tests #### Running tests
After the software requirements have been installed you should be able to run the tests with: After the software requirements have been installed you should be able to run the tests with:
```shell ```shell
task go:test-integration task go:integration-test
``` ```
This will automatically install the necessary dependencies, if not already installed, and run the integration tests This will run the integration tests automatically.
automatically.
To run specific modules you must run `pytest` from the virtual environment created by Poetry. To run specific packages you must run `go test`.
```shell ```shell
poetry run pytest test/test_lib.py go test -v github.com/arduino/arduino-cli/internal/integrationtest/lib
``` ```
To run very specific test functions: To run very specific test functions:
```shell ```shell
poetry run pytest test/test_lib.py::test_list go test -v github.com/arduino/arduino-cli/internal/integrationtest/lib -run TestLibUpgradeCommand
```
You can avoid writing the `poetry run` prefix each time by creating a new shell inside the virtual environment:
```shell
poetry shell
pytest test_lib.py
pytest test_lib.py::test_list
```
#### Linting and formatting
When editing any Python file in the project remember to run linting checks with:
```shell
task python:lint
```
This will run `flake8` automatically and return any error in the code formatting, if not already installed it will also
install integration tests dependencies.
In case of linting errors you should be able to solve most of them by automatically formatting with:
```shell
task python:format
``` ```
### Dependency license metadata ### Dependency license metadata
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
"help": { "help": {
"online": "https://github.com/Arduino/arduino-cli" "online": "https://github.com/Arduino/arduino-cli"
}, },
"url": "https://raw.githubusercontent.com/arduino/arduino-cli/master/test/testdata/core.zip", "url": "https://raw.githubusercontent.com/arduino/arduino-cli/master/internal/integrationtest/testdata/core.zip",
"checksum": "SHA-256:6a338cf4d6d501176a2d352c87a8d72ac7488b8c5b82cdf2a4e2cef630391092", "checksum": "SHA-256:6a338cf4d6d501176a2d352c87a8d72ac7488b8c5b82cdf2a4e2cef630391092",
"name": "test_core", "name": "test_core",
"version": "1.0.0", "version": "1.0.0",
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
"help": { "help": {
"online": "https://github.com/Arduino/arduino-cli" "online": "https://github.com/Arduino/arduino-cli"
}, },
"url": "https://raw.githubusercontent.com/arduino/arduino-cli/master/test/testdata/core.zip", "url": "https://raw.githubusercontent.com/arduino/arduino-cli/master/internal/integrationtest/testdata/core.zip",
"checksum": "SHA-256:6a338cf4d6d501176a2d352c87a8d72ac7488b8c5b82cdf2a4e2cef630391092", "checksum": "SHA-256:6a338cf4d6d501176a2d352c87a8d72ac7488b8c5b82cdf2a4e2cef630391092",
"name": "test_core", "name": "test_core",
"version": "2.0.0", "version": "2.0.0",
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
"help": { "help": {
"online": "https://github.com/Arduino/arduino-cli" "online": "https://github.com/Arduino/arduino-cli"
}, },
"url": "https://raw.githubusercontent.com/arduino/arduino-cli/master/test/testdata/evil.zip", "url": "https://raw.githubusercontent.com/arduino/arduino-cli/master/internal/integrationtest/testdata/evil.zip",
"checksum": "SHA-256:9b85dfe23f13318efc0e541327f584a0f3674a773d46a7eb8b25f0f408d07f96", "checksum": "SHA-256:9b85dfe23f13318efc0e541327f584a0f3674a773d46a7eb8b25f0f408d07f96",
"name": "zipslip", "name": "zipslip",
"version": "1.0.0", "version": "1.0.0",
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
"help": { "help": {
"online": "https://github.com/Arduino/arduino-cli" "online": "https://github.com/Arduino/arduino-cli"
}, },
"url": "https://raw.githubusercontent.com/arduino/arduino-cli/master/test/testdata/core.zip", "url": "https://raw.githubusercontent.com/arduino/arduino-cli/master/internal/integrationtest/testdata/core.zip",
"checksum": "SHA-256:1a338cf4d6d501176a2d352c87a8d72ac7488b8c5b82cdf2a4e2cef630391092", "checksum": "SHA-256:1a338cf4d6d501176a2d352c87a8d72ac7488b8c5b82cdf2a4e2cef630391092",
"name": "zipslip", "name": "zipslip",
"version": "1.0.0", "version": "1.0.0",
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
"help": { "help": {
"online": "https://github.com/Arduino/arduino-cli" "online": "https://github.com/Arduino/arduino-cli"
}, },
"url": "https://raw.githubusercontent.com/arduino/arduino-cli/master/test/testdata/core.zip", "url": "https://raw.githubusercontent.com/arduino/arduino-cli/master/internal/integrationtest/testdata/core.zip",
"checksum": "SHA-256:6a338cf4d6d501176a2d352c87a8d72ac7488b8c5b82cdf2a4e2cef630391092", "checksum": "SHA-256:6a338cf4d6d501176a2d352c87a8d72ac7488b8c5b82cdf2a4e2cef630391092",
"name": "Platform", "name": "Platform",
"version": "1.2.3", "version": "1.2.3",
......
This diff is collapsed.
...@@ -6,18 +6,6 @@ authors = [] ...@@ -6,18 +6,6 @@ authors = []
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = ">=3.8, !=3.9.7, <4" python = ">=3.8, !=3.9.7, <4"
pytest = "6.0.2"
simplejson = "3.17.0"
semver = "2.13.0"
pyserial = "3.4"
pyyaml = "5.4"
requests = "^2.22.0"
pytest-timeout = "1.3.4"
invoke = "1.4.1"
filelock = "^3.0.12"
pytest-xdist = "^2.1.0"
pytest_httpserver = "^0.3.5"
GitPython = "^3.1.12"
[tool.poetry.dev-dependencies] [tool.poetry.dev-dependencies]
mkdocs = "^1.2.1" mkdocs = "^1.2.1"
...@@ -25,10 +13,3 @@ mkdocs-material = "^7.1.8" ...@@ -25,10 +13,3 @@ mkdocs-material = "^7.1.8"
mdx-truly-sane-lists = "^1.2" mdx-truly-sane-lists = "^1.2"
GitPython = "^3.1.20" GitPython = "^3.1.20"
mike = "^1.0.1" mike = "^1.0.1"
black = "^22.3"
flake8 = "^3.9.2"
pep8-naming = "^0.12.1"
[tool.black]
line-length = 120
target-version = ["py38"]
# Integration tests
This dir contains integration tests, aimed to test the Command Line Interface and its output from a pure user point of
view.
For instructions, see the [contributing guide](../docs/CONTRIBUTING.md#integration-tests).
# This file is part of arduino-cli.
#
# Copyright 2020 ARDUINO SA (http://www.arduino.cc/)
#
# This software is released under the GNU General Public License version 3,
# which covers the main part of arduino-cli.
# The terms of this license can be found at:
# https://www.gnu.org/licenses/gpl-3.0.en.html
#
# You can be released from the requirements of the above licenses by purchasing
# a commercial license. Buying such a license is mandatory if you want to modify or
# otherwise use the software for commercial activities involving the Arduino
# software without disclosing the source code of your own applications. To purchase
# a commercial license, send an email to license@arduino.cc.
# This file is part of arduino-cli.
#
# Copyright 2020 ARDUINO SA (http://www.arduino.cc/)
#
# This software is released under the GNU General Public License version 3,
# which covers the main part of arduino-cli.
# The terms of this license can be found at:
# https://www.gnu.org/licenses/gpl-3.0.en.html
#
# You can be released from the requirements of the above licenses by purchasing
# a commercial license. Buying such a license is mandatory if you want to modify or
# otherwise use the software for commercial activities involving the Arduino
# software without disclosing the source code of your own applications. To purchase
# a commercial license, send an email to license@arduino.cc.
import os
import collections
import json
Board = collections.namedtuple("Board", "address fqbn package architecture id core")
def running_on_ci():
"""
Returns whether the program is running on a CI environment
"""
val = os.getenv("APPVEYOR") or os.getenv("DRONE") or os.getenv("GITHUB_WORKFLOW")
return val is not None
def parse_json_traces(log_json_lines):
trace_entries = []
for entry in log_json_lines:
entry = json.loads(entry)
if entry.get("level") == "trace":
trace_entries.append(entry.get("msg"))
return trace_entries
This diff is collapsed.
[pytest]
filterwarnings =
error
ignore::DeprecationWarning
ignore::ResourceWarning
markers =
slow: marks tests as slow (deselect with '-m "not slow"')
# -x to exit at first failure
# -s to disable per-test capture
# --verbose is what is says it is
# --tb=long sets the length of the traceback in case of failures
# See https://pypi.org/project/pytest-xdist/#parallelization for more info on parallelization
addopts = -x -s --verbose --tb=long
nessuno.name=Arduino Nessuno
nessuno.vid.0=0x2341
nessuno.pid.0=0x0043
nessuno.vid.1=0x2341
nessuno.pid.1=0x0001
nessuno.vid.2=0x2A03
nessuno.pid.2=0x0043
nessuno.vid.3=0x2341
nessuno.pid.3=0x0243
nessuno.upload.tool=avrdude
nessuno.upload.protocol=arduino
nessuno.upload.maximum_size=32256
nessuno.upload.maximum_data_size=2048
nessuno.upload.speed=115200
nessuno.bootloader.tool=avrdude
nessuno.bootloader.low_fuses=0xFF
nessuno.bootloader.high_fuses=0xDE
nessuno.bootloader.extended_fuses=0xFD
nessuno.bootloader.unlock_bits=0x3F
nessuno.bootloader.lock_bits=0x0F
nessuno.bootloader.file=optiboot/optiboot_atmega328.hex
nessuno.build.mcu=atmega328p
nessuno.build.f_cpu=16000000L
nessuno.build.board=AVR_NESSUNO
nessuno.build.core=arduino
nessuno.build.variant=standard
\ No newline at end of file
menu.security=Security setting
uno.menu.security.none=None
uno.menu.security.sien=Signature + Encryption
uno.menu.security.sien.build.postbuild.cmd="{tools.imgtool.cmd}" {tools.imgtool.flags}
uno.menu.security.none.build.postbuild.cmd="{tools.imgtool.cmd}" exit
uno.menu.security.sien.build.keys.keychain={runtime.hardware.path}/Default_Keys
uno.menu.security.sien.build.keys.sign_key=default-signing-key.pem
uno.menu.security.sien.build.keys.encrypt_key=default-encrypt-key.pem
## Create output secure image (bin file)
recipe.hooks.objcopy.postobjcopy.1.pattern={build.postbuild.cmd}
#
# IMGTOOL
#
tools.imgtool.cmd=echo
tools.imgtool.flags=sign --key "{build.keys.keychain}/{build.keys.sign_key}" --encrypt "{build.keys.keychain}/{build.keys.encrypt_key}" "{build.path}/{build.project_name}.bin" "{build.path}/{build.project_name}.bin" --align {build.alignment} --max-align {build.alignment} --version {build.version} --header-size {build.header_size} --pad-header --slot-size {build.slot_size}
\ No newline at end of file
:100000000C9434000C9446000C9446000C9446006A
:100010000C9446000C9446000C9446000C94460048
:100020000C9446000C9446000C9446000C94460038
:100030000C9446000C9446000C9446000C94460028
:100040000C9448000C9446000C9446000C94460016
:100050000C9446000C9446000C9446000C94460008
:100060000C9446000C94460011241FBECFEFD8E03C
:10007000DEBFCDBF21E0A0E0B1E001C01D92A930FC
:10008000B207E1F70E9492000C94DC000C9400008F
:100090001F920F920FB60F9211242F933F938F93BD
:1000A0009F93AF93BF938091050190910601A0911A
:1000B0000701B09108013091040123E0230F2D378F
:1000C00058F50196A11DB11D2093040180930501EF
:1000D00090930601A0930701B0930801809100015D
:1000E00090910101A0910201B09103010196A11D1F
:1000F000B11D8093000190930101A0930201B09380
:100100000301BF91AF919F918F913F912F910F90DC
:100110000FBE0F901F90189526E8230F0296A11D81
:10012000B11DD2CF789484B5826084BD84B58160DE
:1001300084BD85B5826085BD85B5816085BD8091B2
:100140006E00816080936E0010928100809181002A
:100150008260809381008091810081608093810022
:10016000809180008160809380008091B1008460E4
:100170008093B1008091B00081608093B000809145
:100180007A00846080937A0080917A008260809304
:100190007A0080917A00816080937A0080917A0061
:1001A000806880937A001092C100C0E0D0E0209770
:0C01B000F1F30E940000FBCFF894FFCF99
:00000001FF
:020000040000FA
:100000000C9434000C9446000C9446000C9446006A
:100010000C9446000C9446000C9446000C94460048
:100020000C9446000C9446000C9446000C94460038
:100030000C9446000C9446000C9446000C94460028
:100040000C9448000C9446000C9446000C94460016
:100050000C9446000C9446000C9446000C94460008
:100060000C9446000C94460011241FBECFEFD8E03C
:10007000DEBFCDBF21E0A0E0B1E001C01D92A930FC
:10008000B207E1F70E9492000C94DC000C9400008F
:100090001F920F920FB60F9211242F933F938F93BD
:1000A0009F93AF93BF938091050190910601A0911A
:1000B0000701B09108013091040123E0230F2D378F
:1000C00058F50196A11DB11D2093040180930501EF
:1000D00090930601A0930701B0930801809100015D
:1000E00090910101A0910201B09103010196A11D1F
:1000F000B11D8093000190930101A0930201B09380
:100100000301BF91AF919F918F913F912F910F90DC
:100110000FBE0F901F90189526E8230F0296A11D81
:10012000B11DD2CF789484B5826084BD84B58160DE
:1001300084BD85B5826085BD85B5816085BD8091B2
:100140006E00816080936E0010928100809181002A
:100150008260809381008091810081608093810022
:10016000809180008160809380008091B1008460E4
:100170008093B1008091B00081608093B000809145
:100180007A00846080937A0080917A008260809304
:100190007A0080917A00816080937A0080917A0061
:1001A000806880937A001092C100C0E0D0E0209770
:0C01B000F1F30E940000FBCFF894FFCF99
:107E0000112484B714BE81FFF0D085E080938100F7
:107E100082E08093C00088E18093C10086E0809377
:107E2000C20080E18093C4008EE0C9D0259A86E02C
:107E300020E33CEF91E0309385002093840096BBD3
:107E4000B09BFECF1D9AA8958150A9F7CC24DD24C4
:107E500088248394B5E0AB2EA1E19A2EF3E0BF2EE7
:107E6000A2D0813461F49FD0082FAFD0023811F036
:107E7000013811F484E001C083E08DD089C08234E0
:107E800011F484E103C0853419F485E0A6D080C0E4
:107E9000853579F488D0E82EFF2485D0082F10E0AE
:107EA000102F00270E291F29000F111F8ED06801E7
:107EB0006FC0863521F484E090D080E0DECF843638
:107EC00009F040C070D06FD0082F6DD080E0C81688
:107ED00080E7D80618F4F601B7BEE895C0E0D1E017
:107EE00062D089930C17E1F7F0E0CF16F0E7DF06D8
:107EF00018F0F601B7BEE89568D007B600FCFDCFD4
:107F0000A601A0E0B1E02C9130E011968C91119780
:107F100090E0982F8827822B932B1296FA010C0160
:107F200087BEE89511244E5F5F4FF1E0A038BF0790
:107F300051F7F601A7BEE89507B600FCFDCF97BE46
:107F4000E89526C08437B1F42ED02DD0F82E2BD052
:107F50003CD0F601EF2C8F010F5F1F4F84911BD097
:107F6000EA94F801C1F70894C11CD11CFA94CF0C13
:107F7000D11C0EC0853739F428D08EE10CD085E9AC
:107F80000AD08FE07ACF813511F488E018D01DD067
:107F900080E101D065CF982F8091C00085FFFCCF94
:107FA0009093C60008958091C00087FFFCCF809118
:107FB000C00084FD01C0A8958091C6000895E0E648
:107FC000F0E098E1908380830895EDDF803219F02E
:107FD00088E0F5DFFFCF84E1DECF1F93182FE3DFCA
:107FE0001150E9F7F2DF1F91089580E0E8DFEE27F6
:047FF000FF270994CA
:027FFE00040479
:00000001FF
#define TRUE FALSE
\ No newline at end of file
#include <Arduino.h>
#line 1 {{QuoteCppString .sketch.MainFile.Name}}
void setup() {
}
void loop() {
}
#line 1 {{QuoteCppString (index .sketch.OtherSketchFiles 0).Name}}
#line 1 {{QuoteCppString (index .sketch.OtherSketchFiles 1).Name}}
String hello() {
return "world";
}
String hello() {
return "world";
}
\ No newline at end of file
void setup() {
}
void loop() {
}
\ No newline at end of file
{
"packages": [
{
"maintainer": "Arduino",
"help": {
"online": "https://github.com/Arduino/arduino-cli"
},
"websiteURL": "https://github.com/Arduino/arduino-cli",
"platforms": [
{
"category": "Test Category",
"help": {
"online": "https://github.com/Arduino/arduino-cli"
},
"url": "https://raw.githubusercontent.com/arduino/arduino-cli/master/test/testdata/core.zip",
"checksum": "SHA-256:6a338cf4d6d501176a2d352c87a8d72ac7488b8c5b82cdf2a4e2cef630391092",
"name": "test_core",
"version": "1.0.0",
"architecture": "x86",
"archiveFileName": "core.zip",
"size": "486",
"toolsDependencies": [],
"boards": [
{
"name": "Test Board"
}
]
},
{
"category": "Test Category",
"help": {
"online": "https://github.com/Arduino/arduino-cli"
},
"url": "https://raw.githubusercontent.com/arduino/arduino-cli/master/test/testdata/core.zip",
"checksum": "SHA-256:6a338cf4d6d501176a2d352c87a8d72ac7488b8c5b82cdf2a4e2cef630391092",
"name": "test_core",
"version": "2.0.0",
"architecture": "x86",
"archiveFileName": "core.zip",
"size": "486",
"toolsDependencies": [],
"boards": [
{
"name": "Test Board"
}
]
}
],
"tools": [],
"email": "test@example.com",
"name": "test"
},
{
"name": "zipslip",
"tools": [],
"email": "test@example.com",
"maintainer": "Arduino",
"help": {
"online": "https://github.com/Arduino/arduino-cli"
},
"websiteURL": "https://github.com/Arduino/arduino-cli",
"platforms": [
{
"category": "Zipslip Test",
"help": {
"online": "https://github.com/Arduino/arduino-cli"
},
"url": "https://raw.githubusercontent.com/arduino/arduino-cli/master/test/testdata/evil.zip",
"checksum": "SHA-256:9b85dfe23f13318efc0e541327f584a0f3674a773d46a7eb8b25f0f408d07f96",
"name": "zipslip",
"version": "1.0.0",
"architecture": "x86",
"archiveFileName": "evil.zip",
"size": "2184",
"toolsDependencies": [],
"boards": [
{
"name": "Test Board"
}
]
}
]
},
{
"name": "brokenchecksum",
"tools": [],
"email": "test@example.com",
"maintainer": "Arduino",
"help": {
"online": "https://github.com/Arduino/arduino-cli"
},
"websiteURL": "https://github.com/Arduino/arduino-cli",
"platforms": [
{
"category": "BrokenChecksum Test",
"help": {
"online": "https://github.com/Arduino/arduino-cli"
},
"url": "https://raw.githubusercontent.com/arduino/arduino-cli/master/test/testdata/core.zip",
"checksum": "SHA-256:1a338cf4d6d501176a2d352c87a8d72ac7488b8c5b82cdf2a4e2cef630391092",
"name": "zipslip",
"version": "1.0.0",
"architecture": "x86",
"archiveFileName": "core.zip",
"size": "486",
"toolsDependencies": [],
"boards": [
{
"name": "Test Board"
}
]
}
]
},
{
"name": "Retrokits-RK002",
"maintainer": "Retrokits (www.retrokits.com)",
"websiteURL": "https://www.retrokits.com",
"email": "info@retrokits.com",
"help": { "online": "https://www.retrokits.com/rk002/arduino" },
"platforms": [
{
"name": "RK002",
"architecture": "arm",
"version": "1.0.5",
"category": "Contributed",
"help": {
"online": "https://www.retrokits.com/rk002/arduino"
},
"url": "https://www.retrokits.com/rk002/arduino/retrokits-rk002-1.0.5.tar.bz2",
"archiveFileName": "retrokits-rk002-1.0.5.tar.bz2",
"checksum": "SHA-256:9a012867baf4bb26f656f84502e0acce6a653c3452cca4505ebac77256802fb6",
"size": "290784",
"boards": [{ "name": "RK002" }],
"toolsDependencies": [
{
"packager": "arduino",
"version": "4.8.3-2014q1",
"name": "arm-none-eabi-gcc"
}
]
}
],
"tools": []
},
{
"name": "Retrokits-RK002",
"maintainer": "Retrokits (www.retrokits.com)",
"websiteURL": "https://www.retrokits.com",
"email": "info@retrokits.com",
"help": { "online": "https://www.retrokits.com/rk002/arduino" },
"platforms": [
{
"name": "RK002",
"architecture": "arm",
"version": "1.0.6",
"category": "Contributed",
"help": {
"online": "https://www.retrokits.com/rk002/arduino"
},
"url": "https://www.retrokits.com/rk002/arduino/retrokits-rk002-1.0.6.tar.bz2",
"archiveFileName": "retrokits-rk002-1.0.6.tar.bz2",
"checksum": "SHA-256:8a3b63efcf4dfaed047a37844861387e542d8519485b5305d5979630cb3feb20",
"size": "291631",
"boards": [{ "name": "RK002" }],
"toolsDependencies": [
{
"packager": "arduino",
"version": "4.8.3-2014q1",
"name": "arm-none-eabi-gcc"
}
]
}
],
"tools": []
},
{
"name": "Package",
"tools": [],
"email": "test@example.com",
"maintainer": "Arduino",
"help": {
"online": "https://github.com/Arduino/arduino-cli"
},
"websiteURL": "https://github.com/Arduino/arduino-cli",
"platforms": [
{
"category": "Test",
"help": {
"online": "https://github.com/Arduino/arduino-cli"
},
"url": "https://raw.githubusercontent.com/arduino/arduino-cli/master/test/testdata/core.zip",
"checksum": "SHA-256:6a338cf4d6d501176a2d352c87a8d72ac7488b8c5b82cdf2a4e2cef630391092",
"name": "Platform",
"version": "1.2.3",
"deprecated": true,
"architecture": "x86",
"archiveFileName": "core.zip",
"size": "486",
"toolsDependencies": [],
"boards": [
{
"name": "MyBoard"
}
]
}
]
}
]
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment