Add zemu test to Makefile

This commit is contained in:
pscott
2021-06-18 11:23:37 +02:00
parent d09dd32e55
commit 7e666de9ae
2 changed files with 42 additions and 0 deletions

34
.github/workflows/e2e-tests.yml vendored Normal file
View File

@@ -0,0 +1,34 @@
name: End-to-end tests
on: [push, pull_request]
test_zemu:
runs-on: ubuntu-latest
steps:
- name: Test
run: |
id
echo $HOME
echo $DISPLAY
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- run: sudo apt-get update -y && sudo apt-get install -y libusb-1.0.0 libudev-dev
- name: Install node
uses: actions/setup-node@v2
with:
node-version: '14.4.0'
- name: Install yarn
run: |
npm install -g yarn
- name: Build Ledger app
run: |
make DEBUG=1 ALLOW_DATA=1
- name: Build/Install build js deps
run: |
make zemu_install
- name: Run zemu tests
run: |
export PATH=~/.cargo/bin:$PATH
make zemu_test

View File

@@ -351,6 +351,14 @@ load: all
delete:
python3 -m ledgerblue.deleteApp $(COMMON_DELETE_PARAMS)
install_tests:
cd tests && (yarn install || sudo yarn install)
run_tests:
cd tests && (yarn test || sudo yarn test)
test: install_tests run_tests
# import generic rules from the sdk
include $(BOLOS_SDK)/Makefile.rules