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

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

#now test output
11 12
$result=jt::test_grepexists("$workdir/out","it=  1  is completed");
$result+=jt::test_grepnumber("$workdir/out","new fermi",".*: *([^ ]*)",0.211131,0.001);
13
$result+=jt::test_grepnumber("$workdir/out","total energy=",".*= *([^ ]*)",-22006.639735,0.01);
14 15

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