From 4291731cea8f0199ee8e84e76f4522126a9380e6 Mon Sep 17 00:00:00 2001 From: J Date: Mon, 29 Jan 2024 19:31:09 +0100 Subject: [PATCH] Initial commit - Calculator programm --- .DS_Store | Bin 0 -> 6148 bytes README.md | 1 + create_folders.sh | 2 + project.yml | 101 +++++++++++++++++++++++++++++++ src/.DS_Store | Bin 0 -> 6148 bytes src/main/.DS_Store | Bin 0 -> 6148 bytes src/main/c/.DS_Store | Bin 0 -> 6148 bytes src/main/c/main_taschenrechner.c | 12 ++++ src/main/c/taschenrechner.h | 6 ++ src/test/.DS_Store | Bin 0 -> 6148 bytes src/test/c/.DS_Store | Bin 0 -> 6148 bytes src/test/c/test_taschenrechner.c | 27 +++++++++ 12 files changed, 149 insertions(+) create mode 100644 .DS_Store create mode 100644 README.md create mode 100644 create_folders.sh create mode 100644 project.yml create mode 100644 src/.DS_Store create mode 100644 src/main/.DS_Store create mode 100644 src/main/c/.DS_Store create mode 100644 src/main/c/main_taschenrechner.c create mode 100644 src/main/c/taschenrechner.h create mode 100644 src/test/.DS_Store create mode 100644 src/test/c/.DS_Store create mode 100644 src/test/c/test_taschenrechner.c diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..e2439694bdd372eace2d75cb9b92457b40684d64 GIT binary patch literal 6148 zcmeHK&1%~~5Z<+&M8*_+Xd%aiTn)9I#-;S4xb7*ps5FNrIFe;-QCVv&xq=#l&h6v$ z(iiBxr#w$*c1Nj$lO7urW?=W*ouB>rwCrkx5VF4vJ3=&t5DpZ?N*$_u1npS1q(Yi~ zK#60d^B~p%^nM2OEpJxrA_MsCsv;E&F$(g{?-xgD)^6X(O0~APf8ZQA4d=?6>fFox zY?=1`#V722&^ivvwjX?q#`&=M{GCoRKT5_66A*=CaJjsQl2GS;y-dQ?#Cq1?)SddU zdAM42d#_un+dEme)ap&Q-BPcPd+T-Gd2#ge?fLL?JWKR9OQD3*X5<-R3E!bXyNM?q zZ=`2*4!^3umYE(5=$yi_F3u)Dew}Vw!+%)k)6G$TLs&WA7jKcoI+=i`Tpe0jm;q*h z8Q4Vz=$>*KySO-B6EnaJJSqctKPV`OE@5HOTpduE6acUWY9r9bTmoYhp-Wg;1Ph3? zp@242Qi>sMIOrAmxrBv98!jXzAChL4l%Ys7JB+W4yO6F$u9*R5;4TAI+il|e|Ni0p z|85ZXm;q+sNiiU618>lWEz#S$wK;ri6_jfzDCk#MybXbdd5XaopW;I(MnJEy0q7DI S7C{5TKLUmZu9$)U%D^9iYGOwK literal 0 HcmV?d00001 diff --git a/README.md b/README.md new file mode 100644 index 0000000..c893835 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# Projekt Taschenrechner diff --git a/create_folders.sh b/create_folders.sh new file mode 100644 index 0000000..3d96d3e --- /dev/null +++ b/create_folders.sh @@ -0,0 +1,2 @@ +mkdir -p src/main/c +mkdir -p src/test/c/support diff --git a/project.yml b/project.yml new file mode 100644 index 0000000..dac0d93 --- /dev/null +++ b/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: target +# :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: + - +:src/test/c/** + - -:src/test/c/support + :source: + - src/main/c/** + :support: + - src/test/c/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/.DS_Store b/src/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..645429d0fb99900a963a659055ec409caba0fc5f GIT binary patch literal 6148 zcmeHK!EVz)5S?ueaaw_Lpi(bLmbgYG2@r(1xFH-WE~u{B1EAEdqtwFoMzPZzqDVfM zkKw?DAK(}IJ7s2fn#M_s#08;tN7{Y6J2RWi8||(K07PdTHUVk?U}Gb+Hn6)vNKb7= z)_CPHqM$wYVtEq8GQc@)Xv8pJ82G;#ptEa10zO2LE}h?9)a_gybN(|J z#!;3x8W&=1-Fon_Vpr@<`-^ufCtmL7syLP%9gki@HR1yBsTBg4=^1zlfK)Zz97# z>W8O`dmp3gweOiXN@JN0aE<<_1v&H~gM29u-%(f21KZu1Ja9baJT#v!a#GGi@nN0^ z_ATdORbS4-N8I|F@1;DD?mh^g4SVxG1Z!e63>XIfiUGPG9BhOxW1&%99oVT70MWu_ zB{)`}{)i4OAi9i&MqEJ=+7(f|3NA4OR}MnEquyovLZfyEp?(?n;a?V9p$INKgrm$s zxEf7w7%&W!8CciT8omGT@eJQm|CgQ2%rIaWxKj)WtLt?;7!tp&E5XrQ>tH*^MnZOl mM&*JXKgVjI>SRW#}W#Bj1tIu}; literal 0 HcmV?d00001 diff --git a/src/main/.DS_Store b/src/main/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..b00d49e559631409db02fdc63fb065aa614f6ea8 GIT binary patch literal 6148 zcmeHK%}yIJ5Vk`gjv}NSK+4e)*QiYb1R*#qX?oz=MYIS|$Y!IkVzZ9&Lk>}-J(tJn zrBctlLSLqbcE%nmBH#)Unvurecs%1>e_q);LI~NIgjFGmLI?$ln8`!)jNmxx6UmS# z2Pkn46M%(N9nlEGvNPcJu5%olP7p8b--o|e>;k0d1k=%gB7O#gI2w&BmESV6l3iWP zshldPOaIzT{c(Fd88zC&bL^cM69*4=J2;KH(^hfglS#(yDCrJuLKJo( zlO!D3T;C0-yvnzVrP-`j-z)1{eRp2gv;A77tarBS^LbuvZhbuX(z=QJiTUoxmhdfF zStopeJ1}4+aj)ukOn>0qr9aNwH_axkPyIUkcG&xIk6$sw_f7c1$l&_%Odd`M@wfgk ziA~b8J@m0K1Iz$3uxt#_IjIWE_G0`#%m6d+<_zHZpg|Em!qlNXI-s#70ALo}R=~yr z0CO~T<5fJH80bQ!35<|Ll@N0_m2vdhHT}UcEBt2PDg(B_KVSa7Hh4dV9%M36B ziwvx|ZV~VQ&o9^ii%HyL2AF|&#emE<{bmD}M0e|x#o=A6L9akjFfMiYKLreX6+Y|m#z$@E?oNoYOjR~eL&THe#mdsb7tb>*1J_iW?<$_ zW-`gmftv?_G=0851112*RAG`cAPNtr4q9hnvN3M(ggZQiMe)J;grPKUBZmtAE+6w?V=L1HnKr5DWwZ zKgs~lY{~e@F>Ejp3=SQ=JGW+=%^iC&u8 z6C-&!Znl^w{l`! N1dNa{!N4yt@CGn9FKz$; literal 0 HcmV?d00001 diff --git a/src/main/c/main_taschenrechner.c b/src/main/c/main_taschenrechner.c new file mode 100644 index 0000000..79ece02 --- /dev/null +++ b/src/main/c/main_taschenrechner.c @@ -0,0 +1,12 @@ +#include +// #include +#include + +#include "taschenrechner.h" + + +int add(int a, int b) { + + return a+b; + +} diff --git a/src/main/c/taschenrechner.h b/src/main/c/taschenrechner.h new file mode 100644 index 0000000..1261fd7 --- /dev/null +++ b/src/main/c/taschenrechner.h @@ -0,0 +1,6 @@ +#ifndef TASCHENRECHNER_H +#define TASCHENRECHNER_H + +int add(int a, int b); + +#endif // TASCHENRECHNER_H diff --git a/src/test/.DS_Store b/src/test/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..7b1609b7387f89af4c5c8edf23c500d4ce970875 GIT binary patch literal 6148 zcmeHK&1xGl5SDB=mN5k%8i;R#Tuo!UtwYFV<2r|2yQK*v#r1lPvvj>${1X?9VbAS5 zDk#>X-vONnMLR5qh3KTI{g60vyanuKr zBTo@f;v6Ob3#U4w5r$1?!0lcCBsTpZUfaKyw^r-|r056pNlFnvgEWpN(|Y|z=JJJS zTSZk=W%bd&G;@F2o6aWf-uN7Q?~RFrmE8+IM1y&^^5U&YroAW`jBP>`4j|;>G)h7< zZ<|>XPHe9422@Fvx|N;9qS@N7>1ONAvZfaY&3aA0e$`qoOKN*}@9rJ!=Fp`JNyUexCrheOq_ g#Nt)F18N2Q8Vx{?FmnhV5dIOcG;qTV{8a}209e{)P5=M^ literal 0 HcmV?d00001 diff --git a/src/test/c/.DS_Store b/src/test/c/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..145327698ad90212822edf4297485a96bc49465d GIT binary patch literal 6148 zcmeHKyG{c^44j1&k!aE&QSKK+;t!T66x4hGkRuXBlt>};*YVlO_yOW{AUX;(mh9Q} zd3JMCoMQlG@%DTT%m7U3hIqFyHhXS9va`$-BAsVE;D9H*qQlFm`ul`&FUeYybr|s1 z*kaGTowX(IF-Lc|*>$VUZbg>;y3P=GdAO)m=6!={M>%Fw;MWCV-kOETR zQvv%vRJvhH>;wJN!QdkRal*74*FH-St0jmnu@7X1R)R_lYRM6!1fBVsbuF2kMs{?t(P-+D<*m?=Ehp_)t9