shithub: werc

Download patch

ref: 700911af68508771d37e573241d92b63863405ba
parent: c0425e9b191d9ee9cb991210622cbef8cf699613
author: Uriel <u@berlinblue.org>
date: Fri Aug 7 23:17:28 EDT 2009

Add first draft of unit testing runner.

--- /dev/null
+++ b/bin/aux/runtsts.rc
@@ -1,0 +1,16 @@
+#!/usr/bin/env rc
+
+tstdom='http://test.cat-v.org'
+
+cd sites/tst.cat-v.org
+
+tstfiles=`{du -a |awk '/\.tst$/ { print $2 }; {} ' | sed 's/^\.//; s/\.tst$//'}
+
+for(f in $tstfiles) {
+    ifs='
+' { tsts=`{cat ./$f.tst} }
+    
+    for(t in $tsts) {
+        echo tst $t
+    }
+}
--