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

nanos-test-pack #22

Merged
merged 31 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
8d5f714
fix: first round code optimization
n4l5u0r Mar 1, 2024
d53a8ed
fix: added missing test
n4l5u0r Mar 1, 2024
38bef40
fix: removed globals_sha3
n4l5u0r Mar 1, 2024
d73c5f2
clean: logic_signTx
n4l5u0r Mar 1, 2024
e0b02c7
ci: optim
n4l5u0r Mar 1, 2024
5302426
fic: clean-up
n4l5u0r Mar 1, 2024
88beb3f
fix: clean code
n4l5u0r Mar 4, 2024
9007a48
fix: clean-up
n4l5u0r Mar 4, 2024
f8492e0
Remove unused files and update include paths
n4l5u0r Mar 4, 2024
1c6c46b
Update .gitignore to include ELF files in tests/elfs directory
n4l5u0r Mar 4, 2024
cf53ba0
Update .gitignore to include ELF files in tests/elfs directory
n4l5u0r Mar 4, 2024
7e27b9b
Merge branch 'fix/nanos-build-stack' of https://github.com/blooo-io/L…
n4l5u0r Mar 4, 2024
b3094db
Merge branch 'develop' into fix/nanos-build-stack
n4l5u0r Mar 4, 2024
f8ff9e3
Add HAVE_ECC flag and remove unused strings_t variable
n4l5u0r Mar 4, 2024
2539140
Fix variable declaration and remove commented code
n4l5u0r Mar 5, 2024
4e97eaa
Add chainID variable to txContext and update signLegacyTransaction.c
n4l5u0r Mar 5, 2024
695cb76
Fix bugs and update function signatures
n4l5u0r Mar 5, 2024
56ab6c6
Refactor main.c and signLegacyTransaction.c
n4l5u0r Mar 5, 2024
b933904
Fix code comments and remove unused variables
n4l5u0r Mar 5, 2024
2b510a4
Fix include path and enable compilerPath in c_cpp_properties.json
n4l5u0r Mar 5, 2024
6219feb
Update .clang-format, .gitignore, ledger_app.toml, main.c, and shared…
n4l5u0r Mar 5, 2024
4675a66
lint code
n4l5u0r Mar 5, 2024
94b6113
lint lib
n4l5u0r Mar 5, 2024
608a639
Nanos Build OK : Fix logic_signTx.c and handleApdu function
n4l5u0r Mar 5, 2024
5a098c4
Update Makefile and main.c, remove unused code in signLegacyTransaction
n4l5u0r Mar 6, 2024
c6018f6
Update .gitignore and modify code files
n4l5u0r Mar 6, 2024
d6723a8
Update dependencies and configurations
n4l5u0r Mar 6, 2024
55a114f
Update Travis CI configuration and Docker image tag
n4l5u0r Mar 6, 2024
184adf7
lint fix
n4l5u0r Mar 6, 2024
220582a
rebased snapshots including logo
n4l5u0r Mar 6, 2024
adfffe7
Update .gitignore to fix test path
n4l5u0r Mar 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ SortIncludes: false
SpaceAfterCStyleCast: true
AllowShortCaseLabelsOnASingleLine: false
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: Never
AllowShortFunctionsOnASingleLine: None
BinPackArguments: false
Expand Down
8 changes: 8 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Checklist
<!-- Put an `x` in each box when you have completed the items. -->
- [ ] App update process has been followed <!-- See comment below -->
- [ ] Target branch is `develop` <!-- unless you have a very good reason -->
- [ ] Application version has been bumped <!-- required if your changes are to be deployed -->

<!-- Make sure you followed the process described in https://developers.ledger.com/docs/device-app/deliver/maintenance before opening your Pull Request.
Don't hesitate to contact us directly on Discord if you have any questions ! https://developers.ledger.com/discord -->
32 changes: 32 additions & 0 deletions .github/workflows/build_and_functional_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build and run functional tests using ragger through reusable workflow

# This workflow will build the app and then run functional tests using the Ragger framework upon Speculos emulation.
# It calls a reusable workflow developed by Ledger's internal developer team to build the application and upload the
# resulting binaries.
# It then calls another reusable workflow to run the Ragger tests on the compiled application binary.
#
# While this workflow is optional, having functional testing on your application is mandatory and this workflow and
# tooling environment is meant to be easy to use and adapt after forking your application

on:
workflow_dispatch:
push:
branches:
- master
- main
- develop
pull_request:

jobs:
build_application:
name: Build application using the reusable workflow
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_build.yml@v1
with:
upload_app_binaries_artifact: "compiled_app_binaries"

ragger_tests:
name: Run ragger tests using the reusable workflow
needs: build_application
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_ragger_tests.yml@v1
with:
download_app_binaries_artifact: "compiled_app_binaries"
106 changes: 0 additions & 106 deletions .github/workflows/ci-workflow.yml

This file was deleted.

8 changes: 5 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ __pycache__
.egg
.pyc
*~

tests/elfs/*
tests/python/snapshots-tmp/
opt
tests/elfs
tests/snapshots-tmp/
.DS_Store
*.log
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

104 changes: 57 additions & 47 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -1,49 +1,59 @@
{
"env": {
"BOLOS_SDK": "/opt/nanosp-secure-sdk",
"BOLOS_ENV": "/opt/bolos-devenv"
},
"configurations": [
{
"name": "Nano S Plus",
"includePath": [
"/usr/include",
"${workspaceFolder}/src",
"${env:BOLOS_SDK}/include/*",
"${env:BOLOS_SDK}/lib_ux/include/*"
],
"defines": [
"TARGET_NANOSP",
"OS_IO_SEPROXYHAL",
"HAVE_BAGL",
"HAVE_SPRINTF",
"HAVE_IO_USB",
"HAVE_L4_USBLIB",
"IO_USB_MAX_ENDPOINTS=6",
"IO_HID_EP_LENGTH=64",
"HAVE_USB_APDU",
"USB_SEGMENT_SIZE=64",
"UNUSED(x)=(void)x",
"APPVERSION=\"1.0.0\"",
"APPNAME=\"Boilerplate\"",
"MAJOR_VERSION=1",
"MINOR_VERSION=0",
"PATCH_VERSION=0",
"IO_SEPROXYHAL_BUFFER_SIZE_B=300",
"HAVE_UX_FLOW",
"DEBUG=1",
"HAVE_PRINTF",
"PRINTF=screen_printf"
],
"compilerPath": "${env:BOLOS_ENV}/gcc-arm-none-eabi-5_3-2016q1/bin/arm-none-eabi-gcc",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "gcc-arm",
"browse": {
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
}
],
"version": 4
"env": {
"BOLOS_SDK": "/opt/nanosp-secure-sdk",
"BOLOS_ENV": "/opt/bolos-devenv"
},
"configurations": [
{
"name": "Nano S Plus",
"includePath": [
"/usr/include",
"${workspaceFolder}/src",
"${env:BOLOS_SDK}/include/*",
"${env:BOLOS_SDK}/lib_ux/include/*",
"${workspaceFolder}/opt/ledger-secure-sdk/include",
"${workspaceFolder}/opt/ledger-secure-sdk/target/nanos2/include",
"${workspaceFolder}/opt/ledger-secure-sdk/lib_cxng/include",
"${workspaceFolder}/opt/ledger-secure-sdk/lib_ux/include",
"${workspaceFolder}/opt/ledger-secure-sdk/lib_bagl/include",
"${workspaceFolder}/opt/ledger-secure-sdk/unit-tests/lib_nbgl",
"${workspaceFolder}/lib/include"
],
"defines": [
"TARGET_NANOSP",
"OS_IO_SEPROXYHAL",
"HAVE_BAGL",
"HAVE_SPRINTF",
"HAVE_IO_USB",
"HAVE_L4_USBLIB",
"IO_USB_MAX_ENDPOINTS=6",
"IO_HID_EP_LENGTH=64",
"HAVE_USB_APDU",
"USB_SEGMENT_SIZE=64",
"UNUSED(x)=(void)x",
"APPVERSION=\"1.0.0\"",
"APPNAME=\"Boilerplate\"",
"MAJOR_VERSION=1",
"MINOR_VERSION=0",
"PATCH_VERSION=0",
"IO_SEPROXYHAL_BUFFER_SIZE_B=300",
"HAVE_UX_FLOW",
"DEBUG=1",
"HAVE_PRINTF",
"PRINTF=screen_printf",
"HAVE_SHA3=1",
"HAVE_HASH=1",
"HAVE_ECC=1"
],
"compilerPath": "${env:BOLOS_ENV}/gcc-arm-none-eabi-5_3-2016q1/bin/arm-none-eabi-gcc",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "gcc-arm",
"browse": {
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
}
],
"version": 4
}
Loading
Loading