test.run1 552 Bytes
Newer Older
1 2 3 4 5
#juDFT Testscript

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

6
jt::testrun("$executable ",$workdir);
7 8 9 10

#now test output
$result=jt::test_grepexists("$workdir/out","it=  1  is completed");
$result+=jt::test_grepnumber("$workdir/out","first approx. to ef",".*: *([^ ]*)",0.188,0.001);
11 12
$result+=jt::test_grepnumber("$workdir/out","total energy=",".*= *([^ ]*)",-190662.68039,0.01);
$result+=jt::test_grepnumber("$workdir/out","mm      15    ","mm      15 *([^ ]*)",-0.02,0.01);
13 14 15 16

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