From 3c9b11c8f2d0146a29c8f1bb45ef20eff382e622 Mon Sep 17 00:00:00 2001
From: Tue Herlau <tuhe@dtu.dk>
Date: Thu, 13 Jul 2023 15:04:49 +0200
Subject: [PATCH] Fixed test suite

---
 tests/_trial_temp.lock |  1 +
 tests/test_python.py   | 18 ++++++++++++++++++
 2 files changed, 19 insertions(+)
 create mode 120000 tests/_trial_temp.lock

diff --git a/tests/_trial_temp.lock b/tests/_trial_temp.lock
new file mode 120000
index 0000000..aa9f026
--- /dev/null
+++ b/tests/_trial_temp.lock
@@ -0,0 +1 @@
+13691
\ No newline at end of file
diff --git a/tests/test_python.py b/tests/test_python.py
index 80f0386..7bcd5ad 100644
--- a/tests/test_python.py
+++ b/tests/test_python.py
@@ -21,6 +21,24 @@ def is_same(dir1, dir2):
     Compare two directory trees content.
     Return False if they differ, True is they are the same.
     """
+    import glob
+    for f1 in glob.glob(dir1+"/**/*.*"):
+        rp = os.path.relpath(f1, dir1)
+        f2 = dir2 + "/"+rp
+
+        with open(f1, 'r') as f:
+            s1 = f.read()
+        with open(f2, 'r') as f:
+            s2 = f.read()
+
+        if s1 != s2:
+            print("*"*50)
+            print(f1)
+            print(s1)
+            print("-"*5)
+            print(s2)
+            return False
+
     compared = dircmp(dir1, dir2)
     if (compared.left_only or compared.right_only or compared.diff_files
         or compared.funny_files):
-- 
GitLab