#!/usr/bin/env tclsh

# all.tcl --
#
#       This file contains a top-level script to run all of the imgtools
#       tests.  Execute or source it.
#       For this script to work correctly, the working directory must be 
#       the toplevel dir of the build tree.
#
# Copyright (c) 2016 by Simon Bachmann <simonbachmann@bluewin.ch>
# All rights reserved.
#
# Permission is hereby granted, without written agreement and without
# license or royalty fees, to use, copy, modify, and distribute this
# software and its documentation for any purpose, provided that the
# above copyright notice and the following two paragraphs appear in
# all copies of this software.
# 

package require Tcl 8.6
package require Tk 8.6 ;# Imgtools needs Tk; fail early if no Tk!
package require tcltest 2.3

tcltest::configure {*}$argv
#lappend auto_path [file join [pwd] generic]
tcltest::loadTestedCommands
package require imgtools

#set curDir [pwd]
set testDir [file normalize [file dirname [info script]]]
#cd $testDir
tcltest::workingDirectory $testDir
tcltest::configure -testdir $testDir
tcltest::configure -singleproc 1
#tcltest::configure -outfile [file join $testDir tests.out]
#tcltest::configure -load [file join $testDir utils.tcl]
tcltest::runAllTests

#cd $curDir
