test.run1 549 Bytes
Newer Older
Daniel Wortmann's avatar
Daniel Wortmann committed
1
#juDFT Testscript
Gregor Michalicek's avatar
Gregor Michalicek committed
2
#The following arguments are passed: executable, working directory
Daniel Wortmann's avatar
Daniel Wortmann committed
3 4 5

jt::copyfile("files/inp",$workdir);
jt::copyfile("files/sym.out",$workdir);
Gregor Michalicek's avatar
Gregor Michalicek committed
6 7
jt::copyfile("files/enpara",$workdir);
	
Daniel Wortmann's avatar
Daniel Wortmann committed
8 9 10
jt::testrun($executable,$workdir);

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

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