File: disable_network_tests.patch

package info (click to toggle)
lua-luv 1.48.0-2-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,040 kB
  • sloc: ansic: 6,565; makefile: 72; sh: 33
file content (32 lines) | stat: -rw-r--r-- 911 bytes parent folder | download | duplicates (2)
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
Description: disable tests that require network or fail to run
 Some tests require network access (to test dns or tcp connections)
 .
 Debian packges shouldn't rely on any kind of network to be able to build,
 so those tests need to be disabled.
 .
 Additionally some tests fail to pass on 32bit architectures with Lua5.1, until
 this is fixed these tests are disabled.
Author: Jason Pleau <jason@jpleau.ca>
Forwarded: not-needed
--- a/tests/run.lua
+++ b/tests/run.lua
@@ -8,11 +8,18 @@
 
 local req = uv.fs_scandir("tests")
 
+local disabled_tests = {
+  tcp = true,
+  dns = true,
+  conversions = true,
+  udp = true,
+}
+
 while true do
   local name = uv.fs_scandir_next(req)
   if not name then break end
   local match = string.match(name, "^test%-(.*).lua$")
-  if match then
+  if match and disabled_tests[match] == nil then
     local path = "tests/test-" .. match
     tap(match)
     require(path)