* Using google mock
@ 2013-03-29 7:16 Loic Dachary
2013-03-29 15:24 ` Sage Weil
0 siblings, 1 reply; 3+ messages in thread
From: Loic Dachary @ 2013-03-29 7:16 UTC (permalink / raw)
To: Ceph Development
[-- Attachment #1: Type: text/plain, Size: 542 bytes --]
Hi,
Google mock ( ) provides convenient string matchers ( http://code.google.com/p/googlemock/wiki/CheatSheet#String_Matchers ) that would be useful when writing unit tests. It is available in most distributions:
http://packages.debian.org/search?keywords=google-mock
https://launchpad.net/ubuntu/+source/google-mock
http://rpmfind.net/linux/rpm2html/search.php?query=gmock
I've never used it before. Any objection on adding it as a dependency in addition to google test ?
Cheers
--
Loïc Dachary, Artisan Logiciel Libre
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Using google mock
2013-03-29 7:16 Using google mock Loic Dachary
@ 2013-03-29 15:24 ` Sage Weil
2013-03-29 17:31 ` Loic Dachary
0 siblings, 1 reply; 3+ messages in thread
From: Sage Weil @ 2013-03-29 15:24 UTC (permalink / raw)
To: Loic Dachary; +Cc: Ceph Development
On Fri, 29 Mar 2013, Loic Dachary wrote:
> Hi,
>
> Google mock ( ) provides convenient string matchers ( http://code.google.com/p/googlemock/wiki/CheatSheet#String_Matchers ) that would be useful when writing unit tests. It is available in most distributions:
>
> http://packages.debian.org/search?keywords=google-mock
> https://launchpad.net/ubuntu/+source/google-mock
> http://rpmfind.net/linux/rpm2html/search.php?query=gmock
>
> I've never used it before. Any objection on adding it as a dependency in addition to google test ?
I think as long as it is in EPEL or we can get an el6 package for those
builds, it should be fine.
http://ceph.com/gitbuilder.cgi
is what we need to cover.
Thanks!
sage
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Using google mock
2013-03-29 15:24 ` Sage Weil
@ 2013-03-29 17:31 ` Loic Dachary
0 siblings, 0 replies; 3+ messages in thread
From: Loic Dachary @ 2013-03-29 17:31 UTC (permalink / raw)
To: Sage Weil; +Cc: Ceph Development
[-- Attachment #1: Type: text/plain, Size: 2671 bytes --]
Hi Sage,
It's not in EPEL
for i in 3 4 a b c d e f g h i j k l m n o p q r s t u v w x y z ; do curl --silent http://dl.fedoraproject.org/pub/epel/6/SRPMS/repoview/letter_$i.group.html | grep mock ; done
<span>A mocking library for Erlang</span>
<a href="mock.html" class="inpage">mock</a> -
<span>Easy mocking of LWP packages</span>
<span>Mockery is a simple but flexible PHP mock object framework</span>
<span>Phake is a PHP mocking framework that is based on Mockito</span>
<a href="python-flexmock.html" class="inpage">python-flexmock</a> -
<span>Testing library that makes it easy to create mocks, stubs and fakes</span>
<a href="python-minimock.html" class="inpage">python-minimock</a> -
<span>The simplest possible mock library</span>
<a href="python-mock.html" class="inpage">python-mock</a> -
<span>Tiny mocking library</span>
<a href="rubygem-rspec-mocks.html" class="inpage">rubygem-rspec-mocks</a> -
<span>Rspec-2 doubles (mocks and stubs)</span>
Regarding http://ceph.com/gitbuilder.cgi I found
OK : squeeze wheezy : http://packages.debian.org/search?keywords=google-mock
OK : oneiric natty precise quantal : https://launchpad.net/ubuntu/+source/google-mock
OK : centos6 http://pkgs.org/centos-6-rhel-6/nux-dextop-x86_64/gmock-1.5.0-1.el6.nux.x86_64.rpm.html
OK : fedora17 fedora18 https://admin.fedoraproject.org/pkgdb/acls/name/gmock
OK : opensuse12 https://build.opensuse.org/package/view_file?expand=1&file=gmock.spec&package=gmock&project=GNOME%3AAyatana
not sure about : sles-11sp2 https://www.suse.com/company/press/2012/2/suse-linux-enterprise-11-service-pack-2-released.html
I'll keep looking.
Cheers
On 03/29/2013 04:24 PM, Sage Weil wrote:
> On Fri, 29 Mar 2013, Loic Dachary wrote:
>> Hi,
>>
>> Google mock ( ) provides convenient string matchers ( http://code.google.com/p/googlemock/wiki/CheatSheet#String_Matchers ) that would be useful when writing unit tests. It is available in most distributions:
>>
>> http://packages.debian.org/search?keywords=google-mock
>> https://launchpad.net/ubuntu/+source/google-mock
>> http://rpmfind.net/linux/rpm2html/search.php?query=gmock
>>
>> I've never used it before. Any objection on adding it as a dependency in addition to google test ?
>
> I think as long as it is in EPEL or we can get an el6 package for those
> builds, it should be fine.
>
> http://ceph.com/gitbuilder.cgi
>
> is what we need to cover.
>
> Thanks!
> sage
>
--
Loïc Dachary, Artisan Logiciel Libre
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-03-29 17:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-29 7:16 Using google mock Loic Dachary
2013-03-29 15:24 ` Sage Weil
2013-03-29 17:31 ` Loic Dachary
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.