Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F56999730
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
917 B
Referenced Files
None
Subscribers
None
View Options
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..a0784a0
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,7 @@
+TCLSH=tclsh
+
+all:
+ @echo "Nothing to build."
+
+test:
+ cd tests && ${TCLSH} all.tcl
diff --git a/tests/all.tcl b/tests/all.tcl
new file mode 100755
index 0000000..05c1829
--- /dev/null
+++ b/tests/all.tcl
@@ -0,0 +1,6 @@
+#!/usr/bin/env tclsh
+
+package require tcltest
+namespace import ::tcltest::*
+
+runAllTests
diff --git a/tests/init.tcl b/tests/init.tcl
new file mode 100644
index 0000000..89b7f23
--- /dev/null
+++ b/tests/init.tcl
@@ -0,0 +1,15 @@
+# Procs to mock
+proc bind {type flags cmdOrMask {procName ""}} {}
+proc unbind {type flags cmdOrMask procname} {}
+
+# Tests config
+set dir [info script]
+if {$dir == ""} {
+ set dir [pwd]
+ append dir "/scripts"
+} {
+ set dir [file dirname [file dirname [file normalize $dir]]]
+}
+
+# Standard procedures
+source $dir/Core.tcl
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Nov 14, 19:22 (1 d, 13 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4249556
Default Alt Text
(917 B)
Attached To
Mode
rVIPER ViperServ scripts
Attached
Detach File
Event Timeline
Log In to Comment