From 6f9428774c7e4de169f0bcacd67d3e7f4d3693e5 Mon Sep 17 00:00:00 2001 From: fdlt3859 Date: Mon, 23 Jan 2023 11:36:30 +0100 Subject: [PATCH] First Commit --- .DS_Store | Bin 0 -> 6148 bytes src/.DS_Store | Bin 0 -> 6148 bytes src/.gitkeep | 0 src/.idea/.gitignore | 8 +++ src/.idea/modules.xml | 8 +++ src/.idea/src.iml | 2 + src/.idea/vcs.xml | 6 +++ src/main/.DS_Store | Bin 0 -> 6148 bytes src/main/build-project.sh | 7 +++ src/main/quizproject.c | 15 ++++++ src/main/quizproject.h | 6 +++ src/project.yml | 101 ++++++++++++++++++++++++++++++++++++ src/team.md | 2 + src/test/test_quizproject.c | 9 ++++ 14 files changed, 164 insertions(+) create mode 100644 .DS_Store create mode 100644 src/.DS_Store create mode 100644 src/.gitkeep create mode 100644 src/.idea/.gitignore create mode 100644 src/.idea/modules.xml create mode 100644 src/.idea/src.iml create mode 100644 src/.idea/vcs.xml create mode 100644 src/main/.DS_Store create mode 100644 src/main/build-project.sh create mode 100644 src/main/quizproject.c create mode 100644 src/main/quizproject.h create mode 100644 src/project.yml create mode 100644 src/team.md create mode 100644 src/test/test_quizproject.c diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..d7ecb11e7f4113a7cb9da1d37cd08b9438c1d5fc GIT binary patch literal 6148 zcmeHKPfNov6i>G4I)>1L!j1v21GhPZ;ic611+3^nWwz_kVr@p-*~1w0tY64a;^** zx$*sVz_r&|#!@y7im&UBqb%?BK6tI(*x7AbO{;C)d5^O2az9^WuAkoE=u*l!sB}NL zie|;c-anH`?nlWiRS8izgOJu!Qs*A#pEe|PUNemlLOmI_6%0=28!8Dm`&pVR)?X+^x~ySERzSYR1;K* zgv0iNSR`*oBF643-*oI^(AJ;O5I!@xs;DVSb^)8Fw^NPYe(P>kMG+ z3u5E_e-6LQ#v)&ZP)7_91OJr)-WYph7j|dv)^Gd7yH-HEhlYZ2B`P4GuRQ`_fagd@ eIkjJ)4snjbQX|fSc9jlD4*^98b;Q6gFz^Yv=T0C1 literal 0 HcmV?d00001 diff --git a/src/.DS_Store b/src/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..e9fdc358f43410d2c7ccc3700a38d46f9c8d0abe GIT binary patch literal 6148 zcmeH~!EO^V5QfL?LY-Ei96;*PqSr`GLjYbuA4aK;u>Wmkv~xHDj==v$fcCBj0|+63Y;pfa!!*f@X7iWW*z_Je+>%>z zN1g^3dJ+_2G0r>T=mYiMX`M#%b{L%`{YkI>)6 zO>STVvLl0`~MB@;XB^{%So>1 z2si@wih%ICLAQfT;=6Taadg)zET6ED(YVs8Nx_P*W7D9kco&N?j45iM`mCi@^q{#v N0tSPt9D#pI;5S_w#@_${ literal 0 HcmV?d00001 diff --git a/src/.gitkeep b/src/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/src/.idea/.gitignore b/src/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/src/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/src/.idea/modules.xml b/src/.idea/modules.xml new file mode 100644 index 0000000..f669a0e --- /dev/null +++ b/src/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/src/.idea/src.iml b/src/.idea/src.iml new file mode 100644 index 0000000..4c94235 --- /dev/null +++ b/src/.idea/src.iml @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/src/.idea/vcs.xml b/src/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/src/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/main/.DS_Store b/src/main/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 GIT binary patch literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0 +#include +#include +#include +#include +#include "quizproject.h" + +void startMessage(void){ + printf("Press Enter to Start the Game!\n"); +} + +int main(){ + startMessage(); + return 0; +} diff --git a/src/main/quizproject.h b/src/main/quizproject.h new file mode 100644 index 0000000..f7a8df7 --- /dev/null +++ b/src/main/quizproject.h @@ -0,0 +1,6 @@ +#ifndef QUIZPROJECT_H +#define QUIZPROJECT_H + +void startMessage(void); + +#endif diff --git a/src/project.yml b/src/project.yml new file mode 100644 index 0000000..e253248 --- /dev/null +++ b/src/project.yml @@ -0,0 +1,101 @@ +--- + +# Notes: +# Sample project C code is not presently written to produce a release artifact. +# As such, release build options are disabled. +# This sample, therefore, only demonstrates running a collection of unit tests. + +:project: + :use_exceptions: FALSE + :use_test_preprocessor: TRUE + :use_auxiliary_dependencies: TRUE + :build_root: build +# :release_build: TRUE + :test_file_prefix: test_ + :which_ceedling: gem + :ceedling_version: 0.31.1 + :default_tasks: + - test:all + +#:test_build: +# :use_assembly: TRUE + +#:release_build: +# :output: MyApp.out +# :use_assembly: FALSE + +:environment: + +:extension: + :executable: .out + +:paths: + :test: + - +:test/** + - -:test/support + :source: + - src/** + :support: + - test/support + :libraries: [] + +:defines: + # in order to add common defines: + # 1) remove the trailing [] from the :common: section + # 2) add entries to the :common: section (e.g. :test: has TEST defined) + :common: &common_defines [] + :test: + - *common_defines + - TEST + :test_preprocess: + - *common_defines + - TEST + +:cmock: + :mock_prefix: mock_ + :when_no_prototypes: :warn + :enforce_strict_ordering: TRUE + :plugins: + - :ignore + - :callback + :treat_as: + uint8: HEX8 + uint16: HEX16 + uint32: UINT32 + int8: INT8 + bool: UINT8 + +# Add -gcov to the plugins list to make sure of the gcov plugin +# You will need to have gcov and gcovr both installed to make it work. +# For more information on these options, see docs in plugins/gcov +:gcov: + :reports: + - HtmlDetailed + :gcovr: + :html_medium_threshold: 75 + :html_high_threshold: 90 + +#:tools: +# Ceedling defaults to using gcc for compiling, linking, etc. +# As [:tools] is blank, gcc will be used (so long as it's in your system path) +# See documentation to configure a given toolchain for use + +# LIBRARIES +# These libraries are automatically injected into the build process. Those specified as +# common will be used in all types of builds. Otherwise, libraries can be injected in just +# tests or releases. These options are MERGED with the options in supplemental yaml files. +:libraries: + :placement: :end + :flag: "-l${1}" + :path_flag: "-L ${1}" + :system: [] # for example, you might list 'm' to grab the math library + :test: [] + :release: [] + +:plugins: + :load_paths: + - "#{Ceedling.load_path}" + :enabled: + - stdout_pretty_tests_report + - module_generator +... diff --git a/src/team.md b/src/team.md new file mode 100644 index 0000000..fdd5630 --- /dev/null +++ b/src/team.md @@ -0,0 +1,2 @@ +# README for Quiz Project + diff --git a/src/test/test_quizproject.c b/src/test/test_quizproject.c new file mode 100644 index 0000000..bdd9e4d --- /dev/null +++ b/src/test/test_quizproject.c @@ -0,0 +1,9 @@ +#ifdef TEST + +#include "unity.h" + +#include "quizproject.h" + + + +#endif // TEST