Move tests to lib/ to avoid linter issues

This commit is contained in:
CinderSocket
2026-03-08 18:50:02 -07:00
parent 54c20878ec
commit 3a40690f07
13 changed files with 12 additions and 13 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ jobs:
- name: Run host tests
run: make test-host
- name: Lint sources
run: ufbt lint ARGS="!./tests/host/vendor/munit"
run: ufbt lint
- name: Build with ufbt
uses: flipperdevices/flipperzero-ufbt-action@v0.1.2
id: build-app
+2 -2
View File
@@ -1,6 +1,6 @@
[submodule "plugin"]
path = plugin
url = https://gitlab.com/bettse/flipper-wiegand-plugin.git
[submodule "tests/host/vendor/munit"]
path = tests/host/vendor/munit
[submodule "lib/host_tests/vendor/munit"]
path = lib/host_tests/vendor/munit
url = https://github.com/nemequ/munit.git
+8 -8
View File
@@ -11,13 +11,13 @@ build:
test-host:
mkdir -p build/host_tests
cc -std=c11 -Wall -Wextra -Werror -DSEADER_HOST_TEST -Itests/host/vendor/munit -Itests/host -I. \
tests/host/vendor/munit/munit.c \
tests/host/test_main.c \
tests/host/test_lrc.c \
tests/host/test_t1_existing.c \
tests/host/t1_test_stubs.c \
tests/host/bit_buffer_mock.c \
cc -std=c11 -Wall -Wextra -Werror -DSEADER_HOST_TEST -Ilib/host_tests/vendor/munit -Ilib/host_tests -I. \
lib/host_tests/vendor/munit/munit.c \
lib/host_tests/test_main.c \
lib/host_tests/test_lrc.c \
lib/host_tests/test_t1_existing.c \
lib/host_tests/t1_test_stubs.c \
lib/host_tests/bit_buffer_mock.c \
lrc.c \
t_1.c \
-o build/host_tests/seader_tests
@@ -27,7 +27,7 @@ launch:
ufbt launch
format:
ufbt format ARGS="!./tests/host/vendor/munit"
ufbt format
clean:
rm -rf dist
-1
View File
@@ -21,7 +21,6 @@ App(
"*.c",
"aeabi_uldivmod.sx",
"!plugin/*.c",
"!tests",
],
fap_icon="icons/logo.png",
fap_category="NFC",
+1 -1
View File
@@ -1,5 +1,5 @@
#ifdef SEADER_HOST_TEST
#include "tests/host/t_1_host_env.h"
#include "lib/host_tests/t_1_host_env.h"
#else
#include "t_1.h"
#endif