Package: golang-github-cznic-zappy / 0.0~git20160305.0.4f5e6ef-3

skip-TestCmp.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
Last-Update: 2016-03-05
Forwarded: not-needed
Author: Dmitry Smirnov <onlyjob@member.fsf.org>
Description: skip test that needs to download sample data.

--- a/all_test.go
+++ b/all_test.go
@@ -290,9 +290,9 @@
 func Benchmark_ZFlat14(b *testing.B) { benchFile(b, 14, false) }
 func Benchmark_ZFlat15(b *testing.B) { benchFile(b, 15, false) }
 func Benchmark_ZFlat16(b *testing.B) { benchFile(b, 16, false) }
 func Benchmark_ZFlat17(b *testing.B) { benchFile(b, 17, false) }
-
+/*
 func TestCmp(t *testing.T) {
 	var ts, tz, to int
 	for i := 0; i <= 17; i++ {
 		filename := filepath.Join("testdata", testFiles[i].filename)
@@ -327,9 +327,9 @@
 		tz += nz
 	}
 	t.Logf("%35s: snappy %7d, zappy %7d, %.3f, orig %7d", "TOTAL", ts, tz, float64(tz)/float64(ts), to)
 }
-
+*/
 func TestBitIndex(t *testing.T) {
 	rng := rand.New(rand.NewSource(42))
 	for n := 16; n <= 1<<16; n <<= 1 {
 		data := make([]byte, n)