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:
parent
86479af2fb
commit
1e2f0f164f
|
@ -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 \
|
||||
$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
|
Loading…
Reference in New Issue