test.run1 732 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
#juDFT Testscript
#The following arguments are passed: executable, working directory

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

#now test output
$result=jt::test_grepexists("$workdir/out","it=  9  is completed");
$result+=jt::test_grepnumber("$workdir/out","new fermi energy",".*: *([^ ]*)",0.263,0.001);
12 13 14
$result+=jt::test_grepnumber("$workdir/out","total energy=",".*= *([^ ]*)",-3192.0110,0.001);
$result+=jt::test_grepnumber("$workdir/out","distance of charge densities for it= *9",": *([^ ]*)",0.361,0.01);
$result+=jt::test_grepnumber("$workdir/out","mm       1",".*mm       1 *([^ ]*)",1.83,0.03);
15 16

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