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