commit 9d814046690140ce89ad0fb0e9f3f396e1a654eb parent eb2977985bd41fce17a70be3c2ffcbf83b46990b Author: uriel@vm41.cat-v.org <unknown> Date: Sat, 8 Aug 2009 03:17:28 +0200 Add first draft of unit testing runner. Diffstat:
A | bin/aux/runtsts.rc | | | 16 | ++++++++++++++++ |
1 file changed, 16 insertions(+), 0 deletions(-)
diff --git a/bin/aux/runtsts.rc b/bin/aux/runtsts.rc @@ -0,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 + } +}