diff --git a/build-project.sh b/build-project.sh index 9761777..949b9be 100755 --- a/build-project.sh +++ b/build-project.sh @@ -1,5 +1,7 @@ +clear ceedling test:all cd src/ +gcc main.c createCustomer.c -o prog ./prog -clear; +rm prog cd .. diff --git a/src/CreateCustomer.c b/src/createCustomer.c similarity index 97% rename from src/CreateCustomer.c rename to src/createCustomer.c index a84ed15..dbc78d6 100644 --- a/src/CreateCustomer.c +++ b/src/createCustomer.c @@ -1,13 +1,5 @@ -#include "CreateCustomer.h" +#include "createCustomer.h" /*Code written by Julius Philipp Engel, fdai7057*/ - -/* -int main() -{ - collectCustomerProperties(); -} -*/ - int generateID() { srand(clock()); diff --git a/src/CreateCustomer.h b/src/createCustomer.h similarity index 84% rename from src/CreateCustomer.h rename to src/createCustomer.h index a7fdbc8..bd58756 100644 --- a/src/CreateCustomer.h +++ b/src/createCustomer.h @@ -2,7 +2,7 @@ #include #include #include -#include "CustomerProperties.h" +#include "customerProperties.h" int generateID(); void collectCustomerProperties(); void writeCustomerPropertiesToFile(customer_t *); diff --git a/src/CustomerProperties.h b/src/customerProperties.h similarity index 100% rename from src/CustomerProperties.h rename to src/customerProperties.h diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..84a49ac --- /dev/null +++ b/src/main.c @@ -0,0 +1,4 @@ +#include "createCustomer.h" +int main(){ + collectCustomerProperties(); +} diff --git a/src/prog b/src/prog deleted file mode 100755 index fbb6763..0000000 Binary files a/src/prog and /dev/null differ diff --git a/tests/test_CreateCustomer.c b/tests/test_CreateCustomer.c index 5ec9af0..5cf0933 100644 --- a/tests/test_CreateCustomer.c +++ b/tests/test_CreateCustomer.c @@ -1,6 +1,6 @@ #include #include -#include "CreateCustomer.h" +#include "createCustomer.h" void setUp(){} void tearDown(){}