Package: dpuser / 4.3+dfsg-1

Fix-test-script.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
From: Ole Streicher <olebole@debian.org>
Date: Wed, 4 Sep 2019 20:34:10 +0200
Subject: Fix test script

 * Remove unused function definitions that have wrong syntax
 * Remove compile tests: compile function is gone.
---
 dpuser/test/test_functions/compare_types.dpuser | 25 -------------------------
 dpuser/test/testsuite.dpuser                    | 13 -------------
 2 files changed, 38 deletions(-)

diff --git a/dpuser/test/test_functions/compare_types.dpuser b/dpuser/test/test_functions/compare_types.dpuser
index 3183b2e..d0c2aae 100644
--- a/dpuser/test/test_functions/compare_types.dpuser
+++ b/dpuser/test/test_functions/compare_types.dpuser
@@ -7,28 +7,3 @@ function comparedbl, a, b, tol {
      comparedbl = 0
   }
 }
-
-function compare_complex , a , b , tol_both_axis {
-  if ((tolerance check of real part) && (tolerane check of imaginary part)) {
-    // check is ok , so returnig 1
-    compare_complex = 1
-  } else {
-    // check is not ok , so returning 0
-    compare_complex = 1
-  }
-}
-
-
-function compare_fits_data , a , b , tol_common {
-  // right now the fits data a does not have complex values
-
-  for (go through each element of the fits array) {
-    if ((a < b+tol) && (a > b-tol)) {
-       // ok
-       comparedbl = 1
-    } else {
-       // failed
-       comparedbl = 0
-    }
-  }
-}
diff --git a/dpuser/test/testsuite.dpuser b/dpuser/test/testsuite.dpuser
index 2a7138e..21ab9fe 100644
--- a/dpuser/test/testsuite.dpuser
+++ b/dpuser/test/testsuite.dpuser
@@ -49,19 +49,6 @@ result += result_unit
 @test_scripts.dpuser
 result += result_unit
 
-//=============================================================
-// testing the compile-command
-@test_compile.dpuser
-result += result_unit
-compile "",/reset
-
-//=============================================================
-// testing real-life scripts (kindly provided by Sascha Trippe)
-// compiling them
-@test_compile/test_scripts_compile.dpuser
-result += result_unit
-compile "",/reset
-
 //
 // ADD NEW UNIT TESTS HERE !
 //