mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-02-01 22:01:12 +00:00
test_cmake_out_of_source: validate that ssl-opt passed
If the ssl-opt test case was skipped, the test was ineffective. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
719a652834
commit
e8133cbecc
|
@ -2983,11 +2983,12 @@ component_test_cmake_out_of_source () {
|
||||||
# "No such file or directory", which would indicate that some required
|
# "No such file or directory", which would indicate that some required
|
||||||
# file is missing (ssl-opt.sh tolerates the absence of some files so
|
# file is missing (ssl-opt.sh tolerates the absence of some files so
|
||||||
# may exit with status 0 but emit errors).
|
# may exit with status 0 but emit errors).
|
||||||
./tests/ssl-opt.sh -f 'Fallback SCSV: beginning of list' 2>ssl-opt.err
|
./tests/ssl-opt.sh -f 'Fallback SCSV: beginning of list' >ssl-opt.out 2>ssl-opt.err
|
||||||
|
grep PASS ssl-opt.out
|
||||||
cat ssl-opt.err >&2
|
cat ssl-opt.err >&2
|
||||||
# If ssl-opt.err is non-empty, record an error and keep going.
|
# If ssl-opt.err is non-empty, record an error and keep going.
|
||||||
[ ! -s ssl-opt.err ]
|
[ ! -s ssl-opt.err ]
|
||||||
rm ssl-opt.err
|
rm ssl-opt.out ssl-opt.err
|
||||||
cd "$MBEDTLS_ROOT_DIR"
|
cd "$MBEDTLS_ROOT_DIR"
|
||||||
rm -rf "$OUT_OF_SOURCE_DIR"
|
rm -rf "$OUT_OF_SOURCE_DIR"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue