Skip to content

Commit

Permalink
Rename unit tests on development hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
oyama committed Jun 17, 2024
1 parent ce43502 commit cc725a5
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run semihosting unittests
name: Run unittests
on: [push]
env:
BUILD_TYPE: Debug
Expand Down Expand Up @@ -51,9 +51,9 @@ jobs:
- name: Build
working-directory: ${{github.workspace}}/pico-vfs/build
shell: bash
run: cmake --build . --target semihosting --config $BUILD_TYPE
run: cmake --build . --target host --config $BUILD_TYPE

- name: Test
working-directory: ${{github.workspace}}/pico-vfs/build
shell: bash
run: ./tests/semihosting/semihosting
run: ./tests/host/host
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pico_enable_stdio_usb(unittests 1)
add_subdirectory(integration)
add_subdirectory(multicore)
add_subdirectory(large_file)
add_subdirectory(semihosting)
add_subdirectory(host)

find_program(OPENOCD openocd)
if(OPENOCD)
Expand Down
8 changes: 4 additions & 4 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The project has four tests:
1. unit tests `unittests` using heap memory
2. integration tests `integrate` using Raspberry Pi Pico hardware
3. multi-core tests `multicore`
4. unit tests `semihosting` on the host
4. unit tests `host` on the host

```bash
cd build
Expand All @@ -17,7 +17,7 @@ make run_multicore

```bash
cd build
cmake -DPICO_TARGET=host
make semihosting
./tests/semihosting/semihosting
cmake -DPICO_PLATFORM=host
make host
./tests/host/host
```
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
set(CMAKE_BUILD_TYPE Debug)

add_executable(semihosting
add_executable(host
main.c
test_blockdevice.c
test_filesystem.c
test_benchmark.c
)
target_compile_options(pico_stdio INTERFACE -Wno-error=unused-parameter -Wno-error=sign-compare)
target_compile_options(semihosting PRIVATE
target_compile_options(host PRIVATE
-Wno-incompatible-function-pointer-types
-Wno-incompatible-pointer-types
)
target_link_libraries(semihosting PRIVATE
target_link_libraries(host PRIVATE
pico_stdlib
blockdevice_heap
filesystem_fat
filesystem_littlefs
)
pico_enable_stdio_semihosting(semihosting 1)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit cc725a5

Please sign in to comment.