File: slsh-path-unit-tests.patch

package info (click to toggle)
slgsl 0.10.0~pre.7-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,408 kB
  • sloc: ansic: 9,644; sh: 3,149; makefile: 258
file content (71 lines) | stat: -rw-r--r-- 2,477 bytes parent folder | download | duplicates (3)
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
69
70
71
Description: Do not prepend the current path to the S-Lang load path
 This is necessary for running the tests via autopkgtest, Otherwise,
 the module in the unpackaged directory will be used, not the one in
 the package installed in the system.
 .
 This is a Debian specific change, so we will not bother forwarding
 this patch upstream.
Author: Rafael Laboissière <rafael@debian.org>
Forwarded: not-needed
Last-Update: 2021-09-27

--- slgsl-0.10.0~pre.4.orig/src/tests/test_err.sl
+++ slgsl-0.10.0~pre.4/src/tests/test_err.sl
@@ -1,5 +1,5 @@
-prepend_to_slang_load_path (".");
-set_import_module_path (".");
+% prepend_to_slang_load_path (".");
+% set_import_module_path (".");
 
 require ("gslsf");
 
--- slgsl-0.10.0~pre.4.orig/src/tests/test_fft.sl
+++ slgsl-0.10.0~pre.4/src/tests/test_fft.sl
@@ -1,5 +1,5 @@
-prepend_to_slang_load_path (".");
-set_import_module_path (".:" + get_import_module_path ());
+% prepend_to_slang_load_path (".");
+% set_import_module_path (".:" + get_import_module_path ());
 
 require ("gslfft");
 require ("gslrand");
--- slgsl-0.10.0~pre.4.orig/src/tests/test_import.sl
+++ slgsl-0.10.0~pre.4/src/tests/test_import.sl
@@ -1,5 +1,5 @@
-prepend_to_slang_load_path (".");
-set_import_module_path (".:" + get_import_module_path ());
+% prepend_to_slang_load_path (".");
+% set_import_module_path (".:" + get_import_module_path ());
 
 private define test_ns (module, ns)
 {
--- slgsl-0.10.0~pre.4.orig/src/tests/test_integ.sl
+++ slgsl-0.10.0~pre.4/src/tests/test_integ.sl
@@ -1,5 +1,5 @@
-prepend_to_slang_load_path (".");
-set_import_module_path (path_dirname(__FILE__) + "/.." + ":" + get_import_module_path());
+% prepend_to_slang_load_path (".");
+% set_import_module_path (path_dirname(__FILE__) + "/.." + ":" + get_import_module_path());
 
 require ("gslinteg");
 
--- slgsl-0.10.0~pre.4.orig/src/tests/test_interp.sl
+++ slgsl-0.10.0~pre.4/src/tests/test_interp.sl
@@ -1,5 +1,5 @@
-prepend_to_slang_load_path (".");
-set_import_module_path (".:" + get_import_module_path ());
+% prepend_to_slang_load_path (".");
+% set_import_module_path (".:" + get_import_module_path ());
 
 require ("gslinterp");
 
--- slgsl-0.10.0~pre.4.orig/src/tests/test_rand.sl
+++ slgsl-0.10.0~pre.4/src/tests/test_rand.sl
@@ -1,5 +1,5 @@
-prepend_to_slang_load_path (".");
-set_import_module_path (".:" + get_import_module_path ());
+% prepend_to_slang_load_path (".");
+% set_import_module_path (".:" + get_import_module_path ());
 
 require ("gslrand");