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

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

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

#now test output
$result=jt::test_grepexists("$workdir/out","it=  1  is completed");
#test orbital moment
$result+=jt::test_grepnumber("$workdir/out","mm       1",".*  1  *([^ ]*)",0.287,0.001);
$result+=jt::test_grepnumber("$workdir/out","qfix",".*x= *([^ ]*)",1.0,0.0001);

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