test.run1 525 Bytes
Newer Older
Gregor Michalicek's avatar
Gregor Michalicek committed
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=  1  is completed");
$result+=jt::test_grepnumber("$workdir/out","new fermi",".*: *([^ ]*)",0.211131,0.001);
12
$result+=jt::test_grepnumber("$workdir/out","total energy=",".*= *([^ ]*)",-22006.639735,0.01);
Gregor Michalicek's avatar
Gregor Michalicek committed
13 14

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