Better treatment of ULIMIT_OPTIONS

Previously, the shell variable was set in .autocgalrc, and its value was
recopied as-is in the localtestscript file. Now ULIMIT_OPTIONS can be set
in the "setup" file of a testsuite platform in the reference platforms
directory.
This commit is contained in:
Laurent Rineau 2013-11-07 14:23:03 +01:00
parent 7891bf3c27
commit bf5f124a97
1 changed files with 5 additions and 1 deletions

View File

@ -646,7 +646,11 @@ else
fi fi
cd '${CGAL_BINARY_DIR}/test'; cd '${CGAL_BINARY_DIR}/test';
[ -n "${ULIMIT_OPTIONS}" ] && ulimit ${ULIMIT_OPTIONS}; if [ -n "\${ULIMIT_OPTIONS}" ]; then
eval ulimit \${ULIMIT_OPTIONS};
else
[ -n "${ULIMIT_OPTIONS}" ] && ulimit ${ULIMIT_OPTIONS};
fi
nice ${NICE_OPTIONS} make ${MAKE_OPTS} -k -fmakefile2; nice ${NICE_OPTIONS} make ${MAKE_OPTS} -k -fmakefile2;
EOF EOF
for file in "${CGAL_BINARY_DIR}/localtestscript" "${CGAL_BINARY_DIR}/localtestscript-redo-results-collection"; do for file in "${CGAL_BINARY_DIR}/localtestscript" "${CGAL_BINARY_DIR}/localtestscript-redo-results-collection"; do