aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--.build.yml2
-rw-r--r--Makefile4
-rw-r--r--minunit/LICENCE20
-rw-r--r--minunit/minunit.c (renamed from test/minunit.c)0
-rw-r--r--minunit/minunit.h (renamed from test/minunit.h)0
-rw-r--r--test/deco_test.c2
-rw-r--r--test/opendeco_test.c2
7 files changed, 25 insertions, 5 deletions
diff --git a/.build.yml b/.build.yml
index 815469a..0644d52 100644
--- a/.build.yml
+++ b/.build.yml
@@ -5,7 +5,7 @@ packages:
tasks:
- check-format: |
cd opendeco
- clang-format-13 -n --Werror src/*.c src/*.h test/*.c test/*.h
+ clang-format-13 -n --Werror src/*.c src/*.h test/*.c
- build: |
cd opendeco
make
diff --git a/Makefile b/Makefile
index 34d11b5..6cfb8e6 100644
--- a/Makefile
+++ b/Makefile
@@ -8,8 +8,8 @@ all: opendeco opendeco_test libopendeco.a
opendeco: src/opendeco.c src/deco.c src/deco.h src/schedule.c src/schedule.h src/output.c src/output.h src/opendeco-cli.h src/opendeco-cli.c src/opendeco-conf.h src/opendeco-conf.c toml/toml.c toml/toml.h
$(CC) $(CFLAGS) src/opendeco.c src/deco.c src/schedule.c src/output.c src/opendeco-cli.c src/opendeco-conf.c toml/toml.c -lm -o opendeco
-opendeco_test: test/opendeco_test.c test/deco_test.c src/deco.c
- $(CC) $(CFLAGS) test/minunit.c test/opendeco_test.c test/deco_test.c src/deco.c -lm -o opendeco_test
+opendeco_test: test/opendeco_test.c test/deco_test.c src/deco.c minunit/minunit.c minunit/minunit.h
+ $(CC) $(CFLAGS) minunit/minunit.c test/opendeco_test.c test/deco_test.c src/deco.c -lm -o opendeco_test
libopendeco.a:
$(CC) -c src/deco.c -o src/deco.o
diff --git a/minunit/LICENCE b/minunit/LICENCE
new file mode 100644
index 0000000..fe2ec25
--- /dev/null
+++ b/minunit/LICENCE
@@ -0,0 +1,20 @@
+Copyright (c) 2012 David SiƱuela Pastor, siu.4coders@gmail.com
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/test/minunit.c b/minunit/minunit.c
index e158c42..e158c42 100644
--- a/test/minunit.c
+++ b/minunit/minunit.c
diff --git a/test/minunit.h b/minunit/minunit.h
index e08ff8c..e08ff8c 100644
--- a/test/minunit.h
+++ b/minunit/minunit.h
diff --git a/test/deco_test.c b/test/deco_test.c
index 2931f44..ec48789 100644
--- a/test/deco_test.c
+++ b/test/deco_test.c
@@ -1,4 +1,4 @@
-#include "minunit.h"
+#include "../minunit/minunit.h"
#include "../src/deco.h"
diff --git a/test/opendeco_test.c b/test/opendeco_test.c
index 55761ae..70f3c67 100644
--- a/test/opendeco_test.c
+++ b/test/opendeco_test.c
@@ -1,4 +1,4 @@
-#include "minunit.h"
+#include "../minunit/minunit.h"
MU_TEST_SUITE(testsuite_deco);