# Normal Map Test
set test  "map_wrap1.stp"
set ::result_string {foo[9]=0x9
foo[8]=0x8
foo[7]=0x7
foo[6]=0x6
foo[5]=0x5}

foreach runtime [get_runtime_list] {
    if {$runtime != ""} {
	stap_run2 $srcdir/$subdir/$test --runtime=$runtime
    } else {
	stap_run2 $srcdir/$subdir/$test
    }
}

# Statistics Valued Array Test
set test "map_wrap2.stp"
set ::result_string {foo[5]: count:1  sum:5  avg:5  min:5  max:5
foo[6]: count:1  sum:6  avg:6  min:6  max:6
foo[7]: count:1  sum:7  avg:7  min:7  max:7
foo[8]: count:1  sum:8  avg:8  min:8  max:8
foo[9]: count:1  sum:9  avg:9  min:9  max:9}

foreach runtime [get_runtime_list] {
    if {$runtime != ""} {
	stap_run2 $srcdir/$subdir/$test --runtime=$runtime
    } else {
	stap_run2 $srcdir/$subdir/$test
    }
}
