sys-proctable 0.9.9-universal-hpux
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +2 -0
- data/CHANGES +353 -0
- data/MANIFEST +34 -0
- data/README +118 -0
- data/Rakefile +218 -0
- data/benchmarks/bench_ps.rb +21 -0
- data/doc/top.txt +47 -0
- data/examples/example_ps.rb +20 -0
- data/ext/hpux/extconf.rb +4 -0
- data/ext/hpux/sys/proctable.c +325 -0
- data/lib/sys-proctable.rb +1 -0
- data/lib/sys/proctable/version.rb +6 -0
- data/lib/sys/top.rb +31 -0
- data/sys-proctable.gemspec +40 -0
- data/test/test_sys_proctable_all.rb +87 -0
- data/test/test_sys_proctable_hpux.rb +313 -0
- data/test/test_sys_top.rb +46 -0
- metadata +120 -0
- metadata.gz.sig +0 -0
@@ -0,0 +1,46 @@
|
|
1
|
+
##############################################################################
|
2
|
+
# test_sys_top.rb
|
3
|
+
#
|
4
|
+
# Test suite for the sys-top library that is included with this distribution.
|
5
|
+
##############################################################################
|
6
|
+
require 'rubygems'
|
7
|
+
gem 'test-unit'
|
8
|
+
|
9
|
+
require 'test/unit'
|
10
|
+
require 'sys/top'
|
11
|
+
|
12
|
+
class TC_Top < Test::Unit::TestCase
|
13
|
+
include Sys
|
14
|
+
|
15
|
+
def test_version
|
16
|
+
assert_equal('1.0.4', Top::VERSION)
|
17
|
+
end
|
18
|
+
|
19
|
+
def test_top_basic
|
20
|
+
assert_respond_to(Top, :top)
|
21
|
+
assert_nothing_raised{ Top.top }
|
22
|
+
assert_nothing_raised{ Top.top(5) }
|
23
|
+
assert_nothing_raised{ Top.top(5, 'cmdline') }
|
24
|
+
end
|
25
|
+
|
26
|
+
def test_top
|
27
|
+
assert_equal(10, Top.top.length)
|
28
|
+
assert_kind_of(Struct::ProcTableStruct, Top.top.first)
|
29
|
+
end
|
30
|
+
|
31
|
+
def test_top_with_size
|
32
|
+
assert_equal(5, Top.top(5).length)
|
33
|
+
end
|
34
|
+
|
35
|
+
def test_top_with_size_and_sort_by_field
|
36
|
+
assert_equal(5, Top.top(5, :cmdline).length)
|
37
|
+
end
|
38
|
+
|
39
|
+
def test_top_return_type
|
40
|
+
assert_kind_of(Array, Top.top)
|
41
|
+
end
|
42
|
+
|
43
|
+
def test_top_expected_errors
|
44
|
+
assert_raises(ArgumentError){ Top.top(1, 'foo', 2) }
|
45
|
+
end
|
46
|
+
end
|
metadata
ADDED
@@ -0,0 +1,120 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sys-proctable
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.9
|
5
|
+
platform: universal-hpux
|
6
|
+
authors:
|
7
|
+
- Daniel J. Berger
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhkamJl
|
14
|
+
cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
|
15
|
+
MB4XDTE1MDkwMjIwNDkxOFoXDTE2MDkwMTIwNDkxOFowPzERMA8GA1UEAwwIZGpi
|
16
|
+
ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
|
17
|
+
bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMyTkvXqRp6hLs9eoJOS
|
18
|
+
Hmi8kRYbq9Vkf15/hMxJpotYMgJVHHWrmDcC5Dye2PbnXjTkKf266Zw0PtT9h+lI
|
19
|
+
S3ts9HO+vaCFSMwFFZmnWJSpQ3CNw2RcHxjWkk9yF7imEM8Kz9ojhiDXzBetdV6M
|
20
|
+
gr0lV/alUr7TNVBDngbXEfTWscyXh1qd7xZ4EcOdsDktCe5G45N/o3662tPQvJsi
|
21
|
+
FOF0CM/KuBsa/HL1/eoEmF4B3EKIRfTHrQ3hu20Kv3RJ88QM4ec2+0dd97uX693O
|
22
|
+
zv6981fyEg+aXLkxrkViM/tz2qR2ZE0jPhHTREPYeMEgptRkTmWSKAuLVWrJEfgl
|
23
|
+
DtkCAwEAAaN3MHUwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFEwe
|
24
|
+
nn6bfJADmuIDiMSOzedOrL+xMB0GA1UdEQQWMBSBEmRqYmVyZzk2QGdtYWlsLmNv
|
25
|
+
bTAdBgNVHRIEFjAUgRJkamJlcmc5NkBnbWFpbC5jb20wDQYJKoZIhvcNAQEFBQAD
|
26
|
+
ggEBAHmNOCWoDVD75zHFueY0viwGDVP1BNGFC+yXcb7u2GlK+nEMCORqzURbYPf7
|
27
|
+
tL+/hzmePIRz7i30UM//64GI1NLv9jl7nIwjhPpXpf7/lu2I9hOTsvwSumb5UiKC
|
28
|
+
/sqBxI3sfj9pr79Wpv4MuikX1XPik7Ncb7NPsJPw06Lvyc3Hkg5X2XpPtLtS+Gr2
|
29
|
+
wKJnmzb5rIPS1cmsqv0M9LPWflzfwoZ/SpnmhagP+g05p8bRNKjZSA2iImM/GyYZ
|
30
|
+
EJYzxdPOrx2n6NYR3Hk+vHP0U7UBSveI6+qx+ndQYaeyCn+GRX2PKS9h66YF/Q1V
|
31
|
+
tGSHgAmcLlkdGgan182qsE/4kKM=
|
32
|
+
-----END CERTIFICATE-----
|
33
|
+
date: 2015-11-08 00:00:00.000000000 Z
|
34
|
+
dependencies:
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: test-unit
|
37
|
+
requirement: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
type: :development
|
43
|
+
prerelease: false
|
44
|
+
version_requirements: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: rake
|
51
|
+
requirement: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
type: :development
|
57
|
+
prerelease: false
|
58
|
+
version_requirements: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
63
|
+
description: |2
|
64
|
+
The sys-proctable library provides an interface for gathering information
|
65
|
+
about processes on your system, i.e. the process table. Most major
|
66
|
+
platforms are supported and, while different platforms may return
|
67
|
+
different information, the external interface is identical across
|
68
|
+
platforms.
|
69
|
+
email: djberg96@gmail.com
|
70
|
+
executables: []
|
71
|
+
extensions:
|
72
|
+
- ext/hpux/extconf.rb
|
73
|
+
extra_rdoc_files:
|
74
|
+
- CHANGES
|
75
|
+
- README
|
76
|
+
- MANIFEST
|
77
|
+
- doc/top.txt
|
78
|
+
- ext/hpux/sys/proctable.c
|
79
|
+
files:
|
80
|
+
- CHANGES
|
81
|
+
- MANIFEST
|
82
|
+
- README
|
83
|
+
- Rakefile
|
84
|
+
- benchmarks/bench_ps.rb
|
85
|
+
- doc/top.txt
|
86
|
+
- examples/example_ps.rb
|
87
|
+
- lib/sys-proctable.rb
|
88
|
+
- lib/sys/proctable/version.rb
|
89
|
+
- lib/sys/top.rb
|
90
|
+
- sys-proctable.gemspec
|
91
|
+
- test/test_sys_proctable_all.rb
|
92
|
+
- ext/hpux/sys/proctable.c
|
93
|
+
homepage: http://github.com/djberg96/sys-proctable
|
94
|
+
licenses:
|
95
|
+
- Artistic 2.0
|
96
|
+
metadata: {}
|
97
|
+
post_install_message:
|
98
|
+
rdoc_options: []
|
99
|
+
require_paths:
|
100
|
+
- lib
|
101
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - ">="
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '0'
|
106
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
requirements: []
|
112
|
+
rubyforge_project:
|
113
|
+
rubygems_version: 2.5.0
|
114
|
+
signing_key:
|
115
|
+
specification_version: 4
|
116
|
+
summary: An interface for providing process table information
|
117
|
+
test_files:
|
118
|
+
- test/test_sys_proctable_all.rb
|
119
|
+
- test/test_sys_proctable_hpux.rb
|
120
|
+
- test/test_sys_top.rb
|
metadata.gz.sig
ADDED
Binary file
|