mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-30 17:10:59 +00:00
Fix bashisms in test scripts
This commit is contained in:
parent
b1c1251a41
commit
9afdc83d77
|
@ -945,7 +945,7 @@ run_client() {
|
||||||
CLIENT_CMD="$OPENSSL_CMD s_client $O_CLIENT_ARGS -cipher $2"
|
CLIENT_CMD="$OPENSSL_CMD s_client $O_CLIENT_ARGS -cipher $2"
|
||||||
log "$CLIENT_CMD"
|
log "$CLIENT_CMD"
|
||||||
echo "$CLIENT_CMD" > $CLI_OUT
|
echo "$CLIENT_CMD" > $CLI_OUT
|
||||||
( echo -e 'GET HTTP/1.0'; echo; ) | $CLIENT_CMD >> $CLI_OUT 2>&1 &
|
printf 'GET HTTP/1.0\r\n\r\n' | $CLIENT_CMD >> $CLI_OUT 2>&1 &
|
||||||
wait_client_done
|
wait_client_done
|
||||||
|
|
||||||
if [ $EXIT -eq 0 ]; then
|
if [ $EXIT -eq 0 ]; then
|
||||||
|
@ -969,7 +969,7 @@ run_client() {
|
||||||
CLIENT_CMD="$GNUTLS_CLI $G_CLIENT_ARGS --priority $G_PRIO_MODE:$2 $G_HOST"
|
CLIENT_CMD="$GNUTLS_CLI $G_CLIENT_ARGS --priority $G_PRIO_MODE:$2 $G_HOST"
|
||||||
log "$CLIENT_CMD"
|
log "$CLIENT_CMD"
|
||||||
echo "$CLIENT_CMD" > $CLI_OUT
|
echo "$CLIENT_CMD" > $CLI_OUT
|
||||||
( echo -e 'GET HTTP/1.0'; echo; ) | $CLIENT_CMD >> $CLI_OUT 2>&1 &
|
printf 'GET HTTP/1.0\r\n\r\n' | $CLIENT_CMD >> $CLI_OUT 2>&1 &
|
||||||
wait_client_done
|
wait_client_done
|
||||||
|
|
||||||
if [ $EXIT -eq 0 ]; then
|
if [ $EXIT -eq 0 ]; then
|
||||||
|
|
|
@ -270,7 +270,7 @@ CC=clang cmake -D CMAKE_BUILD_TYPE:String=Release .
|
||||||
make
|
make
|
||||||
|
|
||||||
msg "test: main suites valgrind (Release)"
|
msg "test: main suites valgrind (Release)"
|
||||||
make test
|
make memcheck
|
||||||
|
|
||||||
# Optional part(s)
|
# Optional part(s)
|
||||||
# Currently broken, programs don't seem to receive signals
|
# Currently broken, programs don't seem to receive signals
|
||||||
|
|
|
@ -11,7 +11,7 @@ FAIL=0
|
||||||
|
|
||||||
printf "Exported symbols declared in header: "
|
printf "Exported symbols declared in header: "
|
||||||
UNDECLARED=$( diff exported-symbols identifiers | sed -n -e 's/^< //p' )
|
UNDECLARED=$( diff exported-symbols identifiers | sed -n -e 's/^< //p' )
|
||||||
if [ "x$UNDECLARED" == "x" ]; then
|
if [ "x$UNDECLARED" = "x" ]; then
|
||||||
echo "PASS"
|
echo "PASS"
|
||||||
else
|
else
|
||||||
echo "FAIL"
|
echo "FAIL"
|
||||||
|
@ -58,7 +58,7 @@ sed -n 's/MBED..._[A-Z0-9_]*/\'"$NL"'&\'"$NL"/gp \
|
||||||
TYPOS=$( diff _caps _MBEDTLS_XXX | sed -n 's/^> //p' \
|
TYPOS=$( diff _caps _MBEDTLS_XXX | sed -n 's/^> //p' \
|
||||||
| egrep -v 'XXX|__|_$|^MBEDTLS_CONFIG_FILE$' || true )
|
| egrep -v 'XXX|__|_$|^MBEDTLS_CONFIG_FILE$' || true )
|
||||||
rm _MBEDTLS_XXX _caps
|
rm _MBEDTLS_XXX _caps
|
||||||
if [ "x$TYPOS" == "x" ]; then
|
if [ "x$TYPOS" = "x" ]; then
|
||||||
echo "PASS"
|
echo "PASS"
|
||||||
else
|
else
|
||||||
echo "FAIL"
|
echo "FAIL"
|
||||||
|
|
|
@ -12,10 +12,10 @@ if grep -i cmake Makefile >/dev/null; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cp include/mbedtls/config.h{,.bak}
|
cp include/mbedtls/config.h include/mbedtls/config.h.bak
|
||||||
scripts/config.pl full
|
scripts/config.pl full
|
||||||
CFLAGS=-fno-asynchronous-unwind-tables make clean lib >/dev/null 2>&1
|
CFLAGS=-fno-asynchronous-unwind-tables make clean lib >/dev/null 2>&1
|
||||||
mv include/mbedtls/config.h{.bak,}
|
mv include/mbedtls/config.h.bak include/mbedtls/config.h
|
||||||
nm -gUj library/libmbedtls.a 2>/dev/null | sed -n -e 's/^_//p' | sort > exported-symbols
|
nm -gUj library/libmbedtls.a 2>/dev/null | sed -n -e 's/^_//p' | sort > exported-symbols
|
||||||
make clean
|
make clean
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue