aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJ08nY2018-04-05 22:49:01 +0200
committerJ08nY2018-04-05 22:49:01 +0200
commit23864f09cff6510fa6a9b29aefd852842493e9e4 (patch)
tree89d7bb4bcb254eace8e4c325fa265fb3245f3b07 /test
parent71cbaba2fe4f4be9d7531fa901178225d02215b8 (diff)
downloadecgen-23864f09cff6510fa6a9b29aefd852842493e9e4.tar.gz
ecgen-23864f09cff6510fa6a9b29aefd852842493e9e4.tar.zst
ecgen-23864f09cff6510fa6a9b29aefd852842493e9e4.zip
Diffstat (limited to 'test')
-rw-r--r--test/src/Makefile8
-rw-r--r--test/src/exhaustive/test_ansi.c2
-rw-r--r--test/src/exhaustive/test_brainpool.c2
-rw-r--r--test/src/exhaustive/test_brainpool_rfc.c2
-rw-r--r--test/src/gen/test_curve.c2
-rw-r--r--test/src/gen/test_equation.c2
-rw-r--r--test/src/gen/test_field.c2
-rw-r--r--test/src/gen/test_gens.c2
-rw-r--r--test/src/gen/test_hex.c2
-rw-r--r--test/src/gen/test_order.c2
-rw-r--r--test/src/gen/test_point.c2
-rw-r--r--test/src/gen/test_seed.c2
-rw-r--r--test/src/io/test_cli.c2
-rw-r--r--test/src/io/test_input.c2
-rw-r--r--test/src/math/test_koblitz.c2
-rw-r--r--test/src/math/test_subgroup.c2
-rw-r--r--test/src/math/test_twists.c2
-rw-r--r--test/src/test/default.c2
-rw-r--r--test/src/test/default.h2
-rw-r--r--test/src/test/input.c2
-rw-r--r--test/src/test/input.h2
-rw-r--r--test/src/test/memory.c2
-rw-r--r--test/src/test/memory.h2
-rw-r--r--test/src/test/output.c2
-rw-r--r--test/src/test/output.h2
-rw-r--r--test/src/util/test_bits.c2
-rw-r--r--test/src/util/test_random.c2
-rw-r--r--test/src/util/test_timeout.c2
28 files changed, 32 insertions, 30 deletions
diff --git a/test/src/Makefile b/test/src/Makefile
index 675f2df..86e2598 100644
--- a/test/src/Makefile
+++ b/test/src/Makefile
@@ -1,7 +1,7 @@
####
#
# ecgen, tool for generating Elliptic curve domain parameters
-# Copyright (C) 2017 J08nY
+# Copyright (C) 2017-2018 J08nY
#
####
@@ -10,7 +10,7 @@ CC ?= gcc
CFLAGS = -Wall
TEST ?= 0
ifeq ($(TEST), 1)
- CFLAGS += --coverage -g -O0
+ CFLAGS += --coverage -g -O0
endif
LDFLAGS = -L../../lib/parson -L../../lib/sha1 -L../../lib/pari -L../lib/criterion/build
INCLUDES = -I. -I../../src -I../../lib -I../lib/criterion/include
@@ -51,4 +51,6 @@ clean-cov:
format:
clang-format -i $(TEST_SRC)
- clang-format -i $(TEST_HDR) \ No newline at end of file
+ clang-format -i $(TEST_HDR)
+
+.PHONY: all clean-all clean clean-cov format \ No newline at end of file
diff --git a/test/src/exhaustive/test_ansi.c b/test/src/exhaustive/test_ansi.c
index 4724336..65aa5ba 100644
--- a/test/src/exhaustive/test_ansi.c
+++ b/test/src/exhaustive/test_ansi.c
@@ -1,6 +1,6 @@
/*
* ecgen, tool for generating Elliptic curve domain parameters
- * Copyright (C) 2017 J08nY
+ * Copyright (C) 2017-2018 J08nY
*/
#include <criterion/criterion.h>
diff --git a/test/src/exhaustive/test_brainpool.c b/test/src/exhaustive/test_brainpool.c
index 80c11e3..fc18884 100644
--- a/test/src/exhaustive/test_brainpool.c
+++ b/test/src/exhaustive/test_brainpool.c
@@ -1,6 +1,6 @@
/*
* ecgen, tool for generating Elliptic curve domain parameters
- * Copyright (C) 2017 J08nY
+ * Copyright (C) 2017-2018 J08nY
*/
#include <criterion/criterion.h>
diff --git a/test/src/exhaustive/test_brainpool_rfc.c b/test/src/exhaustive/test_brainpool_rfc.c
index 0c9cab0..72eb75f 100644
--- a/test/src/exhaustive/test_brainpool_rfc.c
+++ b/test/src/exhaustive/test_brainpool_rfc.c
@@ -1,6 +1,6 @@
/*
* ecgen, tool for generating Elliptic curve domain parameters
- * Copyright (C) 2017 J08nY
+ * Copyright (C) 2017-2018 J08nY
*/
#include <criterion/criterion.h>
diff --git a/test/src/gen/test_curve.c b/test/src/gen/test_curve.c
index cd4bb5a..636a136 100644
--- a/test/src/gen/test_curve.c
+++ b/test/src/gen/test_curve.c
@@ -1,6 +1,6 @@
/*
* ecgen, tool for generating Elliptic curve domain parameters
- * Copyright (C) 2017 J08nY
+ * Copyright (C) 2017-2018 J08nY
*/
#include <criterion/criterion.h>
#include "gen/curve.h"
diff --git a/test/src/gen/test_equation.c b/test/src/gen/test_equation.c
index c66d28b..d3d9921 100644
--- a/test/src/gen/test_equation.c
+++ b/test/src/gen/test_equation.c
@@ -1,6 +1,6 @@
/*
* ecgen, tool for generating Elliptic curve domain parameters
- * Copyright (C) 2017 J08nY
+ * Copyright (C) 2017-2018 J08nY
*/
#include <criterion/criterion.h>
#include "gen/equation.h"
diff --git a/test/src/gen/test_field.c b/test/src/gen/test_field.c
index 03bd626..26817b6 100644
--- a/test/src/gen/test_field.c
+++ b/test/src/gen/test_field.c
@@ -1,6 +1,6 @@
/*
* ecgen, tool for generating Elliptic curve domain parameters
- * Copyright (C) 2017 J08nY
+ * Copyright (C) 2017-2018 J08nY
*/
#include <criterion/criterion.h>
#include "gen/field.h"
diff --git a/test/src/gen/test_gens.c b/test/src/gen/test_gens.c
index db11e3d..2787ae3 100644
--- a/test/src/gen/test_gens.c
+++ b/test/src/gen/test_gens.c
@@ -1,6 +1,6 @@
/*
* ecgen, tool for generating Elliptic curve domain parameters
- * Copyright (C) 2017 J08nY
+ * Copyright (C) 2017-2018 J08nY
*/
#include <criterion/criterion.h>
#include "exhaustive/arg.h"
diff --git a/test/src/gen/test_hex.c b/test/src/gen/test_hex.c
index d1f1931..c429c05 100644
--- a/test/src/gen/test_hex.c
+++ b/test/src/gen/test_hex.c
@@ -1,6 +1,6 @@
/*
* ecgen, tool for generating Elliptic curve domain parameters
- * Copyright (C) 2017 J08nY
+ * Copyright (C) 2017-2018 J08nY
*/
#include <criterion/criterion.h>
#include "gen/hex.h"
diff --git a/test/src/gen/test_order.c b/test/src/gen/test_order.c
index ab74f54..ba35a9a 100644
--- a/test/src/gen/test_order.c
+++ b/test/src/gen/test_order.c
@@ -1,6 +1,6 @@
/*
* ecgen, tool for generating Elliptic curve domain parameters
- * Copyright (C) 2017 J08nY
+ * Copyright (C) 2017-2018 J08nY
*/
#include <criterion/criterion.h>
#include "gen/order.h"
diff --git a/test/src/gen/test_point.c b/test/src/gen/test_point.c
index 3a76c84..d37091a 100644
--- a/test/src/gen/test_point.c
+++ b/test/src/gen/test_point.c
@@ -1,6 +1,6 @@
/*
* ecgen, tool for generating Elliptic curve domain parameters
- * Copyright (C) 2017 J08nY
+ * Copyright (C) 2017-2018 J08nY
*/
#include <criterion/criterion.h>
diff --git a/test/src/gen/test_seed.c b/test/src/gen/test_seed.c
index 807db31..b7f2754 100644
--- a/test/src/gen/test_seed.c
+++ b/test/src/gen/test_seed.c
@@ -1,6 +1,6 @@
/*
* ecgen, tool for generating Elliptic seed domain parameters
- * Copyright (C) 2017 J08nY
+ * Copyright (C) 2017-2018 J08nY
*/
#include <criterion/criterion.h>
#include "gen/seed.h"
diff --git a/test/src/io/test_cli.c b/test/src/io/test_cli.c
index 77d8672..12c1650 100644
--- a/test/src/io/test_cli.c
+++ b/test/src/io/test_cli.c
@@ -1,6 +1,6 @@
/*
* ecgen, tool for generating Elliptic curve domain parameters
- * Copyright (C) 2017 J08nY
+ * Copyright (C) 2017-2018 J08nY
*/
#include <criterion/criterion.h>
diff --git a/test/src/io/test_input.c b/test/src/io/test_input.c
index b0ecf0a..c97cbc7 100644
--- a/test/src/io/test_input.c
+++ b/test/src/io/test_input.c
@@ -1,6 +1,6 @@
/*
* ecgen, tool for generating Elliptic curve domain parameters
- * Copyright (C) 2017 J08nY
+ * Copyright (C) 2017-2018 J08nY
*/
#include <criterion/criterion.h>
diff --git a/test/src/math/test_koblitz.c b/test/src/math/test_koblitz.c
index 811edc3..93272ab 100644
--- a/test/src/math/test_koblitz.c
+++ b/test/src/math/test_koblitz.c
@@ -1,6 +1,6 @@
/*
* ecgen, tool for generating Elliptic curve domain parameters
- * Copyright (C) 2017 J08nY
+ * Copyright (C) 2017-2018 J08nY
*/
#include <criterion/criterion.h>
#include "gen/point.h"
diff --git a/test/src/math/test_subgroup.c b/test/src/math/test_subgroup.c
index 1acb468..d6b2f10 100644
--- a/test/src/math/test_subgroup.c
+++ b/test/src/math/test_subgroup.c
@@ -1,6 +1,6 @@
/*
* ecgen, tool for generating Elliptic curve domain parameters
- * Copyright (C) 2017 J08nY
+ * Copyright (C) 2017-2018 J08nY
*/
#include <criterion/criterion.h>
#include "gen/point.h"
diff --git a/test/src/math/test_twists.c b/test/src/math/test_twists.c
index cc39369..0712d3c 100644
--- a/test/src/math/test_twists.c
+++ b/test/src/math/test_twists.c
@@ -1,6 +1,6 @@
/*
* ecgen, tool for generating Elliptic curve domain parameters
- * Copyright (C) 2017 J08nY
+ * Copyright (C) 2017-2018 J08nY
*/
#include <criterion/criterion.h>
#include "gen/field.h"
diff --git a/test/src/test/default.c b/test/src/test/default.c
index 27f9525..4f35bc8 100644
--- a/test/src/test/default.c
+++ b/test/src/test/default.c
@@ -1,6 +1,6 @@
/*
* ecgen, tool for generating Elliptic curve domain parameters
- * Copyright (C) 2017 J08nY
+ * Copyright (C) 2017-2018 J08nY
*/
#include "default.h"
#include <criterion/criterion.h>
diff --git a/test/src/test/default.h b/test/src/test/default.h
index 12ee4cb..6f38c0b 100644
--- a/test/src/test/default.h
+++ b/test/src/test/default.h
@@ -1,6 +1,6 @@
/*
* ecgen, tool for generating Elliptic curve domain parameters
- * Copyright (C) 2017 J08nY
+ * Copyright (C) 2017-2018 J08nY
*/
#ifndef ECGEN_TEST_DEFAULT_H
#define ECGEN_TEST_DEFAULT_H
diff --git a/test/src/test/input.c b/test/src/test/input.c
index 8332d3e..ba5afbb 100644
--- a/test/src/test/input.c
+++ b/test/src/test/input.c
@@ -1,6 +1,6 @@
/*
* ecgen, tool for generating Elliptic curve domain parameters
- * Copyright (C) 2017 J08nY
+ * Copyright (C) 2017-2018 J08nY
*/
#include "input.h"
#include "io/input.h"
diff --git a/test/src/test/input.h b/test/src/test/input.h
index 5e57c01..49f25e3 100644
--- a/test/src/test/input.h
+++ b/test/src/test/input.h
@@ -1,6 +1,6 @@
/*
* ecgen, tool for generating Elliptic curve domain parameters
- * Copyright (C) 2017 J08nY
+ * Copyright (C) 2017-2018 J08nY
*/
#ifndef ECGEN_TEST_INPUT_H
#define ECGEN_TEST_INPUT_H
diff --git a/test/src/test/memory.c b/test/src/test/memory.c
index 24a7be0..2efd208 100644
--- a/test/src/test/memory.c
+++ b/test/src/test/memory.c
@@ -1,6 +1,6 @@
/*
* ecgen, tool for generating Elliptic curve domain parameters
- * Copyright (C) 2017 J08nY
+ * Copyright (C) 2017-2018 J08nY
*/
#include "memory.h"
#include <criterion/alloc.h>
diff --git a/test/src/test/memory.h b/test/src/test/memory.h
index 630aeb5..a828590 100644
--- a/test/src/test/memory.h
+++ b/test/src/test/memory.h
@@ -1,6 +1,6 @@
/*
* ecgen, tool for generating Elliptic curve domain parameters
- * Copyright (C) 2017 J08nY
+ * Copyright (C) 2017-2018 J08nY
*/
#ifndef ECGEN_TEST_MEMORY_H
#define ECGEN_TEST_MEMORY_H
diff --git a/test/src/test/output.c b/test/src/test/output.c
index 280d80a..5838677 100644
--- a/test/src/test/output.c
+++ b/test/src/test/output.c
@@ -1,6 +1,6 @@
/*
* ecgen, tool for generating Elliptic curve domain parameters
- * Copyright (C) 2017 J08nY
+ * Copyright (C) 2017-2018 J08nY
*/
#include "output.h"
#include "io/output.h"
diff --git a/test/src/test/output.h b/test/src/test/output.h
index 733cb5c..de46642 100644
--- a/test/src/test/output.h
+++ b/test/src/test/output.h
@@ -1,6 +1,6 @@
/*
* ecgen, tool for generating Elliptic curve domain parameters
- * Copyright (C) 2017 J08nY
+ * Copyright (C) 2017-2018 J08nY
*/
#ifndef ECGEN_TEST_OUTPUT_H
#define ECGEN_TEST_OUTPUT_H
diff --git a/test/src/util/test_bits.c b/test/src/util/test_bits.c
index 8a356b0..cdde81f 100644
--- a/test/src/util/test_bits.c
+++ b/test/src/util/test_bits.c
@@ -1,6 +1,6 @@
/*
* ecgen, tool for generating Elliptic curve domain parameters
- * Copyright (C) 2017 J08nY
+ * Copyright (C) 2017-2018 J08nY
*/
#include <criterion/criterion.h>
diff --git a/test/src/util/test_random.c b/test/src/util/test_random.c
index 8f10453..7be1bd2 100644
--- a/test/src/util/test_random.c
+++ b/test/src/util/test_random.c
@@ -1,6 +1,6 @@
/*
* ecgen, tool for generating Elliptic curve domain parameters
- * Copyright (C) 2017 J08nY
+ * Copyright (C) 2017-2018 J08nY
*/
#include <criterion/criterion.h>
diff --git a/test/src/util/test_timeout.c b/test/src/util/test_timeout.c
index adf9b2a..c93695c 100644
--- a/test/src/util/test_timeout.c
+++ b/test/src/util/test_timeout.c
@@ -1,6 +1,6 @@
/*
* ecgen, tool for generating Elliptic curve domain parameters
- * Copyright (C) 2017 J08nY
+ * Copyright (C) 2017-2018 J08nY
*/
#include <criterion/criterion.h>