test.run1 608 Bytes
Newer Older
Gregor Michalicek's avatar
Gregor Michalicek committed
1 2 3 4 5 6 7 8 9 10 11 12
#juDFT Testscript

jt::copyfile("files/inp.xml",$workdir);

jt::testrun("$executable",$workdir);

#now test output
$result=jt::test_grepexists("$workdir/out","it=  6  is completed");

$result+=jt::test_grepnumber("$workdir/out","first approx. to ef",'.*: *([^ ]*)',0.18481,0.0001);
$result+=jt::test_grepnumber("$workdir/out","bandgap",".*: *([^ ]*)",0.08353,0.0001);
$result+=jt::test_grepnumber("$workdir/out","total energy=",".*= *([^ ]*)",-580.064565,0.0001);
Daniel Wortmann's avatar
Daniel Wortmann committed
13
$result+=jt::test_grepnumber("$workdir/out","distance of charge densitie","6: *([^ ]*)",0.0261,0.0001);
Gregor Michalicek's avatar
Gregor Michalicek committed
14 15

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