From cf05aea092fad448c2f4a8e8b66159237096ba8e Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Wed, 11 Nov 2015 05:43:01 -0500 Subject: Update and consolidate the test framework. The tests previously had used 4 to 6 different schemes internally (the vec file reader framework, Catch, the old InSiTo Boost.Test tests, the PK/BigInt tests which escaped the rewrite in 1.11.7, plus a number of one-offs). Converge on a design that works everywhere, and update all the things. Fix also a few bugs found by the test changes: SHA-512-256 name incorrect, OpenSSL RC4 name incorrect, signature of FFI function botan_pubkey_destroy was wrong. --- src/tests/data/util.vec | 58 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 src/tests/data/util.vec (limited to 'src/tests/data/util.vec') diff --git a/src/tests/data/util.vec b/src/tests/data/util.vec new file mode 100644 index 000000000..a1e857b10 --- /dev/null +++ b/src/tests/data/util.vec @@ -0,0 +1,58 @@ + +[round_up] +In1 = 1 +In2 = 10 +Out = 10 + +In1 = 3 +In2 = 10 +Out = 10 + +In1 = 9 +In2 = 10 +Out = 10 + +In1 = 10 +In2 = 10 +Out = 10 + +In1 = 1 +In2 = 4 +Out = 4 + +In1 = 3 +In2 = 4 +Out = 4 + +In1 = 4 +In2 = 4 +Out = 4 + +In1 = 9 +In2 = 4 +Out = 12 + +In1 = 11 +In2 = 4 +Out = 12 + +In1 = 0 +In2 = 2 +Out = 0 + +In1 = 0 +In2 = 10000 +Out = 0 + +[round_down] +In1 = 9 +In2 = 10 +Out = 0 + +In1 = 10 +In2 = 10 +Out = 10 + +In1 = 11 +In2 = 10 +Out = 10 -- cgit v1.2.3