vte3 3.4.2 → 3.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/test/run-test.rb +17 -45
- data/test/test-terminal-signals.rb +28 -0
- data/test/test-terminal.rb +31 -2
- data/test/vte3-test-utils.rb +2 -2
- data/vte3.gemspec +2 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb93f3a3fc92fc6e72ba5a8d8d461d95b1668969f8eb44e0c3f386b69d0a6f51
|
4
|
+
data.tar.gz: 2c04e7cbd23f9a71d76c02ba9eca820c9df4a3e2d35d670592c5c04ff48f96ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11e7678237a8f4b1bc71b1173b9830035a425f0ed3ee202c1947dac2d0c3079908b57ddc64d1eee8f16098550d3d123dfd9635a5146536241903126582702469
|
7
|
+
data.tar.gz: 00c601971afa0fde174d9ece8b4846e3eff6c7d4983122319c3351014a877369b2f23947904a61233dfbce4cec180f67b9de5918caf7fcd281fe7f536de87c00
|
data/test/run-test.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
#
|
3
|
-
# Copyright (C) 2014-
|
3
|
+
# Copyright (C) 2014-2021 Ruby-GNOME Project Team
|
4
4
|
#
|
5
5
|
# This library is free software; you can redistribute it and/or
|
6
6
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -16,48 +16,20 @@
|
|
16
16
|
# License along with this library; if not, write to the Free Software
|
17
17
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
[atk_base, "atk"],
|
36
|
-
[pango_base, "pango"],
|
37
|
-
[cairo_gobject_base, "cairo-gobject"],
|
38
|
-
[gdk_pixbuf_base, "gdk_pixbuf2"],
|
39
|
-
[gobject_introspection_base, "gobject-introspection"],
|
40
|
-
[gio2_base, "gio2"],
|
41
|
-
[gdk3_base, "gdk3"],
|
42
|
-
[gtk3_base, "gtk3"],
|
43
|
-
[vte3_base, "vte3"],
|
44
|
-
]
|
45
|
-
|
46
|
-
modules.each do |target, module_name|
|
47
|
-
makefile = File.join(target, "Makefile")
|
48
|
-
if File.exist?(makefile) and system("which make > /dev/null")
|
49
|
-
`make -C #{target.dump} > /dev/null` or exit(false)
|
50
|
-
end
|
51
|
-
$LOAD_PATH.unshift(File.join(target, "ext", module_name))
|
52
|
-
$LOAD_PATH.unshift(File.join(target, "lib"))
|
19
|
+
require_relative "../../glib2/test/run-test"
|
20
|
+
|
21
|
+
run_test(__dir__,
|
22
|
+
[
|
23
|
+
"glib2",
|
24
|
+
"gobject-introspection",
|
25
|
+
"gio2",
|
26
|
+
"gdk_pixbuf2",
|
27
|
+
"atk",
|
28
|
+
"cairo-gobject",
|
29
|
+
"pango",
|
30
|
+
"gdk3",
|
31
|
+
"gtk3",
|
32
|
+
"vte3",
|
33
|
+
]) do
|
34
|
+
require_relative "vte3-test-utils"
|
53
35
|
end
|
54
|
-
|
55
|
-
$LOAD_PATH.unshift(File.join(glib_base, "test"))
|
56
|
-
require "glib-test-init"
|
57
|
-
|
58
|
-
$LOAD_PATH.unshift(File.join(vte3_base, "test"))
|
59
|
-
require "vte3-test-utils"
|
60
|
-
|
61
|
-
require "vte3"
|
62
|
-
|
63
|
-
exit Test::Unit::AutoRunner.run(true, File.join(vte3_base, "test"))
|
@@ -16,6 +16,34 @@
|
|
16
16
|
|
17
17
|
class TestTerminalSignals < Test::Unit::TestCase
|
18
18
|
def setup
|
19
|
+
if Vte::Version.or_later?(0, 64)
|
20
|
+
omit("VTE 0.64 or later doesn't work in Docker by default")
|
21
|
+
# /usr/include/c++/11/bits/shared_ptr_base.h:976: std::__shared_ptr_access<
|
22
|
+
# _Tp,
|
23
|
+
# _Lp,
|
24
|
+
# <anonymous>,
|
25
|
+
# <anonymous>
|
26
|
+
# >::element_type&
|
27
|
+
# std::__shared_ptr_access<
|
28
|
+
# _Tp,
|
29
|
+
# _Lp,
|
30
|
+
# <anonymous>,
|
31
|
+
# <anonymous>
|
32
|
+
# >::operator*() const [
|
33
|
+
# with
|
34
|
+
# _Tp = vte::platform::Clipboard;
|
35
|
+
# __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic;
|
36
|
+
# bool <anonymous> = false;
|
37
|
+
# bool <anonymous> = false;
|
38
|
+
# std::__shared_ptr_access<
|
39
|
+
# _Tp,
|
40
|
+
# _Lp,
|
41
|
+
# <anonymous>,
|
42
|
+
# <anonymous>
|
43
|
+
# >::element_type = vte::platform::Clipboard
|
44
|
+
#]: Assertion '_M_get() != nullptr' failed.
|
45
|
+
end
|
46
|
+
|
19
47
|
@terminal = Vte::Terminal.new
|
20
48
|
end
|
21
49
|
|
data/test/test-terminal.rb
CHANGED
@@ -34,6 +34,17 @@ class TestTerminal < Test::Unit::TestCase
|
|
34
34
|
@child_exit_callback_id = @terminal.signal_connect("child-exited") do
|
35
35
|
@loop.quit
|
36
36
|
end
|
37
|
+
|
38
|
+
if Vte::Version.or_later?(0, 64)
|
39
|
+
omit("VTE 0.64 or later doesn't work in Docker by default")
|
40
|
+
# Fedora Rawhide test in Docker reports:
|
41
|
+
# Failed to fdwalk: Operation not permitted
|
42
|
+
# not NotFound.
|
43
|
+
#
|
44
|
+
# The following discussions may be related:
|
45
|
+
# https://github.com/mviereck/x11docker/issues/346
|
46
|
+
# https://github.com/containers/podman/issues/10130
|
47
|
+
end
|
37
48
|
end
|
38
49
|
|
39
50
|
teardown do
|
@@ -56,10 +67,28 @@ class TestTerminal < Test::Unit::TestCase
|
|
56
67
|
end
|
57
68
|
|
58
69
|
test "failure" do
|
59
|
-
|
60
|
-
|
70
|
+
if Vte::Version.or_later?(0, 62)
|
71
|
+
error_class = Gio::IOError::NotFound
|
72
|
+
else
|
73
|
+
error_class = GLib::SpawnError
|
74
|
+
end
|
75
|
+
assert_raise(error_class) do
|
76
|
+
@terminal.spawn(:argv => ["/bin/nonexistent"])
|
61
77
|
@wait_child_exited = true
|
62
78
|
end
|
63
79
|
end
|
64
80
|
end
|
81
|
+
|
82
|
+
def test_get_text_range
|
83
|
+
only_vte_version(0, 52)
|
84
|
+
text, attributes = @terminal.get_text_range(0, 0, 1, 1)
|
85
|
+
assert_equal([
|
86
|
+
"\n",
|
87
|
+
[[0, 80]],
|
88
|
+
],
|
89
|
+
[
|
90
|
+
text,
|
91
|
+
attributes.collect {|a| [a.row, a.column]},
|
92
|
+
])
|
93
|
+
end
|
65
94
|
end
|
data/test/vte3-test-utils.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2014 Ruby-
|
1
|
+
# Copyright (C) 2014-2021 Ruby-GNOME Project Team
|
2
2
|
#
|
3
3
|
# This library is free software; you can redistribute it and/or
|
4
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -14,7 +14,7 @@
|
|
14
14
|
# License along with this library; if not, write to the Free Software
|
15
15
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
16
16
|
|
17
|
-
require "
|
17
|
+
require "vte3"
|
18
18
|
|
19
19
|
module VteTestUtils
|
20
20
|
private
|
data/vte3.gemspec
CHANGED
@@ -20,8 +20,8 @@ require_relative "../glib2/version"
|
|
20
20
|
|
21
21
|
Gem::Specification.new do |s|
|
22
22
|
s.name = "vte3"
|
23
|
-
s.summary = "Ruby/VTE is a Ruby binding of VTE
|
24
|
-
s.description = "Ruby/VTE is a Ruby binding of VTE
|
23
|
+
s.summary = "Ruby/VTE is a Ruby binding of VTE for GTK+ 3"
|
24
|
+
s.description = "Ruby/VTE is a Ruby binding of VTE for GTK+ 3"
|
25
25
|
s.author = "The Ruby-GNOME Project Team"
|
26
26
|
s.email = "ruby-gnome2-devel-en@lists.sourceforge.net"
|
27
27
|
s.homepage = "https://ruby-gnome2.osdn.jp/"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vte3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.4.
|
4
|
+
version: 3.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Ruby-GNOME Project Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gtk3
|
@@ -16,15 +16,15 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.4.
|
19
|
+
version: 3.4.6
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.4.
|
27
|
-
description: Ruby/VTE is a Ruby binding of VTE
|
26
|
+
version: 3.4.6
|
27
|
+
description: Ruby/VTE is a Ruby binding of VTE for GTK+ 3
|
28
28
|
email: ruby-gnome2-devel-en@lists.sourceforge.net
|
29
29
|
executables: []
|
30
30
|
extensions:
|
@@ -70,8 +70,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
70
70
|
- !ruby/object:Gem::Version
|
71
71
|
version: '0'
|
72
72
|
requirements: []
|
73
|
-
rubygems_version: 3.
|
73
|
+
rubygems_version: 3.3.0.dev
|
74
74
|
signing_key:
|
75
75
|
specification_version: 4
|
76
|
-
summary: Ruby/VTE is a Ruby binding of VTE
|
76
|
+
summary: Ruby/VTE is a Ruby binding of VTE for GTK+ 3
|
77
77
|
test_files: []
|