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

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

7
jt::testrun("$executable ",$workdir);
8 9 10 11 12 13 14

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

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