Skip to content

Commit

Permalink
use new Ragger and workflows compatible with plugin testing
Browse files Browse the repository at this point in the history
  • Loading branch information
fbeutin-ledger committed Oct 25, 2023
1 parent fb6d5f4 commit 31d5c3a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 29 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/build_and_functional_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,28 @@ on:
jobs:
build_plugin:
name: Build plugin using the reusable workflow
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_build.yml@v1
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_build.yml@fbe/add_support_for_plugin_testing
with:
app_repository: LedgerHQ/app-plugin-boilerplate
upload_app_binaries_artifact: plugin_binaries
flags: "DEBUG=1"
upload_app_binaries_artifact: libraries_binaries
upload_as_lib_artifact: PluginBoilerplate

build_ethereum_app:
build_develop_ethereum_app:
name: Build Ethereum app using the reusable workflow
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_build.yml@v1
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_build.yml@fbe/add_support_for_plugin_testing
with:
app_repository: LedgerHQ/app-ethereum
app_branch_name: develop
flags: "DEBUG=1 BYPASS_SIGNATURES=1"
upload_app_binaries_artifact: ethereum_binaries
upload_app_binaries_artifact: ethereum_build_develop

ragger_tests:
ragger_tests_with_ethereum_develop:
name: Run ragger tests using the reusable workflow
needs:
- build_plugin
- build_ethereum_app
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_ragger_tests.yml@v1
- build_develop_ethereum_app
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_ragger_tests.yml@fbe/add_support_for_plugin_testing
with:
download_app_binaries_artifact: ethereum_binaries
lib_binaries_artifact: libraries_binaries
download_app_binaries_artifact: plugin_binaries
additional_app_binaries_artifact: ethereum_build_develop
additional_app_binaries_artifact_dir: ./tests/ethereum_build/build
test_dir: tests
16 changes: 6 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
# Compilation of Ledger's app
src/glyphs.c
src/glyphs.h
bin/
debug/
dep/
obj/
build/
# Application compilation output and artifacts
/bin/
/debug/
/build/


# Editors
Expand All @@ -26,5 +22,5 @@ ledger/
# Temporary directory with snapshots taken during test runs
tests/snapshots-tmp/

# Temporary directory with all the plugin binairies (for each device)
tests/lib_binaries
# Directory storing the ethereum build output for tests run
tests/ethereum_build/build/
10 changes: 3 additions & 7 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,13 @@
# You can configure optional parameters by overriding the value of ragger.configuration.OPTIONAL_CONFIGURATION
# Please refer to ragger/conftest/configuration.py for their descriptions and accepted values

# configuration.OPTIONAL.APP_NAME = "Ethereum"
# configuration.OPTIONAL.APP_DIR="tests/bin/"
configuration.OPTIONAL.APP_DIR = "tests/ethereum_build/"

configuration.OPTIONAL.SIDELOADED_APPS = {
"PluginBoilerplate": "PluginBoilerplate",
}

configuration.OPTIONAL.SIDELOADED_APPS_DIR = "tests/lib_binaries"
configuration.OPTIONAL.LOAD_MAIN_APP_AS_LIBRARY = True

configuration.OPTIONAL.BACKEND_SCOPE = "class"


#########################
### CONFIGURATION END ###
#########################
Expand Down
Empty file.

0 comments on commit 31d5c3a

Please sign in to comment.