]> git.proxmox.com Git - ceph.git/blame - ceph/src/rapidjson/thirdparty/gtest/googletest/docs/DevGuide.md
buildsys: change download over to reef release
[ceph.git] / ceph / src / rapidjson / thirdparty / gtest / googletest / docs / DevGuide.md
CommitLineData
31f18b77
FG
1
2
3If you are interested in understanding the internals of Google Test,
4building from source, or contributing ideas or modifications to the
5project, then this document is for you.
6
7# Introduction #
8
9First, let's give you some background of the project.
10
11## Licensing ##
12
13All Google Test source and pre-built packages are provided under the [New BSD License](http://www.opensource.org/licenses/bsd-license.php).
14
15## The Google Test Community ##
16
17The Google Test community exists primarily through the [discussion group](http://groups.google.com/group/googletestframework) and the GitHub repository.
18You are definitely encouraged to contribute to the
19discussion and you can also help us to keep the effectiveness of the
20group high by following and promoting the guidelines listed here.
21
22### Please Be Friendly ###
23
24Showing courtesy and respect to others is a vital part of the Google
25culture, and we strongly encourage everyone participating in Google
26Test development to join us in accepting nothing less. Of course,
27being courteous is not the same as failing to constructively disagree
28with each other, but it does mean that we should be respectful of each
29other when enumerating the 42 technical reasons that a particular
30proposal may not be the best choice. There's never a reason to be
31antagonistic or dismissive toward anyone who is sincerely trying to
32contribute to a discussion.
33
34Sure, C++ testing is serious business and all that, but it's also
35a lot of fun. Let's keep it that way. Let's strive to be one of the
36friendliest communities in all of open source.
37
38As always, discuss Google Test in the official GoogleTest discussion group.
39You don't have to actually submit code in order to sign up. Your participation
40itself is a valuable contribution.
41
42# Working with the Code #
43
44If you want to get your hands dirty with the code inside Google Test,
45this is the section for you.
46
47## Compiling from Source ##
48
49Once you check out the code, you can find instructions on how to
50compile it in the [README](../README.md) file.
51
52## Testing ##
53
54A testing framework is of no good if itself is not thoroughly tested.
55Tests should be written for any new code, and changes should be
56verified to not break existing tests before they are submitted for
57review. To perform the tests, follow the instructions in
58[README](../README.md) and verify that there are no failures.
59
60# Contributing Code #
61
62We are excited that Google Test is now open source, and hope to get
63great patches from the community. Before you fire up your favorite IDE
64and begin hammering away at that new feature, though, please take the
65time to read this section and understand the process. While it seems
66rigorous, we want to keep a high standard of quality in the code
67base.
68
69## Contributor License Agreements ##
70
71You must sign a Contributor License Agreement (CLA) before we can
72accept any code. The CLA protects you and us.
73
74 * If you are an individual writing original source code and you're sure you own the intellectual property, then you'll need to sign an [individual CLA](http://code.google.com/legal/individual-cla-v1.0.html).
75 * If you work for a company that wants to allow you to contribute your work to Google Test, then you'll need to sign a [corporate CLA](http://code.google.com/legal/corporate-cla-v1.0.html).
76
77Follow either of the two links above to access the appropriate CLA and
78instructions for how to sign and return it.
79
80## Coding Style ##
81
82To keep the source consistent, readable, diffable and easy to merge,
83we use a fairly rigid coding style, as defined by the [google-styleguide](http://code.google.com/p/google-styleguide/) project. All patches will be expected
84to conform to the style outlined [here](http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml).
85
86## Updating Generated Code ##
87
88Some of Google Test's source files are generated by the Pump tool (a
89Python script). If you need to update such files, please modify the
90source (`foo.h.pump`) and re-generate the C++ file using Pump. You
91can read the PumpManual for details.
92
93## Submitting Patches ##
94
95Please do submit code. Here's what you need to do:
96
97 1. A submission should be a set of changes that addresses one issue in the [issue tracker](https://github.com/google/googletest/issues). Please don't mix more than one logical change per submittal, because it makes the history hard to follow. If you want to make a change that doesn't have a corresponding issue in the issue tracker, please create one.
98 1. Also, coordinate with team members that are listed on the issue in question. This ensures that work isn't being duplicated and communicating your plan early also generally leads to better patches.
99 1. Ensure that your code adheres to the [Google Test source code style](#Coding_Style.md).
100 1. Ensure that there are unit tests for your code.
101 1. Sign a Contributor License Agreement.
102 1. Create a Pull Request in the usual way.
103
104## Google Test Committers ##
105
106The current members of the Google Test engineering team are the only
107committers at present. In the great tradition of eating one's own
108dogfood, we will be requiring each new Google Test engineering team
109member to earn the right to become a committer by following the
110procedures in this document, writing consistently great code, and
111demonstrating repeatedly that he or she truly gets the zen of Google
112Test.
113
114# Release Process #
115
116We follow a typical release process:
117
118 1. A release branch named `release-X.Y` is created.
119 1. Bugs are fixed and features are added in trunk; those individual patches are merged into the release branch until it's stable.
120 1. An individual point release (the `Z` in `X.Y.Z`) is made by creating a tag from the branch.
121 1. Repeat steps 2 and 3 throughout one release cycle (as determined by features or time).
122 1. Go back to step 1 to create another release branch and so on.
123
124---
125
126This page is based on the [Making GWT Better](http://code.google.com/webtoolkit/makinggwtbetter.html) guide from the [Google Web Toolkit](http://code.google.com/webtoolkit/) project. Except as otherwise [noted](http://code.google.com/policies.html#restrictions), the content of this page is licensed under the [Creative Commons Attribution 2.5 License](http://creativecommons.org/licenses/by/2.5/).