Add version printing for all.sh env vars
This commit is contained in:
parent
f181e25e5b
commit
7a63eaf2de
1 changed files with 111 additions and 33 deletions
|
@ -17,91 +17,169 @@
|
||||||
# - version of libc, clang, asan and valgrind if installed
|
# - version of libc, clang, asan and valgrind if installed
|
||||||
# - version of gnuTLS and OpenSSL
|
# - version of gnuTLS and OpenSSL
|
||||||
|
|
||||||
echo
|
COUNT=1
|
||||||
echo "1) Operating system and architecture:"
|
|
||||||
uname -a
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
if `hash armcc 2>/dev/null`; then
|
echo "$COUNT) Operating system and architecture:"
|
||||||
echo "2) armcc:"
|
uname -a
|
||||||
|
COUNT=$((COUNT+1))
|
||||||
|
|
||||||
|
echo
|
||||||
|
if `hash armcc > /dev/null 2>&1`; then
|
||||||
|
echo "$COUNT) armcc:"
|
||||||
armcc --vsn | head -n 2
|
armcc --vsn | head -n 2
|
||||||
else
|
else
|
||||||
echo "2) armcc not found!"
|
echo "$COUNT) armcc not found!"
|
||||||
fi
|
fi
|
||||||
|
COUNT=$((COUNT+1))
|
||||||
|
|
||||||
echo
|
echo
|
||||||
if `hash arm-none-eabi-gcc 2>/dev/null`; then
|
if `hash arm-none-eabi-gcc > /dev/null 2>&1`; then
|
||||||
echo "3) gcc-arm:"
|
echo "$COUNT) gcc-arm:"
|
||||||
arm-none-eabi-gcc --version | head -n 1
|
arm-none-eabi-gcc --version | head -n 1
|
||||||
else
|
else
|
||||||
echo "3) gcc-arm not found!"
|
echo "$COUNT) gcc-arm not found!"
|
||||||
fi
|
fi
|
||||||
|
COUNT=$((COUNT+1))
|
||||||
|
|
||||||
echo
|
echo
|
||||||
if `hash gcc 2>/dev/null`; then
|
if `hash gcc > /dev/null 2>&1`; then
|
||||||
echo "4) gcc:"
|
echo "$COUNT) gcc:"
|
||||||
gcc --version | head -n 1
|
gcc --version | head -n 1
|
||||||
else
|
else
|
||||||
echo "4) gcc not found!"
|
echo "$COUNT) gcc not found!"
|
||||||
fi
|
fi
|
||||||
|
COUNT=$((COUNT+1))
|
||||||
|
|
||||||
echo
|
echo
|
||||||
if `hash clang 2>/dev/null`; then
|
if `hash clang > /dev/null 2>&1`; then
|
||||||
echo "5) clang:"
|
echo "$COUNT) clang:"
|
||||||
clang --version | head -n 2
|
clang --version | head -n 2
|
||||||
clang -v 2>&1 | grep Selected
|
clang -v 2>&1 | grep Selected
|
||||||
else
|
else
|
||||||
echo "5) clang not found!"
|
echo "$COUNT) clang not found!"
|
||||||
fi
|
fi
|
||||||
|
COUNT=$((COUNT+1))
|
||||||
|
|
||||||
echo
|
echo
|
||||||
if `hash ldd 2>/dev/null`; then
|
if `hash ldd > /dev/null 2>&1`; then
|
||||||
echo "6) libc:"
|
echo "$COUNT) libc:"
|
||||||
ldd --version | head -n 1
|
ldd --version | head -n 1
|
||||||
else
|
else
|
||||||
echo "6) No ldd present: can't determine libc version!"
|
echo "$COUNT) No ldd present: can't determine libc version!"
|
||||||
fi
|
fi
|
||||||
|
COUNT=$((COUNT+1))
|
||||||
|
|
||||||
echo
|
echo
|
||||||
if `hash valgrind 2>/dev/null`; then
|
if `hash valgrind > /dev/null 2>&1`; then
|
||||||
echo "7) valgrind:"
|
echo "$COUNT) valgrind:"
|
||||||
valgrind --version
|
valgrind --version
|
||||||
else
|
else
|
||||||
echo "7) valgrind not found!"
|
echo "$COUNT) valgrind not found!"
|
||||||
fi
|
fi
|
||||||
|
COUNT=$((COUNT+1))
|
||||||
|
|
||||||
echo
|
echo
|
||||||
if `hash openssl 2>/dev/null`; then
|
if `hash openssl > /dev/null 2>&1`; then
|
||||||
echo "8) openssl:"
|
echo "$COUNT) openssl:"
|
||||||
openssl version
|
openssl version
|
||||||
else
|
else
|
||||||
echo "8) openssl not found!"
|
echo "$COUNT) openssl not found!"
|
||||||
|
fi
|
||||||
|
COUNT=$((COUNT+1))
|
||||||
|
|
||||||
|
if [ -n "${OPENSSL+set}" ]; then
|
||||||
|
echo
|
||||||
|
if `hash "$OPENSSL" > /dev/null 2>&1`; then
|
||||||
|
echo "$COUNT) $OPENSSL at environment variable 'OPENSSL':"
|
||||||
|
$OPENSSL version
|
||||||
|
else
|
||||||
|
echo "$COUNT) $OPENSSL at environment variable 'OPENSSL' not found!"
|
||||||
|
fi
|
||||||
|
COUNT=$((COUNT+1))
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "${OPENSSL_LEGACY+set}" ]; then
|
||||||
|
echo
|
||||||
|
if `hash "$OPENSSL_LEGACY" > /dev/null 2>&1`; then
|
||||||
|
echo "$COUNT) $OPENSSL_LEGACY at environment variable 'OPENSSL_LEGACY':"
|
||||||
|
$OPENSSL_LEGACY version
|
||||||
|
else
|
||||||
|
echo "$COUNT) $OPENSSL_LEGACY at environment variable 'OPENSSL_LEGACY' not found!"
|
||||||
|
fi
|
||||||
|
COUNT=$((COUNT+1))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
if `hash gnutls-cli 2>/dev/null`; then
|
if `hash gnutls-cli > /dev/null 2>&1`; then
|
||||||
echo "9) gnuTLS client:"
|
echo "$COUNT) gnuTLS client:"
|
||||||
gnutls-cli --version | head -n 1
|
gnutls-cli --version | head -n 1
|
||||||
else
|
else
|
||||||
echo "9) gnuTLS client not found!"
|
echo "$COUNT) gnuTLS client not found!"
|
||||||
fi
|
fi
|
||||||
|
COUNT=$((COUNT+1))
|
||||||
|
|
||||||
echo
|
echo
|
||||||
if `hash gnutls-serv 2>/dev/null`; then
|
if `hash gnutls-serv > /dev/null 2>&1`; then
|
||||||
echo "10) gnuTLS server:"
|
echo "$COUNT) gnuTLS server:"
|
||||||
gnutls-serv --version | head -n 1
|
gnutls-serv --version | head -n 1
|
||||||
else
|
else
|
||||||
echo "10) gnuTLS server not found!"
|
echo "$COUNT) gnuTLS server not found!"
|
||||||
|
fi
|
||||||
|
COUNT=$((COUNT+1))
|
||||||
|
|
||||||
|
if [ -n "${GNUTLS_CLI+set}" ]; then
|
||||||
|
echo
|
||||||
|
if `hash "$GNUTLS_CLI" > /dev/null 2>&1`; then
|
||||||
|
echo "$COUNT) $GNUTLS_CLI at environment variable 'GNUTLS_CLI':"
|
||||||
|
$GNUTLS_CLI --version | head -n 1
|
||||||
|
else
|
||||||
|
echo "$COUNT) $GNUTLS_CLI at environment variable 'GNUTLS_CLI' not found!"
|
||||||
|
fi
|
||||||
|
COUNT=$((COUNT+1))
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "${GNUTLS_SERV+set}" ]; then
|
||||||
|
echo
|
||||||
|
if `hash "$GNUTLS_SERV" > /dev/null 2>&1`; then
|
||||||
|
echo "$COUNT) $GNUTLS_SERV at environment variable 'GNUTLS_SERV':"
|
||||||
|
$GNUTLS_SERV --version | head -n 1
|
||||||
|
else
|
||||||
|
echo "$COUNT) $GNUTLS_SERV at environment variable 'GNUTLS_SERV' not found!"
|
||||||
|
fi
|
||||||
|
COUNT=$((COUNT+1))
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "${GNUTLS_LEGACY_CLI+set}" ]; then
|
||||||
|
echo
|
||||||
|
if `hash "$GNUTLS_LEGACY_CLI" > /dev/null 2>&1`; then
|
||||||
|
echo "$COUNT) $GNUTLS_LEGACY_CLI at environment variable 'GNUTLS_LEGACY_CLI':"
|
||||||
|
$GNUTLS_LEGACY_CLI --version | head -n 1
|
||||||
|
else
|
||||||
|
echo "$COUNT) $GNUTLS_LEGACY_CLI at environment variable 'GNUTLS_LEGACY_CLI' not found!"
|
||||||
|
fi
|
||||||
|
COUNT=$((COUNT+1))
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "${GNUTLS_LEGACY_SERV+set}" ]; then
|
||||||
|
echo
|
||||||
|
if `hash "$GNUTLS_LEGACY_SERV" > /dev/null 2>&1`; then
|
||||||
|
echo "$COUNT) $GNUTLS_LEGACY_SERV at environment variable 'GNUTLS_LEGACY_SERV':"
|
||||||
|
$GNUTLS_LEGACY_SERV --version | head -n 1
|
||||||
|
else
|
||||||
|
echo "$COUNT) $GNUTLS_LEGACY_SERV at environment variable 'GNUTLS_LEGACY_SERV' not found!"
|
||||||
|
fi
|
||||||
|
COUNT=$((COUNT+1))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
if `hash dpkg 2>/dev/null`; then
|
if `hash dpkg > /dev/null 2>&1`; then
|
||||||
echo "11) asan:"
|
echo "$COUNT) asan:"
|
||||||
dpkg -s libasan2 2> /dev/null | grep -i version
|
dpkg -s libasan2 2> /dev/null | grep -i version
|
||||||
dpkg -s libasan1 2> /dev/null | grep -i version
|
dpkg -s libasan1 2> /dev/null | grep -i version
|
||||||
dpkg -s libasan0 2> /dev/null | grep -i version
|
dpkg -s libasan0 2> /dev/null | grep -i version
|
||||||
else
|
else
|
||||||
echo "11) No dpkg present: can't determine asan version!"
|
echo "$COUNT) No dpkg present: can't determine asan version!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
|
Loading…
Reference in a new issue