test.run2 473 Bytes
Newer Older
Daniel Wortmann's avatar
Daniel Wortmann committed
1 2 3 4 5 6 7 8 9 10 11 12 13
#juDFT Testscript
#The following arguments are passed: executable, working directory

jt::copyfile("files/enpara",$workdir);
	
jt::testrun($executable,$workdir);

#now test output
$result=jt::test_grepexists("$workdir/out","it=  1  is completed");
$result+=jt::test_grepnumber("$workdir/out","new fermi",".*: *([^ ]*)",0.211131,0.001);
$result+=jt::test_grepnumber("$workdir/out","total energy=",".*= *([^ ]*)",-22006.6532375,0.01);

jt::stageresult($workdir,$result,"2");