test.run1 518 Bytes
Newer Older
1 2 3 4 5 6
#juDFT Testscript
#The following arguments are passed: executable, working directory

jt::copyfile("files/inp.xml",$workdir);
jt::copyfile("files/sym.out",$workdir);
	
7
jt::testrun("$executable ",$workdir);
8 9 10 11

#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.0001);
13 14

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