From eb5bbdd146e9378ffd16f6d9ff5d1f7ac422917a Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Thu, 25 Nov 2021 15:52:37 +0100 Subject: [PATCH] Moved the Shermann-Morrison tests out of org-mode (#53) --- org/qmckl_sherman_morrison_woodbury.org | 2 +- tools/build_makefile.py | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/org/qmckl_sherman_morrison_woodbury.org b/org/qmckl_sherman_morrison_woodbury.org index 92faf3a..598ad32 100644 --- a/org/qmckl_sherman_morrison_woodbury.org +++ b/org/qmckl_sherman_morrison_woodbury.org @@ -220,7 +220,7 @@ const double breakdown = 1e-3; const double tolerance = 1e-3; double res[441]; -#include "sm_tests.h" +#include "sm_test.h" assert(Updates1 != NULL); assert(Updates_index1 != NULL); diff --git a/tools/build_makefile.py b/tools/build_makefile.py index 014daca..ac290ad 100755 --- a/tools/build_makefile.py +++ b/tools/build_makefile.py @@ -5,6 +5,7 @@ from __future__ import print_function from glob import glob import os +import subprocess def main(): wd = os.getcwd() @@ -247,9 +248,10 @@ def main(): "" ] tmp = "EXTRA_DIST += " - for dir in glob("share/qmckl/test_data/*"): - for f in glob("%s/*"%(dir)): - tmp += " \\\n "+f + r = subprocess.check_output("git ls-tree --name-only -r HEAD".split()) + for line in r.splitlines(): + if "share/qmckl/test_data/" in line: + tmp += " \\\n " + line tmp += "\n" output += tmp.split("\n")