summaryrefslogtreecommitdiff
path: root/TestScripts
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-08-31 08:05:48 -0400
committerJeffrey Walton <noloader@gmail.com>2017-08-31 08:05:48 -0400
commit6c35eaf737297eb968f32c0f6afbd5cbb2e78e24 (patch)
treefa3702b4be17d6a9e4f381eef505c206d7bfc540 /TestScripts
parent0d6f3497499bf70dc34cf2774ae71b86bbabc242 (diff)
downloadcryptopp-git-6c35eaf737297eb968f32c0f6afbd5cbb2e78e24.tar.gz
Update test script for AIX
Diffstat (limited to 'TestScripts')
-rwxr-xr-xTestScripts/cryptest.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/TestScripts/cryptest.sh b/TestScripts/cryptest.sh
index 71bfaa58..200e1c7e 100755
--- a/TestScripts/cryptest.sh
+++ b/TestScripts/cryptest.sh
@@ -94,6 +94,7 @@ if [[ ! -z "$GMAKE" ]]; then
fi
THIS_SYSTEM=$(uname -s 2>&1)
+IS_AIX=$(echo -n "$THIS_SYSTEM" | "$GREP" -i -c aix)
IS_DARWIN=$(echo -n "$THIS_SYSTEM" | "$GREP" -i -c darwin)
IS_LINUX=$(echo -n "$THIS_SYSTEM" | "$GREP" -i -c linux)
IS_CYGWIN=$(echo -n "$THIS_SYSTEM" | "$GREP" -i -c cygwin)
@@ -707,6 +708,8 @@ elif [[ "$IS_SOLARIS" -ne "0" ]]; then
echo "IS_SOLARIS: $IS_SOLARIS" | tee -a "$TEST_RESULTS"
elif [[ "$IS_DARWIN" -ne "0" ]]; then
echo "IS_DARWIN: $IS_DARWIN" | tee -a "$TEST_RESULTS"
+elif [[ "$IS_AIX" -ne "0" ]]; then
+ echo "IS_AIX: $IS_AIX" | tee -a "$TEST_RESULTS"
fi
if [[ "$IS_PPC" -ne "0" ]]; then
@@ -816,6 +819,9 @@ elif [[ "$IS_DARWIN" -ne "0" ]]; then
elif [[ "$IS_SOLARIS" -ne "0" ]]; then
CPU_COUNT=$(psrinfo 2>/dev/null | wc -l | "$AWK" '{print $1}')
MEM_SIZE=$(prtconf 2>/dev/null | "$GREP" Memory | "$AWK" '{print $3}')
+elif [[ "$IS_AIX" -ne "0" ]]; then
+ CPU_COUNT=$(bindprocessor -q 2>/dev/null | cut -f 2 -d ':' | wc -w | "$AWK" '{print $1}')
+ MEM_SIZE=$(prtconf -m 2>/dev/null | "$GREP" 'MB' | "$AWK" '{print $3; exit;}')
fi
# Benchmarks expect frequency in GiHz.
@@ -833,6 +839,9 @@ elif [[ "$IS_DARWIN" -ne "0" ]]; then
elif [[ "$IS_SOLARIS" -ne "0" ]]; then
CPU_FREQ=$(psrinfo -v 2>/dev/null | "$GREP" 'MHz' | "$AWK" '{print $6; exit;}')
CPU_FREQ=$("$AWK" "BEGIN {print $CPU_FREQ/1024}")
+elif [[ "$IS_AIX" -ne "0" ]]; then
+ CPU_FREQ=$(prtconf -s 2>/dev/null | "$GREP" 'MHz' | "$AWK" '{print $4; exit;}')
+ CPU_FREQ=$("$AWK" "BEGIN {print $CPU_FREQ/1024}")
fi
# Some ARM devboards cannot use 'make -j N', even with multiple cores and RAM