Daniel Mendler
3b98e82627
disable lto test for clang for now
...
it works on debian but not on the outdated travis ubuntu
2019-11-05 21:01:54 +01:00
Daniel Mendler
53a689d084
travis: install llvm-7
2019-11-05 20:29:59 +01:00
Daniel Mendler
e8e65119d1
add COMPILE_LTO to test link time optimization
...
the library performs best with lto since many small functions
can be inlined across objects.
2019-11-05 20:28:59 +01:00
Daniel Mendler
795cd2013f
simplifications: add s_mp_zero_(digs|buf) and s_mp_copy_digs
...
Originally I made those as macros. However we have many
other small functions like mp_clamp, mp_exch which are also not implemented
as macros right now.
If we would use c99, I would implement them as private static inline
functions. And mp_exch would be a public static inline function.
But since we are bound to c89, we simply use normal functions.
To achieve optimal performance one should either use link time
optimization or amalgamation.
2019-11-04 15:41:32 +01:00
Daniel Mendler
2bbdbd0651
MP_MIN_PREC>=3 is needed for s_mp_div_school
...
test with MP_PREC=MP_MIN_PREC
2019-11-03 17:23:59 +01:00
Steffen Jaeckel
57fbf5a880
also build support/ branches in CI
...
(cherry picked from commit 783ffb82dd5ddddce3d3bbd88661bcda44162458)
2019-10-29 15:39:00 +01:00
Daniel Mendler
17a846f2bc
add "make c99" to convert back
2019-10-27 18:36:56 +01:00
Daniel Mendler
9f01ba14bc
add "testme.sh --c89" and "make c89"
...
* replace int*_t and bool by custom typedefs
* the result is tested in CI
2019-10-27 18:36:56 +01:00
czurnieden
1cb8a22933
removed tests for MP_8BIT from travis
2019-09-09 16:13:46 +02:00
czurnieden
33f4280e45
added printing of valgrind log to travis.yml in case of error
2019-09-09 04:26:59 +02:00
Steffen Jaeckel
c4e205183a
add testbuild for RSA superclass
2019-09-07 17:28:16 +02:00
Steffen Jaeckel
2555884f34
really last one - reorder once more
...
so all long-running jobs start in the beginning
[skip ci]
2019-05-21 15:20:05 +02:00
Daniel Mendler
55ce3e350a
last last one - mtest with real rand on gcc, with prng on clang
2019-05-21 14:58:05 +02:00
Steffen Jaeckel
f8ecaf05c5
ok, a last one - reorder stuff ;-)
...
[skip ci]
2019-05-21 14:56:01 +02:00
Daniel Mendler
c09efffbde
Run gcc 4.9 build on valgrind instead of sanitized clang build
2019-05-21 14:50:44 +02:00
Daniel Mendler
77b42459c5
ok, one more - disable gcc mtest-vs-test runs, only run clang tests
...
[skip ci]
2019-05-21 14:44:50 +02:00
Daniel Mendler
f92d8f0a12
COMPILE_DEBUG=1 for the valgrind build
2019-05-21 13:54:18 +02:00
Steffen Jaeckel
30361df573
v-algrind and tune builds to the beginning
...
... as they take the longest time
2019-05-21 13:49:19 +02:00
Daniel Mendler
5c7b9180b7
run tuner only once during CI
2019-05-21 13:43:06 +02:00
Daniel Mendler
ce34b3aec2
Restrict running Valgrind
...
* Activate on the develop branch
* Activate on branches containing the word v-algrind (without hyphen)
* Activate if the commit message contains v-algrind (without hyphen)
* Run default build always with valgrind
2019-05-21 13:03:31 +02:00
Daniel Mendler
4534056c28
use enums mp_err, mp_ord, mp_bool, mp_sign
...
* MP_USE_ENUMS enables enums
* Wc++-compat catches some implicit conversions if MP_USE_ENUMS is defined
* 100% backwards compatible API/ABI if MP_USE_ENUMS is not defined
2019-05-13 19:15:14 +02:00
Daniel Mendler
2a2e2716c2
move jenkins prng to bn_s_mp_rand_jenkins.c
2019-05-12 23:45:36 +02:00
Daniel Mendler
8d71a9e33b
travis: add -fsanitize=undefined
2019-05-12 23:45:36 +02:00
czurnieden
db76bed220
added autotuning functionality for the Toom-Cook cut-offs
2019-05-06 23:29:08 +02:00
Daniel Mendler
e8f56cc4e0
enable -Wconversion and -Wsign-conversion on travis
...
* no changes to the library code
* conversion issues in the demo testsuite fixed
* add CONV_WARNINGS and enable the warnings only for clang-7 (for now)
* disable Wsystem-headers if Wconversion is enabled, to avoid warnings from the system headers
2019-04-19 22:01:11 +02:00
Daniel Mendler
6d092b85a5
travis: test various compiler options
2019-04-19 19:30:55 +02:00
Steffen Jaeckel
c4bb3c1bd4
let's see if the xenial version of astyle is better
2019-04-06 17:59:49 +02:00
Steffen Jaeckel
179daef123
add travis-build to check source-code format
2019-04-06 17:45:15 +02:00
Steffen Jaeckel
9e8b71e3a5
remove travis build of clang + x32
...
as clang has no x32 support at all there's no need to test it
[skip ci]
2019-04-05 11:43:36 +02:00
Steffen Jaeckel
39ef9858a3
partially port over valgrind test logic from ltc
...
also try if the test failure has to do with travis_wait
2019-03-26 14:38:54 +01:00
czurnieden
db391b6e33
added valgrind tests to testme.sh and travis.yml
2019-03-26 14:34:42 +01:00
Steffen Jaeckel
aaa52a3d71
also run test vs mtest with real random data
2017-10-19 12:01:58 +02:00
Steffen Jaeckel
d5328bfade
create a travis build matrix
2017-10-19 11:47:29 +02:00
Steffen Jaeckel
c107b6593a
also build release-branch in travis
2017-08-28 17:06:32 +02:00
Steffen Jaeckel
ec6bebf157
update travis notifications
2017-06-06 23:31:30 +02:00
Steffen Jaeckel
e8e8fc4ccb
improve testme.sh
2017-04-11 11:43:45 +02:00
Steffen Jaeckel
ff7603a309
run tests for all MP configurations
2017-04-10 16:46:19 +02:00
Steffen Jaeckel
447f7b8148
mtest takes a while... don't let travis kill it
2016-04-24 13:50:05 +02:00
Steffen Jaeckel
9048c9b6d7
also build master on travis
2016-04-21 23:09:29 +02:00
Steffen Jaeckel
91e18b2974
add notification for #libtom irc
2015-12-05 13:58:21 +01:00
Steffen Jaeckel
2792ab8984
update travis.yml and adjust README
2015-12-05 13:47:22 +01:00
Francois Perrad
7d9a225a69
add Travis CI
2015-12-05 13:38:21 +01:00