test.run1 553 Bytes
Newer Older
Matthias Redies's avatar
Matthias Redies committed
1 2 3 4 5
#juDFT Testscript

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

6
jt::testrun("$executable ",$workdir);
Matthias Redies's avatar
Matthias Redies committed
7 8 9 10 11

#now test output
$result=jt::test_grepexists("$workdir/out","it=  1  is completed");
$result+=jt::test_grepnumber("$workdir/out","new fermi energy",": *([^ ]*)",0.4250,0.0001);
$result+=jt::test_grepnumber("$workdir/out","total energy=","= *([^ ]*)",-3305.007,0.001);
12 13
$result+=jt::test_grepnumber("$workdir/out","distance of charge densitie","1: *([^ ]*)",48.986892,0.001);

Matthias Redies's avatar
Matthias Redies committed
14 15

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