From 8f1cb4474e74031b85cc6b7ae9abf3df81714851 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Wed, 22 Dec 2021 23:40:44 -0600 Subject: [PATCH] Update: Test file. Detect when neither shared nor static test files are generated and return an error. --- level_0/f_memory/data/build/settings-tests | 4 +++- level_0/f_memory/data/build/testfile | 15 ++++++++++++--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/level_0/f_memory/data/build/settings-tests b/level_0/f_memory/data/build/settings-tests index 1f098be..209f082 100644 --- a/level_0/f_memory/data/build/settings-tests +++ b/level_0/f_memory/data/build/settings-tests @@ -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 diff --git a/level_0/f_memory/data/build/testfile b/level_0/f_memory/data/build/testfile index daa93de..d43f58f 100644 --- a/level_0/f_memory/data/build/testfile +++ b/level_0/f_memory/data/build/testfile @@ -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 -- 1.8.3.1