feat: unit-test with cmocka

- Test only 1 function which is in utils2.c
    - Because is not inlude nano sdk
- Move zemu's into functional folder
    - Change path of zemu's test in CI and Makefile
This commit is contained in:
Alexandre Paillier
2022-06-28 14:38:19 +02:00
committed by Coline
parent 4eb7109b86
commit ad8334e54c
356 changed files with 573 additions and 11 deletions

View File

@@ -114,13 +114,13 @@ jobs:
- uses: actions/checkout@v2
- name: Build testing binaries
run: cd tests && ./build_local_test_elfs.sh
run: cd tests/functional/ && ./build_local_test_elfs.sh
- name: Upload app binaries
uses: actions/upload-artifact@v2
with:
name: e2e_elfs
path: ./tests/elfs/
path: ./tests/functional/elfs/
jobs-e2e-tests:
name: E2E tests
@@ -146,10 +146,10 @@ jobs:
run: npm install -g yarn
- name: Build/Install build js deps
run: cd tests && yarn install
run: cd tests/functional/ && yarn install
- name: Create tmp folder for artifacts
run: mkdir tests/elfs
run: mkdir tests/functional/elfs
- name: Download app binaries
uses: actions/download-artifact@v2
@@ -157,7 +157,7 @@ jobs:
path: tmp/
- name: Gather elfs
run: cp `find tmp/e2e_elfs/ -name "*.elf"` tests/elfs/
run: cp `find tmp/e2e_elfs/ -name "*.elf"` tests/functional/elfs/
- name: Run zemu tests
run: cd tests && yarn test
run: cd tests/functional/ && yarn test