1
0
mirror of https://github.com/TREX-CoE/qmckl.git synced 2024-08-18 11:21:44 +02:00

Moved the Shermann-Morrison tests out of org-mode (#53)

This commit is contained in:
Anthony Scemama 2021-11-25 15:52:37 +01:00 committed by GitHub
parent dc814dd34e
commit eb5bbdd146
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -220,7 +220,7 @@ const double breakdown = 1e-3;
const double tolerance = 1e-3; const double tolerance = 1e-3;
double res[441]; double res[441];
#include "sm_tests.h" #include "sm_test.h"
assert(Updates1 != NULL); assert(Updates1 != NULL);
assert(Updates_index1 != NULL); assert(Updates_index1 != NULL);

View File

@ -5,6 +5,7 @@
from __future__ import print_function from __future__ import print_function
from glob import glob from glob import glob
import os import os
import subprocess
def main(): def main():
wd = os.getcwd() wd = os.getcwd()
@ -247,9 +248,10 @@ def main():
"" ] "" ]
tmp = "EXTRA_DIST += " tmp = "EXTRA_DIST += "
for dir in glob("share/qmckl/test_data/*"): r = subprocess.check_output("git ls-tree --name-only -r HEAD".split())
for f in glob("%s/*"%(dir)): for line in r.splitlines():
tmp += " \\\n "+f if "share/qmckl/test_data/" in line:
tmp += " \\\n " + line
tmp += "\n" tmp += "\n"
output += tmp.split("\n") output += tmp.split("\n")