-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from niwciu/develop
Develop
- Loading branch information
Showing
5 changed files
with
111 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
pull_request: | ||
branches: [main, develop] | ||
jobs: | ||
template_test_running: | ||
LCD_HD44780_test_running_win: | ||
name: LCD HD44780 Test RUN | ||
runs-on: windows-latest | ||
# strategy: | ||
|
@@ -29,14 +29,71 @@ jobs: | |
cmake -Bout -GNinja | ||
cmake --build out | ||
- name: List files | ||
working-directory: test/lcd_hd44780/out | ||
run: dir | ||
# - name: List files | ||
# working-directory: test/lcd_hd44780/out | ||
# run: dir | ||
|
||
- name: Run LCD HD44780 tests | ||
working-directory: test/lcd_hd44780/out | ||
run: ./lcd_hd44780_test.exe -v | ||
|
||
LCD_HD44780_AVR_test_running_win: | ||
name: LCD HD44780 AVR Test RUN | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install Ninja | ||
uses: seanmiddleditch/gha-setup-ninja@v3 | ||
|
||
- name: Build binary | ||
working-directory: test/lcd_hd44780 | ||
run: | | ||
mkdir out_avr | ||
cmake -S ./avr_code_test -B out_avr -GNinja | ||
cmake --build out_avr | ||
# - name: List files | ||
# working-directory: test/lcd_hd44780/out | ||
# run: dir | ||
|
||
- name: Run LCD HD44780 tests | ||
working-directory: test/lcd_hd44780/out_avr | ||
run: ./lcd_hd44780_test.exe -v | ||
|
||
LCD_HD44780_test_running_ubuntu: | ||
name: LCD HD44780 Test RUN Ubuntu | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install Ninja | ||
uses: seanmiddleditch/gha-setup-ninja@v3 | ||
|
||
- name: Build binary | ||
working-directory: test/lcd_hd44780 | ||
run: | | ||
mkdir out | ||
cmake -Bout -GNinja | ||
cmake --build out | ||
# - name: List files | ||
# working-directory: test/lcd_hd44780/out | ||
# run: dir | ||
|
||
- name: Run LCD HD44780 tests | ||
working-directory: test/lcd_hd44780/out | ||
run: ./lcd_hd44780_test -v | ||
|
||
|
||
|
||
|
||
# template_2_test_running: | ||
# name: template_2 Test RUN | ||
# runs-on: windows-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
out/ | ||
out_avr/ | ||
Release/ | ||
Debug/ | ||
Build/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
|
||
project(lcd_hd44780_test C) | ||
|
||
add_subdirectory(../../unity unity) | ||
|
||
set(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra") | ||
|
||
set(INCLUDE_DIRS | ||
../../../src | ||
) | ||
|
||
set(TEST_INCLUDE_DIRS | ||
../.. | ||
../. | ||
) | ||
|
||
set(SRCS | ||
../../../src/lcd_hd44780.c | ||
) | ||
|
||
set(TEST_SRCS | ||
../lcd_hd44780_test_main.c | ||
../lcd_hd44780_test_runner.c | ||
../lcd_hd44780_test_init.c | ||
../mock_LCD_IO_driver.c | ||
../lcd_hd44780_test_basic_func.c | ||
../lcd_hd44780_test_common.c | ||
#mock_module.c | ||
) | ||
|
||
set(GLOBAL_DEFINES | ||
-DAVR | ||
) | ||
|
||
include_directories(${INCLUDE_DIRS} ${TEST_INCLUDE_DIRS}) | ||
add_definitions(${GLOBAL_DEFINES}) | ||
|
||
link_libraries(unity) | ||
add_executable(${PROJECT_NAME} ${SRCS} ${TEST_SRCS}) | ||
|
||
target_compile_options(${PROJECT_NAME} PRIVATE -fprofile-arcs -ftest-coverage) | ||
target_link_options(${PROJECT_NAME} PRIVATE -fprofile-arcs) |