]> Kevux Git Server - fll/commitdiff
Update: Test file.
authorKevin Day <thekevinday@gmail.com>
Thu, 23 Dec 2021 05:40:44 +0000 (23:40 -0600)
committerKevin Day <thekevinday@gmail.com>
Thu, 23 Dec 2021 05:41:04 +0000 (23:41 -0600)
Detect when neither shared nor static test files are generated and return an error.

level_0/f_memory/data/build/settings-tests
level_0/f_memory/data/build/testfile

index 1f098bedd588eed41efcaa7c5eeedb8e30bd4494..209f082793ff8cd0a2ec6755a7bac5749770dfa6 100644 (file)
@@ -6,7 +6,7 @@ version_major 0
 version_file major
 version_target major
 
-modes individual
+modes individual level monolithic
 modes_default individual
 
 build_compiler gcc
@@ -15,6 +15,8 @@ build_indexer_arguments rcs
 build_language c
 build_libraries -lc -lcmocka
 build_libraries-individual -lf_memory
+build_libraries-level -lfll_0
+build_libraries-monolithic -lfll
 build_sources_program test-memory-adjust.c test-memory-delete.c test-memory-destroy.c test-memory-new_aligned.c test-memory-new.c test-memory-resize.c test-memory.c
 build_script no
 build_shared yes
index daa93de95ccda1700d6b01b8870dc1b6a4600f42..d43f58f4e3bd6d2279a3f253cae1779694551b16 100644 (file)
@@ -8,13 +8,22 @@ settings:
 
 main:
   build settings
-
   build settings-tests
 
   define LD_LIBRARY_PATH build/libraries/shared
 
   if exists build/programs/shared/test-f_memory
-  run build/programs/shared/test-f_memory
+    shell build/programs/shared/test-f_memory
 
   if exists build/programs/static/test-f_memory
-  run build/programs/static/test-f_memory
+    shell build/programs/static/test-f_memory
+
+  if not exists build/programs/shared/test-f_memory
+  and not exists build/programs/static/test-f_memory
+    operate not_created
+
+not_created:
+  print
+  print Faled to test due to being unable to find either a shared or static test binary to perform tests.
+
+  exit failure