changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > werc / changeset: Add first draft of unit testing runner.

changeset 571: 0bee45ab2630
parent 570: a5e43addda4a
child 572: caacd7316fbf
author: uriel@vm41.cat-v.org
date: Sat, 08 Aug 2009 03:17:28 +0200
files: bin/aux/runtsts.rc
description: Add first draft of unit testing runner.
     1.1--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2+++ b/bin/aux/runtsts.rc	Sat Aug 08 03:17:28 2009 +0200
     1.3@@ -0,0 +1,16 @@
     1.4+#!/usr/bin/env rc
     1.5+
     1.6+tstdom='http://test.cat-v.org'
     1.7+
     1.8+cd sites/tst.cat-v.org
     1.9+
    1.10+tstfiles=`{du -a |awk '/\.tst$/ { print $2 }; {} ' | sed 's/^\.//; s/\.tst$//'}
    1.11+
    1.12+for(f in $tstfiles) {
    1.13+    ifs='
    1.14+' { tsts=`{cat ./$f.tst} }
    1.15+    
    1.16+    for(t in $tsts) {
    1.17+        echo tst $t
    1.18+    }
    1.19+}