test.run1 527 Bytes
Newer Older
Daniel Wortmann's avatar
Daniel Wortmann committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#juDFT Testscript

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

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

#now test output
$result=jt::test_fileexists("$workdir/out");
$result+=min(jt::test_fileexists("$workdir/cdn1"),jt::test_fileexists("$workdir/cdn.hdf"));
$result+=jt::test_grepnumber("$workdir/out","total energy=","= *([^ ]*)",-4205.211,0.001);
$result+=jt::test_grepnumber("$workdir/out","distance of charge densitie","1: *([^ ]*)",7.074325,0.0001);

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