commit 6f9428774c7e4de169f0bcacd67d3e7f4d3693e5 Author: fdlt3859 Date: Mon Jan 23 11:36:30 2023 +0100 First Commit diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..d7ecb11 Binary files /dev/null and b/.DS_Store differ diff --git a/src/.DS_Store b/src/.DS_Store new file mode 100644 index 0000000..e9fdc35 Binary files /dev/null and b/src/.DS_Store differ 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 0000000..5008ddf Binary files /dev/null and b/src/main/.DS_Store differ diff --git a/src/main/build-project.sh b/src/main/build-project.sh new file mode 100644 index 0000000..c268b50 --- /dev/null +++ b/src/main/build-project.sh @@ -0,0 +1,7 @@ +#!/bin/bash + + +gcc -lm quizproject.c -o quizproject + +./quizproject + diff --git a/src/main/quizproject.c b/src/main/quizproject.c new file mode 100644 index 0000000..b2401d9 --- /dev/null +++ b/src/main/quizproject.c @@ -0,0 +1,15 @@ +#include +#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