Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbedtls by
tests/git-scripts/pre-push.sh@2:bbdeda018a3c, 2017-09-29 (annotated)
- Committer:
- Jasper Wallace
- Date:
- Fri Sep 29 19:50:30 2017 +0100
- Revision:
- 2:bbdeda018a3c
Update to mbedtls 2.6.0, many changes.
Changes to mbedtls sources made:
in include/mbedtls/config.h comment out:
#define MBEDTLS_FS_IO
#define MBEDTLS_NET_C
#define MBEDTLS_TIMING_C
uncomment:
#define MBEDTLS_NO_PLATFORM_ENTROPY
remove the following directorys:
programs
yotta
visualc
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Jasper Wallace |
2:bbdeda018a3c | 1 | #!/bin/sh |
| Jasper Wallace |
2:bbdeda018a3c | 2 | # pre-push.sh |
| Jasper Wallace |
2:bbdeda018a3c | 3 | # |
| Jasper Wallace |
2:bbdeda018a3c | 4 | # This file is part of mbed TLS (https://tls.mbed.org) |
| Jasper Wallace |
2:bbdeda018a3c | 5 | # |
| Jasper Wallace |
2:bbdeda018a3c | 6 | # Copyright (c) 2017, ARM Limited, All Rights Reserved |
| Jasper Wallace |
2:bbdeda018a3c | 7 | # |
| Jasper Wallace |
2:bbdeda018a3c | 8 | # Purpose |
| Jasper Wallace |
2:bbdeda018a3c | 9 | # |
| Jasper Wallace |
2:bbdeda018a3c | 10 | # Called by "git push" after it has checked the remote status, but before anything has been |
| Jasper Wallace |
2:bbdeda018a3c | 11 | # pushed. If this script exits with a non-zero status nothing will be pushed. |
| Jasper Wallace |
2:bbdeda018a3c | 12 | # This script can also be used independently, not using git. |
| Jasper Wallace |
2:bbdeda018a3c | 13 | # |
| Jasper Wallace |
2:bbdeda018a3c | 14 | # This hook is called with the following parameters: |
| Jasper Wallace |
2:bbdeda018a3c | 15 | # |
| Jasper Wallace |
2:bbdeda018a3c | 16 | # $1 -- Name of the remote to which the push is being done |
| Jasper Wallace |
2:bbdeda018a3c | 17 | # $2 -- URL to which the push is being done |
| Jasper Wallace |
2:bbdeda018a3c | 18 | # |
| Jasper Wallace |
2:bbdeda018a3c | 19 | # If pushing without using a named remote those arguments will be equal. |
| Jasper Wallace |
2:bbdeda018a3c | 20 | # |
| Jasper Wallace |
2:bbdeda018a3c | 21 | # Information about the commits which are being pushed is supplied as lines to |
| Jasper Wallace |
2:bbdeda018a3c | 22 | # the standard input in the form: |
| Jasper Wallace |
2:bbdeda018a3c | 23 | # |
| Jasper Wallace |
2:bbdeda018a3c | 24 | # <local ref> <local sha1> <remote ref> <remote sha1> |
| Jasper Wallace |
2:bbdeda018a3c | 25 | # |
| Jasper Wallace |
2:bbdeda018a3c | 26 | |
| Jasper Wallace |
2:bbdeda018a3c | 27 | REMOTE="$1" |
| Jasper Wallace |
2:bbdeda018a3c | 28 | URL="$2" |
| Jasper Wallace |
2:bbdeda018a3c | 29 | |
| Jasper Wallace |
2:bbdeda018a3c | 30 | echo "REMOTE is $REMOTE" |
| Jasper Wallace |
2:bbdeda018a3c | 31 | echo "URL is $URL" |
| Jasper Wallace |
2:bbdeda018a3c | 32 | |
| Jasper Wallace |
2:bbdeda018a3c | 33 | set -eu |
| Jasper Wallace |
2:bbdeda018a3c | 34 | |
| Jasper Wallace |
2:bbdeda018a3c | 35 | run_test() |
| Jasper Wallace |
2:bbdeda018a3c | 36 | { |
| Jasper Wallace |
2:bbdeda018a3c | 37 | TEST=$1 |
| Jasper Wallace |
2:bbdeda018a3c | 38 | echo "running '$TEST'" |
| Jasper Wallace |
2:bbdeda018a3c | 39 | if ! `$TEST > /dev/null 2>&1`; then |
| Jasper Wallace |
2:bbdeda018a3c | 40 | echo "test '$TEST' failed" |
| Jasper Wallace |
2:bbdeda018a3c | 41 | return 1 |
| Jasper Wallace |
2:bbdeda018a3c | 42 | fi |
| Jasper Wallace |
2:bbdeda018a3c | 43 | } |
| Jasper Wallace |
2:bbdeda018a3c | 44 | |
| Jasper Wallace |
2:bbdeda018a3c | 45 | run_test ./tests/scripts/check-doxy-blocks.pl |
| Jasper Wallace |
2:bbdeda018a3c | 46 | run_test ./tests/scripts/check-names.sh |
| Jasper Wallace |
2:bbdeda018a3c | 47 | run_test ./tests/scripts/check-generated-files.sh |
