Index: check-linux-config.sh
===================================================================
--- check-linux-config.sh (revision 0)
+++ check-linux-config.sh (revision 0)
@@ -0,0 +1,28 @@
+#!/bin/sh
+#
+# checks the configuration of Linux host - for now it is 'ulimit' settings
+
+die() {
+ echo "EUT error: host configuration issue:";
+ echo $*;
+ exit 1;
+}
+
+# arg1 - option for ulimit like '-s'
+# arg2 - minimum required value
+# arg3 - name of limitation for error message
+check_limit() {
+ option=$1
+ minimum_val=$2
+ tested_limit=$3
+
+ current_val=`ulimit $option`
+
+ test $current_val != "unlimited" || return 0
+ test $current_val -ge $minimum_val || \
+ die "Need $tested_limit to be at least $minimum_val but not $current_val"
+}
+
+check_limit "-s" "8192" "Stack Size"
+check_limit "-n" "8192" "Open Files"
+check_limit "-m" "2000000" "Max Memory Size"
Index: build.xml
===================================================================
--- build.xml (revision 600582)
+++ build.xml (working copy)
@@ -174,9 +174,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
@@ -235,7 +250,7 @@
refid="test.jre.home.path.id" />