From 93343c88d28bced92d39cc9ba449d26f37860a9f Mon Sep 17 00:00:00 2001 From: fdai7782 Date: Sun, 4 Feb 2024 18:58:39 +0000 Subject: [PATCH] Updated build script and Ceedling configuration in main 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: