proc runTest { testFile } {
    global argc argv

    set cmdArgs ""
    if { $argc >= 1 } {
        set cmdArgs [lindex $argv 0]
    }
    if { $::tcl_platform(platform) eq "windows" } {
        set tclsh "tclsh.exe"
    } else {
        set tclsh "tclsh"
    }
    puts "Running test $testFile $cmdArgs ..."
    catch {exec $tclsh $testFile $cmdArgs}
}

runTest bytearray.tcl
runTest checkerBoard.tcl
runTest imgViewer.tcl
runTest modelViewer.tcl
runTest oglmodes.tcl
runTest tcl3dInfo.tcl
runTest toglInCanvas.tcl
runTest vectormanip.tcl
