Rename automatic tests to unit tests

Those tests were unit tests before, they've just been renamed due to a
deeper understanding of testing practices on the authors side.
This commit is contained in:
Eric-Paul Ickhorn 2024-09-21 20:56:23 +02:00
parent 86479af2fb
commit 1e2f0f164f
Signed by: epickh
GPG Key ID: 1358818BAA38B104
9 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ function list_modules() {
MODULES=$(ls $MODULE_FOLDER)
for MODULE in $MODULES
do
if [[ -d "$MODULE_FOLDER/$MODULE/auto-test" ]];
if [[ -d "$MODULE_FOLDER/$MODULE/tests/unit-tests" ]];
then
echo $MODULE
fi
@ -45,12 +45,12 @@ function make_include_statements() {
MODULES=$(list_modules "modules/")
for MODULE in $MODULES
do
SOURCES=$(list_sources "modules/$MODULE/auto-test/src-c")
SOURCES=$(list_sources "modules/$MODULE/tests/unit-tests/src-c")
INCLUDE_STATEMENTS=$(make_include_statements $MODULE)
gcc -o $PROJECT_PATH/.build/test-$MODULE.elf \
gcc -o $PROJECT_PATH/.build/test-$MODULE.elf \
$SOURCES \
.build/archives/*.a \
-I "modules/$MODULE/auto-test/inc-c" \
-I "modules/$MODULE/tests/unit-tests/inc-c" \
$INCLUDE_STATEMENTS
./.build/test-$MODULE.elf