Summary: | run-jsc-stress-tests only supports host environments that have make installed | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Mark Hahnenberg <mhahnenberg> | ||||
Component: | JavaScriptCore | Assignee: | Mark Hahnenberg <mhahnenberg> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | fpizlo | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Mark Hahnenberg
2013-11-18 17:13:17 PST
This new backend could be enabled by passing --shell-runner to run-jsc-stress-tests. There would also be a (default) flag for --make-runner. Created attachment 218254 [details]
Patch
Comment on attachment 218254 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=218254&action=review r=me too > Tools/Scripts/jsc-stress-test-helpers/shell-runner.sh:53 > +NUM_PROCS=`sysctl -n hw.activecpu` > +if [ $? -gt 0 ] > +then > + NUM_PROCS=`nproc --all 2>/dev/null` > + if [ $? -gt 0 ] > + then > + NUM_PROCS=1 > + fi > +fi > + > +INDEX_FILE=".index" > +TEST_LIST=".all_tests.txt" > +TEMP_FILE=".temp.txt" > +LOCK_DIR=".lock_dir" > + > +trap "kill -9 0" SIGINT > + > +echo 0 > ${INDEX_FILE} > +ls test_script_* > ${TEST_LIST} > + > +function lock_test_list() { > + until mkdir ${LOCK_DIR} 2> /dev/null; do sleep 0; done > +} > + > +function unlock_test_list() { > + rmdir ${LOCK_DIR} > +} > + > +TOTAL=`wc -l < "${TEST_LIST}" | sed 's/ //g'` > +for PROC in `seq ${NUM_PROCS}` > +do > + ( > + lock_test_list > + while [ -s ${TEST_LIST} ] > + do > + INDEX=`cat ${INDEX_FILE}` > + INDEX=$((INDEX + 1)) > + echo "${INDEX}" > ${INDEX_FILE} > + printf "\r ${INDEX}/${TOTAL}" > + > + TEST=`tail -n 1 ${TEST_LIST}` > + sed '$d' < ${TEST_LIST} > ${TEMP_FILE} > + mv ${TEMP_FILE} ${TEST_LIST} > + unlock_test_list > + > + sh ${TEST} > /dev/null > + > + lock_test_list > + done > + unlock_test_list > + )& > +done > +wait Copyright thingy? Committed r160016: <http://trac.webkit.org/changeset/160016> |