Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
--- /dev/null
+package require Tcl 8.4
+package require tcltest 2
+tcltest::configure -testdir [file dirname [info script]]
+eval [linsert $argv 0 tcltest::configure]
+tcltest::runAllTests
--- /dev/null
+package require tcltest
+namespace import -force tcltest::*
+
+# Load gitk as library for testing from the parent of the test directory
+source [file join [file dirname [testsDirectory]] gitk]
+
+
+set tests {
+ 1 "" gitk 0
+ 2 . gitk 1
+ 3 ./ gitk 1
+ 4 po po/de.po 1
+ 5 ./po po/de.po 1
+ 6 po gitk 0
+ 7 po a/b 0
+ 8 a a/b/c 1
+}
+foreach {id filter name result} $tests {
+ test path_filter-$id "path_filter $filter $name" -body {
+ path_filter $filter $name
+ } -result $result
+}
+unset tests
+
+::tcltest::cleanupTests
+return
\ No newline at end of file