From 700911af68508771d37e573241d92b63863405ba Mon Sep 17 00:00:00 2001 From: Uriel Date: Sat, 8 Aug 2009 03:17:28 +0200 Subject: [PATCH] Add first draft of unit testing runner. --- bin/aux/runtsts.rc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 bin/aux/runtsts.rc diff --git a/bin/aux/runtsts.rc b/bin/aux/runtsts.rc new file mode 100755 index 0000000..df4363d --- /dev/null +++ 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 + } +}