source: tol/tolsh/tests/matprod/runtests.tcl

devel
Last change on this file was 6d7779d, checked in by Jorge Pérez <josp.jorge@…>, 18 years ago

initial import

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@1 be4846ae-f051-483a-831f-b64e7d08527f

  • Property mode set to 100755
File size: 735 bytes
Line 
1#!/usr/bin/env tclsh
2
3if {$argc != 1} {
4  puts "usage: [lindex $argv 0] num"
5} else {
6  set num [lindex $argv 0]
7  if {![string is integer $num] || $num <= 0} {
8    puts "invalid number of configurations '$num': must be positive integer"
9  } else {
10    file delete partime.bbm seqtime.bbm norm.bbm
11    for {set i 1} {$i <= $num} {incr i} {
12      file delete A.bbm B.bbm
13      set sz [expr {$i*100}]
14      set out [exec tolsh -v \
15                   -c "Real M=${sz};K=${sz};N=${sz}" \
16                   partest.tol]
17      puts $out
18      set out [exec tolsh -v \
19                   -c "Real M=${sz};K=${sz};N=${sz}" \
20                   seqtest.tol]
21      puts $out
22      set out [exec tolsh -v check.tol]
23      puts $out
24    }
25  }
26}
Note: See TracBrowser for help on using the repository browser.