rroonga 1.0.5 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/NEWS.ja.rdoc +12 -0
- data/NEWS.rdoc +12 -0
- data/README.ja.rdoc +3 -2
- data/README.rdoc +2 -1
- data/Rakefile +2 -1
- data/ext/groonga/extconf.rb +6 -6
- data/ext/groonga/rb-grn-accessor.c +1 -1
- data/ext/groonga/rb-grn-array.c +1 -1
- data/ext/groonga/rb-grn-column.c +4 -4
- data/ext/groonga/rb-grn-context.c +3 -3
- data/ext/groonga/rb-grn-database.c +3 -3
- data/ext/groonga/rb-grn-expression.c +3 -3
- data/ext/groonga/rb-grn-hash.c +2 -2
- data/ext/groonga/rb-grn-index-column.c +2 -2
- data/ext/groonga/rb-grn-logger.c +2 -2
- data/ext/groonga/rb-grn-object.c +14 -14
- data/ext/groonga/rb-grn-patricia-trie.c +5 -5
- data/ext/groonga/rb-grn-procedure.c +1 -1
- data/ext/groonga/rb-grn-query.c +3 -3
- data/ext/groonga/rb-grn-snippet.c +3 -3
- data/ext/groonga/rb-grn-table-cursor.c +1 -1
- data/ext/groonga/rb-grn-table-key-support.c +5 -5
- data/ext/groonga/rb-grn-table.c +36 -40
- data/ext/groonga/rb-grn-type.c +1 -1
- data/ext/groonga/rb-grn-utils.c +16 -16
- data/ext/groonga/rb-grn-variable.c +1 -1
- data/ext/groonga/rb-grn-view-accessor.c +1 -1
- data/ext/groonga/rb-grn-view.c +1 -1
- data/ext/groonga/rb-grn.h +12 -16
- data/ext/groonga/rb-groonga.c +2 -2
- data/extconf.rb +9 -3
- data/html/index.html +7 -3
- data/test-unit/COPYING +56 -0
- data/test-unit/GPL +340 -0
- data/test-unit/PSFL +271 -0
- data/test-unit/Rakefile +18 -5
- data/test-unit/html/bar.svg +153 -0
- data/test-unit/html/developer.svg +469 -0
- data/test-unit/html/favicon.ico +0 -0
- data/test-unit/html/favicon.svg +82 -0
- data/test-unit/html/heading-mark.svg +393 -0
- data/test-unit/html/index.html +235 -13
- data/test-unit/html/index.html.ja +258 -15
- data/test-unit/html/install.svg +636 -0
- data/test-unit/html/logo.svg +483 -0
- data/test-unit/html/test-unit.css +339 -0
- data/test-unit/html/tutorial.svg +559 -0
- data/test-unit/lib/test/unit/assertions.rb +115 -11
- data/test-unit/lib/test/unit/autorunner.rb +5 -2
- data/test-unit/lib/test/unit/collector/load.rb +1 -1
- data/test-unit/lib/test/unit/color-scheme.rb +6 -2
- data/test-unit/lib/test/unit/diff.rb +17 -1
- data/test-unit/lib/test/unit/testcase.rb +7 -0
- data/test-unit/lib/test/unit/testresult.rb +34 -2
- data/test-unit/lib/test/unit/ui/console/testrunner.rb +9 -45
- data/test-unit/lib/test/unit/ui/tap/testrunner.rb +2 -12
- data/test-unit/lib/test/unit/ui/testrunner.rb +25 -0
- data/test-unit/lib/test/unit/util/backtracefilter.rb +1 -0
- data/test-unit/lib/test/unit/util/output.rb +31 -0
- data/test-unit/lib/test/unit/version.rb +1 -1
- data/test-unit/lib/test/unit.rb +6 -1
- data/test-unit/test/test-color-scheme.rb +4 -2
- data/test-unit/test/test_assertions.rb +51 -5
- data/test-unit/test/ui/test_tap.rb +33 -0
- data/test-unit/test/util/test-output.rb +11 -0
- data/test-unit-notify/Rakefile +47 -0
- data/test-unit-notify/lib/test/unit/notify.rb +104 -0
- metadata +40 -9
- data/ext/groonga/mkmf.log +0 -99
- data/test-unit/html/classic.html +0 -15
@@ -1,6 +1,8 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
#
|
1
3
|
# Author:: Nathaniel Talbott.
|
2
4
|
# Copyright:: Copyright (c) 2000-2002 Nathaniel Talbott. All rights reserved.
|
3
|
-
# Copyright (c) 2009 Kouhei Sutou.
|
5
|
+
# Copyright (c) 2009-2010 Kouhei Sutou. All rights reserved.
|
4
6
|
# License:: Ruby license.
|
5
7
|
|
6
8
|
require 'test/unit'
|
@@ -311,6 +313,21 @@ EOM
|
|
311
313
|
end
|
312
314
|
end
|
313
315
|
|
316
|
+
def test_assert_equal_with_different_encoding
|
317
|
+
utf8_string = "こんにちは"
|
318
|
+
unless utf8_string.respond_to?(:force_encoding)
|
319
|
+
omit("encoding test is for Ruby >= 1.9")
|
320
|
+
end
|
321
|
+
ascii_8bit_string = utf8_string.dup.force_encoding("ascii-8bit")
|
322
|
+
message = <<-EOM.chomp
|
323
|
+
<"こんにちは">("UTF-8") expected but was
|
324
|
+
<#{ascii_8bit_string.inspect}>("ASCII-8BIT").
|
325
|
+
EOM
|
326
|
+
check_fails(message) do
|
327
|
+
assert_equal(utf8_string, ascii_8bit_string)
|
328
|
+
end
|
329
|
+
end
|
330
|
+
|
314
331
|
def test_assert_raise_success
|
315
332
|
return_value = nil
|
316
333
|
check_nothing_fails(true) do
|
@@ -811,13 +828,19 @@ EOM
|
|
811
828
|
end
|
812
829
|
assert_in_delta(0.1, float_thing, 0.1)
|
813
830
|
}
|
814
|
-
check_fails("message.\n
|
831
|
+
check_fails("message.\n" +
|
832
|
+
"<0.5> expected but was\n" +
|
833
|
+
"<0.4> (tolerance <0.05>).\n" +
|
834
|
+
"\n" +
|
835
|
+
"Relation:\n" +
|
836
|
+
"<<0.4> < <0.5>-<0.05>(0.45) <= <0.5>+<0.05>(0.55)>") {
|
815
837
|
assert_in_delta(0.5, 0.4, 0.05, "message")
|
816
838
|
}
|
817
839
|
object = Object.new
|
840
|
+
inspected_object = AssertionMessage.convert(object)
|
818
841
|
check_fails("The arguments must respond to to_f; " +
|
819
842
|
"the first float did not.\n" +
|
820
|
-
"<#{
|
843
|
+
"<#{inspected_object}>.respond_to?(:to_f) expected\n" +
|
821
844
|
"(Class: <Object>)") {
|
822
845
|
assert_in_delta(object, 0.4, 0.1)
|
823
846
|
}
|
@@ -1121,17 +1144,40 @@ EOM
|
|
1121
1144
|
assert_alias_method(object, :other, :original_method)
|
1122
1145
|
end
|
1123
1146
|
|
1124
|
-
|
1147
|
+
inspected_object = AssertionMessage.convert(object)
|
1148
|
+
check_fails("<#{inspected_object}>.nonexistent doesn't exist\n" +
|
1125
1149
|
"(Class: <Object>)") do
|
1126
1150
|
assert_alias_method(object, :nonexistent, :original_method)
|
1127
1151
|
end
|
1128
1152
|
|
1129
|
-
check_fails("<#{
|
1153
|
+
check_fails("<#{inspected_object}>.nonexistent doesn't exist\n" +
|
1130
1154
|
"(Class: <Object>)") do
|
1131
1155
|
assert_alias_method(object, :alias_method, :nonexistent)
|
1132
1156
|
end
|
1133
1157
|
end
|
1134
1158
|
|
1159
|
+
def test_assert_path_exist
|
1160
|
+
check_nothing_fails do
|
1161
|
+
assert_path_exist(__FILE__)
|
1162
|
+
end
|
1163
|
+
|
1164
|
+
nonexistent_file = __FILE__ + ".nonexistent"
|
1165
|
+
check_fails("<#{nonexistent_file.inspect}> expected to exist") do
|
1166
|
+
assert_path_exist(nonexistent_file)
|
1167
|
+
end
|
1168
|
+
end
|
1169
|
+
|
1170
|
+
def test_assert_path_not_exist
|
1171
|
+
nonexistent_file = __FILE__ + ".nonexistent"
|
1172
|
+
check_nothing_fails do
|
1173
|
+
assert_path_not_exist(nonexistent_file)
|
1174
|
+
end
|
1175
|
+
|
1176
|
+
check_fails("<#{__FILE__.inspect}> expected to not exist") do
|
1177
|
+
assert_path_not_exist(__FILE__)
|
1178
|
+
end
|
1179
|
+
end
|
1180
|
+
|
1135
1181
|
private
|
1136
1182
|
def add_failure(message, location=caller, options=nil)
|
1137
1183
|
unless @catch_assertions
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'stringio'
|
2
|
+
require 'test/unit/ui/tap/testrunner'
|
3
|
+
|
4
|
+
class TestTap < Test::Unit::TestCase
|
5
|
+
def test_run
|
6
|
+
fail_line = nil
|
7
|
+
test_case = Class.new(Test::Unit::TestCase) do
|
8
|
+
def test_success
|
9
|
+
assert_equal(3, 1 + 2)
|
10
|
+
end
|
11
|
+
|
12
|
+
def test_fail; assert_equal(3, 1 - 2); end; fail_line = __LINE__
|
13
|
+
end
|
14
|
+
output = StringIO.new
|
15
|
+
runner = Test::Unit::UI::Tap::TestRunner.new(test_case.suite,
|
16
|
+
:output => output)
|
17
|
+
result = runner.start; start_line = __LINE__
|
18
|
+
assert_equal(<<-EOR, output.string.gsub(/[\d\.]+ seconds/, "0.001 seconds"))
|
19
|
+
1..2
|
20
|
+
not ok 1 - test_fail(): <3> expected but was
|
21
|
+
# Failure:
|
22
|
+
# test_fail()
|
23
|
+
# [#{__FILE__}:#{fail_line}:in `test_fail'
|
24
|
+
# #{__FILE__}:#{start_line}:in `test_run']:
|
25
|
+
# <3> expected but was
|
26
|
+
# <-1>.
|
27
|
+
ok 2 - test_success()
|
28
|
+
# Finished in 0.001 seconds.
|
29
|
+
# 2 tests, 2 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
|
30
|
+
EOR
|
31
|
+
assert_true(result.passed?)
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# -*- ruby -*-
|
2
|
+
|
3
|
+
require 'pathname'
|
4
|
+
|
5
|
+
base_dir = Pathname(__FILE__).dirname.expand_path
|
6
|
+
test_unit_dir = (base_dir.parent + "test-unit").expand_path
|
7
|
+
test_unit_lib_dir = test_unit_dir + "lib"
|
8
|
+
lib_dir = base_dir + "lib"
|
9
|
+
|
10
|
+
$LOAD_PATH.unshift(test_unit_lib_dir.to_s)
|
11
|
+
$LOAD_PATH.unshift(lib_dir.to_s)
|
12
|
+
|
13
|
+
require 'test/unit/notify'
|
14
|
+
|
15
|
+
require 'rubygems'
|
16
|
+
require 'hoe'
|
17
|
+
|
18
|
+
Test::Unit.run = true
|
19
|
+
|
20
|
+
version = Test::Unit::Notify::VERSION
|
21
|
+
ENV["VERSION"] = version
|
22
|
+
Hoe.spec('test-unit-notify') do
|
23
|
+
self.version = version
|
24
|
+
self.rubyforge_name = "test-unit"
|
25
|
+
|
26
|
+
developer('Kouhei Sutou', 'kou@clear-code.com')
|
27
|
+
|
28
|
+
extra_deps << ["test-unit"]
|
29
|
+
end
|
30
|
+
|
31
|
+
task :docs do
|
32
|
+
doc_dir = base_dir + "doc"
|
33
|
+
doc_screenshot_dir = doc_dir + "screenshot"
|
34
|
+
mkdir_p(doc_screenshot_dir.to_s)
|
35
|
+
(base_dir + "screenshot").children.each do |file|
|
36
|
+
next if file.directory?
|
37
|
+
cp(file.to_s, doc_screenshot_dir.to_s)
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
task :tag do
|
42
|
+
message = "Released Test::Unit::Notify #{version}!"
|
43
|
+
base = "svn+ssh://#{ENV['USER']}@rubyforge.org/var/svn/test-unit/extensions/test-unit-notify/"
|
44
|
+
sh 'svn', 'copy', '-m', message, "#{base}trunk", "#{base}tags/#{version}"
|
45
|
+
end
|
46
|
+
|
47
|
+
# vim: syntax=Ruby
|
@@ -0,0 +1,104 @@
|
|
1
|
+
#--
|
2
|
+
#
|
3
|
+
# Author:: Kouhei Sutou
|
4
|
+
# Copyright::
|
5
|
+
# * Copyright (c) 2010 Kouhei Sutou <kou@clear-code.com>
|
6
|
+
# License:: Ruby license.
|
7
|
+
|
8
|
+
require 'pathname'
|
9
|
+
require 'erb'
|
10
|
+
require 'test/unit'
|
11
|
+
|
12
|
+
module Test
|
13
|
+
module Unit
|
14
|
+
AutoRunner.setup_option do |auto_runner, options|
|
15
|
+
options.on("--[no-]notify",
|
16
|
+
"Notify test result at the last.") do |use_notify|
|
17
|
+
auto_runner.listeners.reject! do |listener|
|
18
|
+
listener.is_a?(Notify::Notifier)
|
19
|
+
end
|
20
|
+
auto_runner.listeners << Notify::Notifier.new if use_notify
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
module Notify
|
25
|
+
VERSION = "0.0.2"
|
26
|
+
|
27
|
+
class Notifier
|
28
|
+
include ERB::Util
|
29
|
+
|
30
|
+
base_dir = Pathname(__FILE__).dirname.parent.parent.parent.expand_path
|
31
|
+
ICON_DIR = base_dir + "data" + "icons"
|
32
|
+
def initialize
|
33
|
+
@theme = "kinotan"
|
34
|
+
end
|
35
|
+
|
36
|
+
def attach_to_mediator(mediator)
|
37
|
+
mediator.add_listener(UI::TestRunnerMediator::STARTED,
|
38
|
+
&method(:started))
|
39
|
+
mediator.add_listener(UI::TestRunnerMediator::FINISHED,
|
40
|
+
&method(:finished))
|
41
|
+
end
|
42
|
+
|
43
|
+
def started(result)
|
44
|
+
@result = result
|
45
|
+
end
|
46
|
+
|
47
|
+
def finished(elapsed_time)
|
48
|
+
case RUBY_PLATFORM
|
49
|
+
when /mswin|mingw|cygwin/
|
50
|
+
# how?
|
51
|
+
when /darwin/
|
52
|
+
# growl?
|
53
|
+
else
|
54
|
+
notify_by_notify_send(elapsed_time)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
def notify_by_notify_send(elapsed_time)
|
59
|
+
icon = guess_suitable_icon
|
60
|
+
args = ["notify-send",
|
61
|
+
"--expire-time", "5000",
|
62
|
+
"--urgency", urgency]
|
63
|
+
args.concat(["--icon", icon.to_s]) if icon
|
64
|
+
title = "%s [%g%%] (%gs)" % [@result.status,
|
65
|
+
@result.pass_percentage,
|
66
|
+
elapsed_time]
|
67
|
+
args << title
|
68
|
+
args << h(@result.summary)
|
69
|
+
system(*args)
|
70
|
+
end
|
71
|
+
|
72
|
+
def guess_suitable_icon
|
73
|
+
icon_dir = ICON_DIR + @theme
|
74
|
+
status = @result.status
|
75
|
+
icon_base_names = [status]
|
76
|
+
if @result.passed?
|
77
|
+
icon_base_names << "pass"
|
78
|
+
else
|
79
|
+
case status
|
80
|
+
when "failure"
|
81
|
+
icon_base_names << "error"
|
82
|
+
when "error"
|
83
|
+
icon_base_names << "failure"
|
84
|
+
end
|
85
|
+
end
|
86
|
+
icon_base_names << "default"
|
87
|
+
icon_base_names.each do |base_name|
|
88
|
+
icon = icon_dir + "#{base_name}.png"
|
89
|
+
return icon if icon.exist?
|
90
|
+
end
|
91
|
+
nil
|
92
|
+
end
|
93
|
+
|
94
|
+
def urgency
|
95
|
+
if @result.passed?
|
96
|
+
"normal"
|
97
|
+
else
|
98
|
+
"critical"
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rroonga
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 7
|
10
|
+
version: 1.0.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Kouhei Sutou
|
@@ -19,7 +19,7 @@ autorequire:
|
|
19
19
|
bindir: bin
|
20
20
|
cert_chain: []
|
21
21
|
|
22
|
-
date: 2010-
|
22
|
+
date: 2010-12-19 00:00:00 +09:00
|
23
23
|
default_executable:
|
24
24
|
dependencies:
|
25
25
|
- !ruby/object:Gem::Dependency
|
@@ -38,6 +38,22 @@ dependencies:
|
|
38
38
|
version: 1.0.7
|
39
39
|
type: :runtime
|
40
40
|
version_requirements: *id001
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubyforge
|
43
|
+
prerelease: false
|
44
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
45
|
+
none: false
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
hash: 7
|
50
|
+
segments:
|
51
|
+
- 2
|
52
|
+
- 0
|
53
|
+
- 4
|
54
|
+
version: 2.0.4
|
55
|
+
type: :development
|
56
|
+
version_requirements: *id002
|
41
57
|
description: |-
|
42
58
|
rroonga is a extension library to use groonga's DB-API
|
43
59
|
layer. rroonga provides Rubyish readable and writable
|
@@ -51,12 +67,12 @@ executables: []
|
|
51
67
|
extensions:
|
52
68
|
- extconf.rb
|
53
69
|
extra_rdoc_files:
|
54
|
-
- README.ja.rdoc
|
55
|
-
- NEWS.ja.rdoc
|
56
70
|
- text/tutorial.ja.rdoc
|
57
71
|
- text/expression.rdoc
|
58
|
-
- README.rdoc
|
59
72
|
- NEWS.rdoc
|
73
|
+
- README.rdoc
|
74
|
+
- README.ja.rdoc
|
75
|
+
- NEWS.ja.rdoc
|
60
76
|
files:
|
61
77
|
- AUTHORS
|
62
78
|
- NEWS.ja.rdoc
|
@@ -74,7 +90,6 @@ files:
|
|
74
90
|
- ext/.gitignore
|
75
91
|
- ext/groonga/extconf.rb
|
76
92
|
- ext/groonga/groonga.def
|
77
|
-
- ext/groonga/mkmf.log
|
78
93
|
- ext/groonga/rb-grn-accessor.c
|
79
94
|
- ext/groonga/rb-grn-array-cursor.c
|
80
95
|
- ext/groonga/rb-grn-array.c
|
@@ -141,12 +156,25 @@ files:
|
|
141
156
|
- license/LGPL
|
142
157
|
- misc/grnop2ruby.rb
|
143
158
|
- rroonga-build.rb
|
159
|
+
- test-unit-notify/Rakefile
|
160
|
+
- test-unit-notify/lib/test/unit/notify.rb
|
161
|
+
- test-unit/COPYING
|
162
|
+
- test-unit/GPL
|
163
|
+
- test-unit/PSFL
|
144
164
|
- test-unit/Rakefile
|
145
165
|
- test-unit/TODO
|
146
166
|
- test-unit/bin/testrb
|
147
|
-
- test-unit/html/
|
167
|
+
- test-unit/html/bar.svg
|
168
|
+
- test-unit/html/developer.svg
|
169
|
+
- test-unit/html/favicon.ico
|
170
|
+
- test-unit/html/favicon.svg
|
171
|
+
- test-unit/html/heading-mark.svg
|
148
172
|
- test-unit/html/index.html
|
149
173
|
- test-unit/html/index.html.ja
|
174
|
+
- test-unit/html/install.svg
|
175
|
+
- test-unit/html/logo.svg
|
176
|
+
- test-unit/html/test-unit.css
|
177
|
+
- test-unit/html/tutorial.svg
|
150
178
|
- test-unit/lib/test/unit.rb
|
151
179
|
- test-unit/lib/test/unit/assertionfailederror.rb
|
152
180
|
- test-unit/lib/test/unit/assertions.rb
|
@@ -184,6 +212,7 @@ files:
|
|
184
212
|
- test-unit/lib/test/unit/util/backtracefilter.rb
|
185
213
|
- test-unit/lib/test/unit/util/method-owner-finder.rb
|
186
214
|
- test-unit/lib/test/unit/util/observable.rb
|
215
|
+
- test-unit/lib/test/unit/util/output.rb
|
187
216
|
- test-unit/lib/test/unit/util/procwrapper.rb
|
188
217
|
- test-unit/lib/test/unit/version.rb
|
189
218
|
- test-unit/sample/adder.rb
|
@@ -213,8 +242,10 @@ files:
|
|
213
242
|
- test-unit/test/test_testresult.rb
|
214
243
|
- test-unit/test/test_testsuite.rb
|
215
244
|
- test-unit/test/testunit-test-util.rb
|
245
|
+
- test-unit/test/ui/test_tap.rb
|
216
246
|
- test-unit/test/ui/test_testrunmediator.rb
|
217
247
|
- test-unit/test/util/test-method-owner-finder.rb
|
248
|
+
- test-unit/test/util/test-output.rb
|
218
249
|
- test-unit/test/util/test_backtracefilter.rb
|
219
250
|
- test-unit/test/util/test_observable.rb
|
220
251
|
- test-unit/test/util/test_procwrapper.rb
|
data/ext/groonga/mkmf.log
DELETED
@@ -1,99 +0,0 @@
|
|
1
|
-
checking for GCC... -------------------- yes
|
2
|
-
|
3
|
-
"gcc -I. -I/usr/lib/ruby/1.8/x86_64-linux -I/home/kou/work/ruby/rroonga.18/ext/groonga -fno-strict-aliasing -g -g -O2 -fPIC -c conftest.c"
|
4
|
-
checked program was:
|
5
|
-
/* begin */
|
6
|
-
1: /*top*/
|
7
|
-
2: #ifndef __GNUC__
|
8
|
-
3: # error
|
9
|
-
4: >>>>>> __GNUC__ undefined <<<<<<
|
10
|
-
5: #endif
|
11
|
-
/* end */
|
12
|
-
|
13
|
-
--------------------
|
14
|
-
|
15
|
-
checking for Win32 OS... -------------------- no
|
16
|
-
|
17
|
-
--------------------
|
18
|
-
|
19
|
-
have_macro: checking for HAVE_RUBY_ST_H in ruby.h... -------------------- no
|
20
|
-
|
21
|
-
"gcc -I. -I/usr/lib/ruby/1.8/x86_64-linux -I/home/kou/work/ruby/rroonga.18/ext/groonga -fno-strict-aliasing -g -g -O2 -fPIC -Wall -I/tmp/local/include/groonga -c conftest.c"
|
22
|
-
conftest.c:4:3: error: #error
|
23
|
-
conftest.c:5: error: expected identifier or ‘(’ before ‘>>’ token
|
24
|
-
checked program was:
|
25
|
-
/* begin */
|
26
|
-
1: #include <ruby.h>
|
27
|
-
2: /*top*/
|
28
|
-
3: #ifndef HAVE_RUBY_ST_H
|
29
|
-
4: # error
|
30
|
-
5: >>>>>> HAVE_RUBY_ST_H undefined <<<<<<
|
31
|
-
6: #endif
|
32
|
-
/* end */
|
33
|
-
|
34
|
-
--------------------
|
35
|
-
|
36
|
-
have_header: checking for ruby/st.h... -------------------- no
|
37
|
-
|
38
|
-
"gcc -E -I. -I/usr/lib/ruby/1.8/x86_64-linux -I/home/kou/work/ruby/rroonga.18/ext/groonga -fno-strict-aliasing -g -g -O2 -fPIC -Wall -I/tmp/local/include/groonga conftest.c -o conftest.i"
|
39
|
-
conftest.c:1:21: error: ruby/st.h: そのようなファイルやディレクトリはありません
|
40
|
-
checked program was:
|
41
|
-
/* begin */
|
42
|
-
1: #include <ruby/st.h>
|
43
|
-
/* end */
|
44
|
-
|
45
|
-
--------------------
|
46
|
-
|
47
|
-
have_func: checking for rb_errinfo() in ruby.h... -------------------- no
|
48
|
-
|
49
|
-
"gcc -o conftest -I. -I/usr/lib/ruby/1.8/x86_64-linux -I/home/kou/work/ruby/rroonga.18/ext/groonga -fno-strict-aliasing -g -g -O2 -fPIC -Wall -I/tmp/local/include/groonga conftest.c -L. -L/usr/lib -L. -rdynamic -Wl,-export-dynamic -L/tmp/local/lib -lgroonga -lruby1.8-static -lgroonga -lpthread -lrt -ldl -lcrypt -lm -lc"
|
50
|
-
conftest.c: In function ‘t’:
|
51
|
-
conftest.c:5: error: ‘rb_errinfo’ undeclared (first use in this function)
|
52
|
-
conftest.c:5: error: (Each undeclared identifier is reported only once
|
53
|
-
conftest.c:5: error: for each function it appears in.)
|
54
|
-
checked program was:
|
55
|
-
/* begin */
|
56
|
-
1: #include <ruby.h>
|
57
|
-
2:
|
58
|
-
3: /*top*/
|
59
|
-
4: int main() { return 0; }
|
60
|
-
5: int t() { void ((*volatile p)()); p = (void ((*)()))rb_errinfo; return 0; }
|
61
|
-
/* end */
|
62
|
-
|
63
|
-
"gcc -o conftest -I. -I/usr/lib/ruby/1.8/x86_64-linux -I/home/kou/work/ruby/rroonga.18/ext/groonga -fno-strict-aliasing -g -g -O2 -fPIC -Wall -I/tmp/local/include/groonga conftest.c -L. -L/usr/lib -L. -rdynamic -Wl,-export-dynamic -L/tmp/local/lib -lgroonga -lruby1.8-static -lgroonga -lpthread -lrt -ldl -lcrypt -lm -lc"
|
64
|
-
conftest.c: In function ‘t’:
|
65
|
-
conftest.c:5: warning: implicit declaration of function ‘rb_errinfo’
|
66
|
-
/tmp/ccjMtfaX.o: In function `t':
|
67
|
-
/home/kou/work/ruby/rroonga.18/ext/groonga/conftest.c:5: undefined reference to `rb_errinfo'
|
68
|
-
collect2: ld returned 1 exit status
|
69
|
-
checked program was:
|
70
|
-
/* begin */
|
71
|
-
1: #include <ruby.h>
|
72
|
-
2:
|
73
|
-
3: /*top*/
|
74
|
-
4: int main() { return 0; }
|
75
|
-
5: int t() { rb_errinfo(); return 0; }
|
76
|
-
/* end */
|
77
|
-
|
78
|
-
--------------------
|
79
|
-
|
80
|
-
have_type: checking for enum ruby_value_type in ruby.h... -------------------- no
|
81
|
-
|
82
|
-
"gcc -I. -I/usr/lib/ruby/1.8/x86_64-linux -I/home/kou/work/ruby/rroonga.18/ext/groonga -fno-strict-aliasing -g -g -O2 -fPIC -Wall -I/tmp/local/include/groonga -c conftest.c"
|
83
|
-
conftest.c:5: error: invalid application of ‘sizeof’ to incomplete type ‘conftest_type’
|
84
|
-
conftest.c:5: error: size of array ‘conftestval’ is negative
|
85
|
-
checked program was:
|
86
|
-
/* begin */
|
87
|
-
1: #include <ruby.h>
|
88
|
-
2:
|
89
|
-
3: /*top*/
|
90
|
-
4: typedef enum ruby_value_type conftest_type;
|
91
|
-
5: int conftestval[sizeof(conftest_type)?1:-1];
|
92
|
-
/* end */
|
93
|
-
|
94
|
-
--------------------
|
95
|
-
|
96
|
-
checking for debug flag... -------------------- no
|
97
|
-
|
98
|
-
--------------------
|
99
|
-
|
data/test-unit/html/classic.html
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>Test::Unit (Classic)</title>
|
5
|
-
</head>
|
6
|
-
<body bgcolor="red">
|
7
|
-
<p style="text-align: center">
|
8
|
-
<img height="161" width="308" src="test-unit-classic.png">
|
9
|
-
<br>
|
10
|
-
<br>
|
11
|
-
<br>
|
12
|
-
Read the <a href="classic/test-unit/">rdoc</a>
|
13
|
-
</p>
|
14
|
-
</body>
|
15
|
-
</html>
|