#!/bin/bash

for x in basicserver server;do 
    (killall mtest -v;sleep 1;killall mtest -v -9;rm -f tests/simplerun/.db/* tests/simplerun/logs/* tests/$x.log) &
    ck5 make -j install &&
	wait  &&
	script -c "cd tests;ck5 make $x.log" full-$x.log
done

