test.run2 549 Bytes
Newer Older
1 2 3
#juDFT Testscript
#The following arguments are passed: executable, working directory

4
jt::copyfile("files/inp2","$workdir/inp");
5 6 7 8 9 10 11 12 13 14 15
jt::copyfile("files/enpara",$workdir);
jt::copyfile("files/kpts",$workdir);
	
jt::testrun($executable,$workdir);

#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,"2");