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
Diff: tests/scripts/check-generated-files.sh
- Revision:
- 0:cdf462088d13
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/scripts/check-generated-files.sh Thu Jan 05 00:18:44 2017 +0000 @@ -0,0 +1,24 @@ +#!/bin/sh + +# check if generated files are up-to-date + +set -eu + +if [ -d library -a -d include -a -d tests ]; then :; else + echo "Must be run from mbed TLS root" >&2 + exit 1 +fi + +check() +{ + FILE=$1 + SCRIPT=$2 + + cp $FILE $FILE.bak + $SCRIPT + diff $FILE $FILE.bak + mv $FILE.bak $FILE +} + +check library/error.c scripts/generate_errors.pl +check library/version_features.c scripts/generate_features.pl