test.run2 803 Bytes
Newer Older
Daniel Wortmann's avatar
Daniel Wortmann committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#juDFT Testscript
#The following arguments are passed: executable, working directory

jt::copyfile("files/inp",$workdir);
jt::copyfile("$workdir/cdn1","$workdir/rhomat_inp");
jt::copyfile("files/kpts",$workdir);
jt::copyfile("files/sym.out",$workdir);
	
jt::testrun($executable,$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);
$result+=jt::test_grepnumber("$workdir/out","total energy=",".*= *([^ ]*)",-3191.9717,0.001);
$result+=jt::test_grepnumber("$workdir/out","distance of charge densities for it= *9",": *([^ ]*)",0.6,0.1);
$result+=jt::test_grepnumber("$workdir/out","mm       1",".*mm       1 *([^ ]*)",1.75,0.03);

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