Adding unit test target
This commit is contained in:
parent
d4dfccdddd
commit
577d7382f4
@ -103,6 +103,26 @@ lib_deps =
|
||||
board = ${common_env_data.board}
|
||||
build_type = release
|
||||
board_build.filesystem = littlefs
|
||||
build_src_filter = +<*> -<tests.cpp>
|
||||
|
||||
[env:gravity-unit]
|
||||
upload_speed = ${common_env_data.upload_speed}
|
||||
monitor_speed = ${common_env_data.monitor_speed}
|
||||
framework = ${common_env_data.framework}
|
||||
platform = ${common_env_data.platform}
|
||||
extra_scripts = ${common_env_data.extra_scripts}
|
||||
build_unflags = ${common_env_data.build_unflags}
|
||||
build_flags =
|
||||
${common_env_data.build_flags}
|
||||
-D LOG_LEVEL=4
|
||||
lib_deps =
|
||||
https://github.com/mp-se/incbin # https://github.com/graphitemaster/incbin
|
||||
https://github.com/bxparks/AUnit#v1.6.1
|
||||
${common_env_data.lib_deps}
|
||||
board = ${common_env_data.board}
|
||||
build_type = release
|
||||
board_build.filesystem = littlefs
|
||||
build_src_filter = +<*> -<main.cpp>
|
||||
|
||||
[env:gravity32-release]
|
||||
framework = ${common_env_data.framework}
|
||||
@ -136,6 +156,7 @@ board_build.embed_txtfiles =
|
||||
html/about.min.htm
|
||||
html/index.min.htm
|
||||
html/test.min.htm
|
||||
build_src_filter = +<*> -<tests.cpp>
|
||||
|
||||
[env:gravity32c3-release]
|
||||
framework = ${common_env_data.framework}
|
||||
@ -169,6 +190,7 @@ board_build.embed_txtfiles =
|
||||
html/about.min.htm
|
||||
html/index.min.htm
|
||||
html/test.min.htm
|
||||
build_src_filter = +<*> -<tests.cpp>
|
||||
|
||||
[env:gravity32c3v1-release]
|
||||
framework = ${common_env_data.framework}
|
||||
@ -203,6 +225,7 @@ board_build.embed_txtfiles =
|
||||
html/about.min.htm
|
||||
html/index.min.htm
|
||||
html/test.min.htm
|
||||
build_src_filter = +<*> -<tests.cpp>
|
||||
|
||||
[env:gravity32s2-release]
|
||||
framework = ${common_env_data.framework}
|
||||
@ -235,6 +258,7 @@ board_build.embed_txtfiles =
|
||||
html/about.min.htm
|
||||
html/index.min.htm
|
||||
html/test.min.htm
|
||||
build_src_filter = +<*> -<tests.cpp>
|
||||
|
||||
[env:gravity32c3-debug]
|
||||
framework = ${common_env_data.framework}
|
||||
@ -283,6 +307,7 @@ board_build.embed_txtfiles =
|
||||
html/about.min.htm
|
||||
html/index.min.htm
|
||||
html/test.min.htm
|
||||
build_src_filter = +<*> -<tests.cpp>
|
||||
|
||||
# This is a version for the floaty hardware. No DSB18 sensor and no battery measurement.
|
||||
[env:gravity32lite-release]
|
||||
@ -317,3 +342,4 @@ board_build.embed_txtfiles =
|
||||
html/about.min.htm
|
||||
html/index.min.htm
|
||||
html/test.min.htm
|
||||
build_src_filter = +<*> -<tests.cpp>
|
||||
|
32
src/tests.cpp
Normal file
32
src/tests.cpp
Normal file
@ -0,0 +1,32 @@
|
||||
/*
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2022 Magnus
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
*/
|
||||
#include <main.hpp>
|
||||
|
||||
void setup() {
|
||||
}
|
||||
|
||||
void loop() {
|
||||
}
|
||||
|
||||
// EOF
|
Loading…
Reference in New Issue
Block a user