Gilles Peskine
48e689e6be
Remove duplicate build run
...
Don't compile twice with MBEDTLS_HAVE_INT64.
But do test with MBEDTLS_HAVE_INT32.
2018-01-29 21:31:16 +01:00
Andres Amaya Garcia
f4fbdda602
Add test command for 64-bit ILP32 in all.sh
2018-01-29 20:51:55 +01:00
Simon Butcher
952240985a
Remove picocoin reference configuration
...
Picocoin is no longer actively supported by the library, so the reference
configuration used in testing has been removed.
2018-01-17 23:24:43 +00:00
Hanno Becker
d485c319a5
Make small corrections to all.sh
...
Correct gcc flags in !MBEDTLS_SSL_CLI_C test (preexisting) and build and test
for RSA_NO_CRT in ASan mode.
2018-01-05 13:03:53 +00:00
Hanno Becker
88683b2c6d
Correct all.sh and config.h after merge commit
...
- Adapt the change in all.sh to the new keep-going mode
- Restore alphabetical order of configuration flags for
alternative implementations in config.h and rebuild
library/version_features.c
2018-01-04 18:48:32 +00:00
Hanno Becker
8bc74d6f2f
Merge branch 'development' into iotssl-1619
2018-01-03 10:24:02 +00:00
Hanno Becker
e963efa110
Don't limit RSA_NO_CRT test in all.sh to 64-bit systems
...
Compilation and test for the `MBEDTLS_RSA_NO_CRT` option were
previously guarded by a check for 64-bit systems, for which there
is no reason. This commit moves both outside of the guard.
2018-01-03 10:03:43 +00:00
Gilles Peskine
9736b9d59a
all.sh --keep-going: work if TERM is unset
2018-01-02 21:54:17 +01:00
Hanno Becker
32297e8314
Merge branch 'development' into iotssl-1619
2017-12-22 10:24:32 +00:00
Gilles Peskine
192c72f7a1
all.sh: add some documentation
2017-12-21 16:54:14 +01:00
Gilles Peskine
bca6ab9d38
all.sh: new option --no-armcc
...
With this option, don't run anything that requires armcc or yotta, so
the script can run offline.
2017-12-21 15:21:31 +01:00
Gilles Peskine
2a22a8041c
all.sh: add --yotta to go with --no-yotta
...
Add --yotta which is currently a no-op but may not remain so if we
decide to make no-yotta the default in the future.
2017-12-21 15:19:00 +01:00
Gilles Peskine
7c6521688a
all.sh: --keep-going mode
...
Add --keep-going mode to all.sh. In this mode, if a test fails, keep
running the subsequent tests. If a build fails, skip any tests of this
build and move on to the next tests. Errors in infrastructure, such as
git or cmake runs, remain fatal. Print an error summary at the end of
the run, and return a nonzero code if there was any failure.
In known terminal types, use color to highlight errors.
On a fatal signal, interrupt the run and report the errors so far.
2017-12-21 15:17:21 +01:00
Gilles Peskine
709346aed8
all.sh: cleaned up usage output
2017-12-21 15:16:11 +01:00
Gilles Peskine
7ad603e662
all.sh: indent
2017-12-21 15:13:27 +01:00
Gilles Peskine
da519251d4
Add --no-yotta option to all.sh
...
The Yotta tools break in some environments and it's useful to be able
to run the rest of all.sh nonetheless.
2017-11-30 14:24:33 +01:00
Gilles Peskine
0884f4811b
Merge remote-tracking branch 'upstream-public/pr/1141' into development
2017-11-29 20:50:59 +01:00
Gilles Peskine
4daffe236a
Merge branch 'pr_1025' into development
...
Merge PR #1025 + ChangeLog entry
2017-11-28 18:23:53 +01:00
Gilles Peskine
68306ed31f
Merge remote-tracking branch 'upstream-public/pr/1094' into development
2017-11-23 20:02:46 +01:00
Manuel Pégourié-Gonnard
254eec8bb4
Document choice of script exit code
2017-10-26 09:47:36 +02:00
Hanno Becker
134c2ab891
Add build and ssl-opt.sh run for !SSL_RENEGOTIATION to all.sh
2017-10-17 11:03:50 +01:00
Gilles Peskine
b04e2c3d81
Allow comments in test data files
2017-10-06 11:58:50 +01:00
Gilles Peskine
26182edd0c
Allow comments in test data files
2017-09-29 15:45:12 +02:00
Hanno Becker
d5ba5effaa
Add ASan build-and-test run for MBEDTLS_RSA_NO_CRT in all.sh
2017-09-28 13:10:44 +01:00
Hanno Becker
5175ac6e13
Add tests for disabled MFL-extension to all.sh
...
This commit adds a build with default config except
MBEDTLS_SSL_MAX_FRAGMENT_LENGTH to all.sh, as well as a run of the MFL-related
tests in ssl-opt.sh.
2017-09-18 16:11:39 +01:00
Gert van Dijk
25d124dc74
Tests: depends-pkalgs.pl - disable less options
...
Rather than disabling SSL & Key exchanges as a whole, only disable those
options required by reverse dependencies.
GitHub issue #1040 https://github.com/ARMmbed/mbedtls/issues/1040
See also discussion in PR #1074 .
https://github.com/ARMmbed/mbedtls/pull/1074#issuecomment-327096303
2017-09-05 14:29:28 +02:00
Hanno Becker
bf37b10370
Add test run for RSA_NO_CRT to all.sh
2017-08-23 16:17:28 +01:00
Manuel Pégourié-Gonnard
7766a2c9c0
Improve some comments
2017-08-21 10:57:57 +02:00
Manuel Pégourié-Gonnard
562df401d3
Improve some comments, fix some typos+whitespace
2017-08-08 18:17:53 +02:00
Manuel Pégourié-Gonnard
a7c4c8a46c
Make some perl scripts usable with git bisect run
...
For that they need to return between 0 and 124 on error, while die returns
255, causing bisect-run to abort.
2017-08-08 11:06:51 +02:00
Manuel Pégourié-Gonnard
602544e659
Fix usage of CFLAGS with cmake in all.sh
...
With cmake, CFLAGS has to be set when invoking cmake, not make (which totally
ignores the value of CFLAGS when it runs and only keeps the one from cmake).
Also, in that case the flags were either redundant (-Werror etc) or wrong
(-std=c99 -pedantic) as some parts of the library will not build with
-pedantic (see the other -pedantic tests, which are correct, for what needs to
be disabled).
2017-08-08 11:06:49 +02:00
Manuel Pégourié-Gonnard
43be6cda47
Fix depends_on:pk_alg in test suites
2017-08-08 11:06:49 +02:00
Manuel Pégourié-Gonnard
902bb6a018
Add new test script depends-pkalgs.pl
2017-08-08 11:06:49 +02:00
Manuel Pégourié-Gonnard
9ba9dfb1c6
Fix usage of {curves,key-exchanges}.pl in all.sh
2017-08-08 11:06:49 +02:00
Manuel Pégourié-Gonnard
1fe6bb9f25
Fix missing depends_on:SHA/MD in x509 tests
2017-08-08 11:06:49 +02:00
Manuel Pégourié-Gonnard
42a4d30a04
Add new test script depends-hashes.pl
...
This is step 1 of a plan to get rid once and for all of missing depends_on in
the X509 test suite (step 2 will be RSA/ECDSA, and step 0 was curves.pl).
2017-08-08 11:00:46 +02:00
Ron Eldor
bf007d297d
Pre push hook script
...
Add git_hook folder, and pre-push script,
to be soft linked from .git/hooks/pre-push
2017-07-27 21:44:34 +01:00
Simon Butcher
2c4d558873
Fixes test for MBEDTLS_NO_UDBL_DIVISION
...
The test for MBEDTLS_NO_UDBL_DIVISION wasn't preserving it's own config.h
for the next test.
Also added comments to ARM Compiler 6 tests to better explain them.
2017-07-27 21:44:34 +01:00
Andres Amaya Garcia
f755bb3adf
Remove MBEDTLS_TYPE_UDBL tests from all.sh
2017-07-27 21:44:33 +01:00
Andres Amaya Garcia
465db7eba1
Fix no 64-bit division test in all.sh
2017-07-27 21:44:33 +01:00
Andres Amaya Garcia
9946783218
Add tests for 64 and 32-bit int types compilation
2017-07-27 21:44:33 +01:00
Gilles Peskine
b1a977f5a7
MBEDTLS_NO_INT64_DIVISION -> MBEDTLS_NO_UDBL_DIVISION
...
Changed the option to disable the use of 64-bit division, to an option
to disable the use of double-width division, whether that's 64 or 128-bit.
2017-07-27 21:44:33 +01:00
Andres Amaya Garcia
5e873fb464
Add all.sh test to force 32-bit compilation
2017-07-27 21:44:33 +01:00
Ron Eldor
2f43032f1a
Pre push hook script
...
Add git_hook folder, and pre-push script,
to be soft linked from .git/hooks/pre-push
2017-07-27 15:08:01 +01:00
Simon Butcher
940737f43b
Fixes test for MBEDTLS_NO_UDBL_DIVISION
...
The test for MBEDTLS_NO_UDBL_DIVISION wasn't preserving it's own config.h
for the next test.
Also added comments to ARM Compiler 6 tests to better explain them.
2017-07-27 15:08:01 +01:00
Andres Amaya Garcia
72df64a2bf
Remove MBEDTLS_TYPE_UDBL tests from all.sh
2017-07-27 15:08:01 +01:00
Andres Amaya Garcia
05931979a6
Fix no 64-bit division test in all.sh
2017-07-27 15:08:01 +01:00
Andres Amaya Garcia
fe843a359b
Add tests for 64 and 32-bit int types compilation
2017-07-27 15:08:01 +01:00
Gilles Peskine
ed942f84e6
MBEDTLS_NO_INT64_DIVISION -> MBEDTLS_NO_UDBL_DIVISION
...
Changed the option to disable the use of 64-bit division, to an option
to disable the use of double-width division, whether that's 64 or 128-bit.
2017-07-27 15:08:01 +01:00
Andres Amaya Garcia
84e6ce899f
Add all.sh test to force 32-bit compilation
2017-07-27 15:08:01 +01:00