[a065d0]: bin / test-mmtk-selected Maximize Restore History

Download this file

test-mmtk-selected    50 lines (39 with data), 1.3 kB

#!/bin/bash
#
# Run a broad sample of scripts, plans and MMTk harness options, across
# the following dimensions:
#
#    Scripts
#    plans
#    scheduler (Deterministic or native)
#    collectors: 1, 2, 8 and 32
#

BIN=$(dirname $0)

KEYPLANS="GenImmix GenMS"
ALLPLANS="MS SS MC Immix GenMS GenImmix GenCopy Poisoned StickyImmix StickyMS RC GenRC CopyMS" 


runTests() {
  local results=$1
  local plans="$2"
  local scripts="$3"
  local opts="$4"

  for plan in $plans; do
    if [ ! -z "$scripts" ]; then
      for script in $scripts; do
        $BIN/test-mmtk -noclean -nobuild -nostats -results $results -plan $plan -script $script -opts "$opts"
      done
    else
      $BIN/test-mmtk -noclean -nobuild -nostats -results $results -plan $plan -opts "$opts"
    fi
  done
}

$BIN/test-mmtk -buildonly -clean

# Run every script across the most important collectors
runTests allscripts "$KEYPLANS" ""

# Run some scripts across all the collectors
runTests allplans "$ALLPLANS" "ReferenceTypes Alignment CyclicGarbage FixedLive HashCode"

# Exercise the number of collectors
for c in 2 4 16; do
  runTests c$c "$KEYPLANS" "SpreadAlloc16 Lists FixedLive" "collectors=$c"
  runTests d$c "$KEYPLANS" "SpreadAlloc16 Lists FixedLive" "collectors=$c scheduler=DETERMINISTIC"
done

$BIN/test-mmtk -noclean -nobuild -stats -plan ""