From dff8cc5f434509a8ff4ca0af4fec33de8e725510 Mon Sep 17 00:00:00 2001 From: fdai7782 Date: Sun, 4 Feb 2024 18:57:32 +0000 Subject: [PATCH] Updated build script and Ceedling configuration in develop branch --- create_folders.sh | 13 +++++++++++-- project.yml | 15 ++++++++++++--- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/create_folders.sh b/create_folders.sh index 3d96d3e..5d73167 100644 --- a/create_folders.sh +++ b/create_folders.sh @@ -1,2 +1,11 @@ -mkdir -p src/main/c -mkdir -p src/test/c/support +#!/bin/bash + +# Check if a Ceedling project exists +if [ -f "project.yml" ]; then + echo "Building and testing C project with Ceedling..." + ceedling test:all + exit $? +else + echo "No Ceedling project found in the current directory." + exit 1 +fi diff --git a/project.yml b/project.yml index a360bc3..4801bd7 100644 --- a/project.yml +++ b/project.yml @@ -88,9 +88,18 @@ :placement: :end :flag: "-l${1}" :path_flag: "-L ${1}" - :system: [] # for example, you might list 'm' to grab the math library - :test: [] - :release: [] + :system: + - m # Example: add 'm' to use the math library + :test: + - stdio + - string + - stdlib + - m # Example: add 'm' to use the math library in tests + :release: + - stdio + - string + - stdlib + - m # Example: add 'm' to use the math library in release builds :plugins: :load_paths: