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)
|
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
|
Loading…
Reference in New Issue