1*9c5db199SXin LiAutotest is released specifically under the GPLv2, and not any 2*9c5db199SXin Lilater version of the license, unless explicitly otherwise stated 3*9c5db199SXin Li 4*9c5db199SXin LiAll files in the autotest project are covered by the GPLv2, unless 5*9c5db199SXin Liexplicitly otherwise stated. 6*9c5db199SXin Li 7*9c5db199SXin Li 8*9c5db199SXin Li GNU GENERAL PUBLIC LICENSE 9*9c5db199SXin Li Version 2, June 1991 10*9c5db199SXin Li 11*9c5db199SXin Li Copyright (C) 1989, 1991 Free Software Foundation, Inc. 12*9c5db199SXin Li 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 13*9c5db199SXin Li Everyone is permitted to copy and distribute verbatim copies 14*9c5db199SXin Li of this license document, but changing it is not allowed. 15*9c5db199SXin Li 16*9c5db199SXin Li Preamble 17*9c5db199SXin Li 18*9c5db199SXin Li The licenses for most software are designed to take away your 19*9c5db199SXin Lifreedom to share and change it. By contrast, the GNU General Public 20*9c5db199SXin LiLicense is intended to guarantee your freedom to share and change free 21*9c5db199SXin Lisoftware--to make sure the software is free for all its users. This 22*9c5db199SXin LiGeneral Public License applies to most of the Free Software 23*9c5db199SXin LiFoundation's software and to any other program whose authors commit to 24*9c5db199SXin Liusing it. (Some other Free Software Foundation software is covered by 25*9c5db199SXin Lithe GNU Library General Public License instead.) You can apply it to 26*9c5db199SXin Liyour programs, too. 27*9c5db199SXin Li 28*9c5db199SXin Li When we speak of free software, we are referring to freedom, not 29*9c5db199SXin Liprice. Our General Public Licenses are designed to make sure that you 30*9c5db199SXin Lihave the freedom to distribute copies of free software (and charge for 31*9c5db199SXin Lithis service if you wish), that you receive source code or can get it 32*9c5db199SXin Liif you want it, that you can change the software or use pieces of it 33*9c5db199SXin Liin new free programs; and that you know you can do these things. 34*9c5db199SXin Li 35*9c5db199SXin Li To protect your rights, we need to make restrictions that forbid 36*9c5db199SXin Lianyone to deny you these rights or to ask you to surrender the rights. 37*9c5db199SXin LiThese restrictions translate to certain responsibilities for you if you 38*9c5db199SXin Lidistribute copies of the software, or if you modify it. 39*9c5db199SXin Li 40*9c5db199SXin Li For example, if you distribute copies of such a program, whether 41*9c5db199SXin Ligratis or for a fee, you must give the recipients all the rights that 42*9c5db199SXin Liyou have. You must make sure that they, too, receive or can get the 43*9c5db199SXin Lisource code. And you must show them these terms so they know their 44*9c5db199SXin Lirights. 45*9c5db199SXin Li 46*9c5db199SXin Li We protect your rights with two steps: (1) copyright the software, and 47*9c5db199SXin Li(2) offer you this license which gives you legal permission to copy, 48*9c5db199SXin Lidistribute and/or modify the software. 49*9c5db199SXin Li 50*9c5db199SXin Li Also, for each author's protection and ours, we want to make certain 51*9c5db199SXin Lithat everyone understands that there is no warranty for this free 52*9c5db199SXin Lisoftware. If the software is modified by someone else and passed on, we 53*9c5db199SXin Liwant its recipients to know that what they have is not the original, so 54*9c5db199SXin Lithat any problems introduced by others will not reflect on the original 55*9c5db199SXin Liauthors' reputations. 56*9c5db199SXin Li 57*9c5db199SXin Li Finally, any free program is threatened constantly by software 58*9c5db199SXin Lipatents. We wish to avoid the danger that redistributors of a free 59*9c5db199SXin Liprogram will individually obtain patent licenses, in effect making the 60*9c5db199SXin Liprogram proprietary. To prevent this, we have made it clear that any 61*9c5db199SXin Lipatent must be licensed for everyone's free use or not licensed at all. 62*9c5db199SXin Li 63*9c5db199SXin Li The precise terms and conditions for copying, distribution and 64*9c5db199SXin Limodification follow. 65*9c5db199SXin Li 66*9c5db199SXin Li GNU GENERAL PUBLIC LICENSE 67*9c5db199SXin Li TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 68*9c5db199SXin Li 69*9c5db199SXin Li 0. This License applies to any program or other work which contains 70*9c5db199SXin Lia notice placed by the copyright holder saying it may be distributed 71*9c5db199SXin Liunder the terms of this General Public License. The "Program", below, 72*9c5db199SXin Lirefers to any such program or work, and a "work based on the Program" 73*9c5db199SXin Limeans either the Program or any derivative work under copyright law: 74*9c5db199SXin Lithat is to say, a work containing the Program or a portion of it, 75*9c5db199SXin Lieither verbatim or with modifications and/or translated into another 76*9c5db199SXin Lilanguage. (Hereinafter, translation is included without limitation in 77*9c5db199SXin Lithe term "modification".) Each licensee is addressed as "you". 78*9c5db199SXin Li 79*9c5db199SXin LiActivities other than copying, distribution and modification are not 80*9c5db199SXin Licovered by this License; they are outside its scope. The act of 81*9c5db199SXin Lirunning the Program is not restricted, and the output from the Program 82*9c5db199SXin Liis covered only if its contents constitute a work based on the 83*9c5db199SXin LiProgram (independent of having been made by running the Program). 84*9c5db199SXin LiWhether that is true depends on what the Program does. 85*9c5db199SXin Li 86*9c5db199SXin Li 1. You may copy and distribute verbatim copies of the Program's 87*9c5db199SXin Lisource code as you receive it, in any medium, provided that you 88*9c5db199SXin Liconspicuously and appropriately publish on each copy an appropriate 89*9c5db199SXin Licopyright notice and disclaimer of warranty; keep intact all the 90*9c5db199SXin Linotices that refer to this License and to the absence of any warranty; 91*9c5db199SXin Liand give any other recipients of the Program a copy of this License 92*9c5db199SXin Lialong with the Program. 93*9c5db199SXin Li 94*9c5db199SXin LiYou may charge a fee for the physical act of transferring a copy, and 95*9c5db199SXin Liyou may at your option offer warranty protection in exchange for a fee. 96*9c5db199SXin Li 97*9c5db199SXin Li 2. You may modify your copy or copies of the Program or any portion 98*9c5db199SXin Liof it, thus forming a work based on the Program, and copy and 99*9c5db199SXin Lidistribute such modifications or work under the terms of Section 1 100*9c5db199SXin Liabove, provided that you also meet all of these conditions: 101*9c5db199SXin Li 102*9c5db199SXin Li a) You must cause the modified files to carry prominent notices 103*9c5db199SXin Li stating that you changed the files and the date of any change. 104*9c5db199SXin Li 105*9c5db199SXin Li b) You must cause any work that you distribute or publish, that in 106*9c5db199SXin Li whole or in part contains or is derived from the Program or any 107*9c5db199SXin Li part thereof, to be licensed as a whole at no charge to all third 108*9c5db199SXin Li parties under the terms of this License. 109*9c5db199SXin Li 110*9c5db199SXin Li c) If the modified program normally reads commands interactively 111*9c5db199SXin Li when run, you must cause it, when started running for such 112*9c5db199SXin Li interactive use in the most ordinary way, to print or display an 113*9c5db199SXin Li announcement including an appropriate copyright notice and a 114*9c5db199SXin Li notice that there is no warranty (or else, saying that you provide 115*9c5db199SXin Li a warranty) and that users may redistribute the program under 116*9c5db199SXin Li these conditions, and telling the user how to view a copy of this 117*9c5db199SXin Li License. (Exception: if the Program itself is interactive but 118*9c5db199SXin Li does not normally print such an announcement, your work based on 119*9c5db199SXin Li the Program is not required to print an announcement.) 120*9c5db199SXin Li 121*9c5db199SXin LiThese requirements apply to the modified work as a whole. If 122*9c5db199SXin Liidentifiable sections of that work are not derived from the Program, 123*9c5db199SXin Liand can be reasonably considered independent and separate works in 124*9c5db199SXin Lithemselves, then this License, and its terms, do not apply to those 125*9c5db199SXin Lisections when you distribute them as separate works. But when you 126*9c5db199SXin Lidistribute the same sections as part of a whole which is a work based 127*9c5db199SXin Lion the Program, the distribution of the whole must be on the terms of 128*9c5db199SXin Lithis License, whose permissions for other licensees extend to the 129*9c5db199SXin Lientire whole, and thus to each and every part regardless of who wrote it. 130*9c5db199SXin Li 131*9c5db199SXin LiThus, it is not the intent of this section to claim rights or contest 132*9c5db199SXin Liyour rights to work written entirely by you; rather, the intent is to 133*9c5db199SXin Liexercise the right to control the distribution of derivative or 134*9c5db199SXin Licollective works based on the Program. 135*9c5db199SXin Li 136*9c5db199SXin LiIn addition, mere aggregation of another work not based on the Program 137*9c5db199SXin Liwith the Program (or with a work based on the Program) on a volume of 138*9c5db199SXin Lia storage or distribution medium does not bring the other work under 139*9c5db199SXin Lithe scope of this License. 140*9c5db199SXin Li 141*9c5db199SXin Li 3. You may copy and distribute the Program (or a work based on it, 142*9c5db199SXin Liunder Section 2) in object code or executable form under the terms of 143*9c5db199SXin LiSections 1 and 2 above provided that you also do one of the following: 144*9c5db199SXin Li 145*9c5db199SXin Li a) Accompany it with the complete corresponding machine-readable 146*9c5db199SXin Li source code, which must be distributed under the terms of Sections 147*9c5db199SXin Li 1 and 2 above on a medium customarily used for software interchange; or, 148*9c5db199SXin Li 149*9c5db199SXin Li b) Accompany it with a written offer, valid for at least three 150*9c5db199SXin Li years, to give any third party, for a charge no more than your 151*9c5db199SXin Li cost of physically performing source distribution, a complete 152*9c5db199SXin Li machine-readable copy of the corresponding source code, to be 153*9c5db199SXin Li distributed under the terms of Sections 1 and 2 above on a medium 154*9c5db199SXin Li customarily used for software interchange; or, 155*9c5db199SXin Li 156*9c5db199SXin Li c) Accompany it with the information you received as to the offer 157*9c5db199SXin Li to distribute corresponding source code. (This alternative is 158*9c5db199SXin Li allowed only for noncommercial distribution and only if you 159*9c5db199SXin Li received the program in object code or executable form with such 160*9c5db199SXin Li an offer, in accord with Subsection b above.) 161*9c5db199SXin Li 162*9c5db199SXin LiThe source code for a work means the preferred form of the work for 163*9c5db199SXin Limaking modifications to it. For an executable work, complete source 164*9c5db199SXin Licode means all the source code for all modules it contains, plus any 165*9c5db199SXin Liassociated interface definition files, plus the scripts used to 166*9c5db199SXin Licontrol compilation and installation of the executable. However, as a 167*9c5db199SXin Lispecial exception, the source code distributed need not include 168*9c5db199SXin Lianything that is normally distributed (in either source or binary 169*9c5db199SXin Liform) with the major components (compiler, kernel, and so on) of the 170*9c5db199SXin Lioperating system on which the executable runs, unless that component 171*9c5db199SXin Liitself accompanies the executable. 172*9c5db199SXin Li 173*9c5db199SXin LiIf distribution of executable or object code is made by offering 174*9c5db199SXin Liaccess to copy from a designated place, then offering equivalent 175*9c5db199SXin Liaccess to copy the source code from the same place counts as 176*9c5db199SXin Lidistribution of the source code, even though third parties are not 177*9c5db199SXin Licompelled to copy the source along with the object code. 178*9c5db199SXin Li 179*9c5db199SXin Li 4. You may not copy, modify, sublicense, or distribute the Program 180*9c5db199SXin Liexcept as expressly provided under this License. Any attempt 181*9c5db199SXin Liotherwise to copy, modify, sublicense or distribute the Program is 182*9c5db199SXin Livoid, and will automatically terminate your rights under this License. 183*9c5db199SXin LiHowever, parties who have received copies, or rights, from you under 184*9c5db199SXin Lithis License will not have their licenses terminated so long as such 185*9c5db199SXin Liparties remain in full compliance. 186*9c5db199SXin Li 187*9c5db199SXin Li 5. You are not required to accept this License, since you have not 188*9c5db199SXin Lisigned it. However, nothing else grants you permission to modify or 189*9c5db199SXin Lidistribute the Program or its derivative works. These actions are 190*9c5db199SXin Liprohibited by law if you do not accept this License. Therefore, by 191*9c5db199SXin Limodifying or distributing the Program (or any work based on the 192*9c5db199SXin LiProgram), you indicate your acceptance of this License to do so, and 193*9c5db199SXin Liall its terms and conditions for copying, distributing or modifying 194*9c5db199SXin Lithe Program or works based on it. 195*9c5db199SXin Li 196*9c5db199SXin Li 6. Each time you redistribute the Program (or any work based on the 197*9c5db199SXin LiProgram), the recipient automatically receives a license from the 198*9c5db199SXin Lioriginal licensor to copy, distribute or modify the Program subject to 199*9c5db199SXin Lithese terms and conditions. You may not impose any further 200*9c5db199SXin Lirestrictions on the recipients' exercise of the rights granted herein. 201*9c5db199SXin LiYou are not responsible for enforcing compliance by third parties to 202*9c5db199SXin Lithis License. 203*9c5db199SXin Li 204*9c5db199SXin Li 7. If, as a consequence of a court judgment or allegation of patent 205*9c5db199SXin Liinfringement or for any other reason (not limited to patent issues), 206*9c5db199SXin Liconditions are imposed on you (whether by court order, agreement or 207*9c5db199SXin Liotherwise) that contradict the conditions of this License, they do not 208*9c5db199SXin Liexcuse you from the conditions of this License. If you cannot 209*9c5db199SXin Lidistribute so as to satisfy simultaneously your obligations under this 210*9c5db199SXin LiLicense and any other pertinent obligations, then as a consequence you 211*9c5db199SXin Limay not distribute the Program at all. For example, if a patent 212*9c5db199SXin Lilicense would not permit royalty-free redistribution of the Program by 213*9c5db199SXin Liall those who receive copies directly or indirectly through you, then 214*9c5db199SXin Lithe only way you could satisfy both it and this License would be to 215*9c5db199SXin Lirefrain entirely from distribution of the Program. 216*9c5db199SXin Li 217*9c5db199SXin LiIf any portion of this section is held invalid or unenforceable under 218*9c5db199SXin Liany particular circumstance, the balance of the section is intended to 219*9c5db199SXin Liapply and the section as a whole is intended to apply in other 220*9c5db199SXin Licircumstances. 221*9c5db199SXin Li 222*9c5db199SXin LiIt is not the purpose of this section to induce you to infringe any 223*9c5db199SXin Lipatents or other property right claims or to contest validity of any 224*9c5db199SXin Lisuch claims; this section has the sole purpose of protecting the 225*9c5db199SXin Liintegrity of the free software distribution system, which is 226*9c5db199SXin Liimplemented by public license practices. Many people have made 227*9c5db199SXin Ligenerous contributions to the wide range of software distributed 228*9c5db199SXin Lithrough that system in reliance on consistent application of that 229*9c5db199SXin Lisystem; it is up to the author/donor to decide if he or she is willing 230*9c5db199SXin Lito distribute software through any other system and a licensee cannot 231*9c5db199SXin Liimpose that choice. 232*9c5db199SXin Li 233*9c5db199SXin LiThis section is intended to make thoroughly clear what is believed to 234*9c5db199SXin Libe a consequence of the rest of this License. 235*9c5db199SXin Li 236*9c5db199SXin Li 8. If the distribution and/or use of the Program is restricted in 237*9c5db199SXin Licertain countries either by patents or by copyrighted interfaces, the 238*9c5db199SXin Lioriginal copyright holder who places the Program under this License 239*9c5db199SXin Limay add an explicit geographical distribution limitation excluding 240*9c5db199SXin Lithose countries, so that distribution is permitted only in or among 241*9c5db199SXin Licountries not thus excluded. In such case, this License incorporates 242*9c5db199SXin Lithe limitation as if written in the body of this License. 243*9c5db199SXin Li 244*9c5db199SXin Li 9. The Free Software Foundation may publish revised and/or new versions 245*9c5db199SXin Liof the General Public License from time to time. Such new versions will 246*9c5db199SXin Libe similar in spirit to the present version, but may differ in detail to 247*9c5db199SXin Liaddress new problems or concerns. 248*9c5db199SXin Li 249*9c5db199SXin LiEach version is given a distinguishing version number. If the Program 250*9c5db199SXin Lispecifies a version number of this License which applies to it and "any 251*9c5db199SXin Lilater version", you have the option of following the terms and conditions 252*9c5db199SXin Lieither of that version or of any later version published by the Free 253*9c5db199SXin LiSoftware Foundation. If the Program does not specify a version number of 254*9c5db199SXin Lithis License, you may choose any version ever published by the Free Software 255*9c5db199SXin LiFoundation. 256*9c5db199SXin Li 257*9c5db199SXin Li 10. If you wish to incorporate parts of the Program into other free 258*9c5db199SXin Liprograms whose distribution conditions are different, write to the author 259*9c5db199SXin Lito ask for permission. For software which is copyrighted by the Free 260*9c5db199SXin LiSoftware Foundation, write to the Free Software Foundation; we sometimes 261*9c5db199SXin Limake exceptions for this. Our decision will be guided by the two goals 262*9c5db199SXin Liof preserving the free status of all derivatives of our free software and 263*9c5db199SXin Liof promoting the sharing and reuse of software generally. 264*9c5db199SXin Li 265*9c5db199SXin Li NO WARRANTY 266*9c5db199SXin Li 267*9c5db199SXin Li 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 268*9c5db199SXin LiFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 269*9c5db199SXin LiOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 270*9c5db199SXin LiPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 271*9c5db199SXin LiOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 272*9c5db199SXin LiMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 273*9c5db199SXin LiTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 274*9c5db199SXin LiPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 275*9c5db199SXin LiREPAIR OR CORRECTION. 276*9c5db199SXin Li 277*9c5db199SXin Li 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 278*9c5db199SXin LiWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 279*9c5db199SXin LiREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 280*9c5db199SXin LiINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 281*9c5db199SXin LiOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 282*9c5db199SXin LiTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 283*9c5db199SXin LiYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 284*9c5db199SXin LiPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 285*9c5db199SXin LiPOSSIBILITY OF SUCH DAMAGES. 286*9c5db199SXin Li 287*9c5db199SXin Li END OF TERMS AND CONDITIONS 288*9c5db199SXin Li 289*9c5db199SXin Li How to Apply These Terms to Your New Programs 290*9c5db199SXin Li 291*9c5db199SXin Li If you develop a new program, and you want it to be of the greatest 292*9c5db199SXin Lipossible use to the public, the best way to achieve this is to make it 293*9c5db199SXin Lifree software which everyone can redistribute and change under these terms. 294*9c5db199SXin Li 295*9c5db199SXin Li To do so, attach the following notices to the program. It is safest 296*9c5db199SXin Lito attach them to the start of each source file to most effectively 297*9c5db199SXin Liconvey the exclusion of warranty; and each file should have at least 298*9c5db199SXin Lithe "copyright" line and a pointer to where the full notice is found. 299*9c5db199SXin Li 300*9c5db199SXin Li <one line to give the program's name and a brief idea of what it does.> 301*9c5db199SXin Li Copyright (C) <year> <name of author> 302*9c5db199SXin Li 303*9c5db199SXin Li This program is free software; you can redistribute it and/or modify 304*9c5db199SXin Li it under the terms of the GNU General Public License as published by 305*9c5db199SXin Li the Free Software Foundation; either version 2 of the License, or 306*9c5db199SXin Li (at your option) any later version. 307*9c5db199SXin Li 308*9c5db199SXin Li This program is distributed in the hope that it will be useful, 309*9c5db199SXin Li but WITHOUT ANY WARRANTY; without even the implied warranty of 310*9c5db199SXin Li MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 311*9c5db199SXin Li GNU General Public License for more details. 312*9c5db199SXin Li 313*9c5db199SXin Li You should have received a copy of the GNU General Public License 314*9c5db199SXin Li along with this program; if not, write to the Free Software 315*9c5db199SXin Li Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 316*9c5db199SXin Li 317*9c5db199SXin Li 318*9c5db199SXin LiAlso add information on how to contact you by electronic and paper mail. 319*9c5db199SXin Li 320*9c5db199SXin LiIf the program is interactive, make it output a short notice like this 321*9c5db199SXin Liwhen it starts in an interactive mode: 322*9c5db199SXin Li 323*9c5db199SXin Li Gnomovision version 69, Copyright (C) year name of author 324*9c5db199SXin Li Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 325*9c5db199SXin Li This is free software, and you are welcome to redistribute it 326*9c5db199SXin Li under certain conditions; type `show c' for details. 327*9c5db199SXin Li 328*9c5db199SXin LiThe hypothetical commands `show w' and `show c' should show the appropriate 329*9c5db199SXin Liparts of the General Public License. Of course, the commands you use may 330*9c5db199SXin Libe called something other than `show w' and `show c'; they could even be 331*9c5db199SXin Limouse-clicks or menu items--whatever suits your program. 332*9c5db199SXin Li 333*9c5db199SXin LiYou should also get your employer (if you work as a programmer) or your 334*9c5db199SXin Lischool, if any, to sign a "copyright disclaimer" for the program, if 335*9c5db199SXin Linecessary. Here is a sample; alter the names: 336*9c5db199SXin Li 337*9c5db199SXin Li Yoyodyne, Inc., hereby disclaims all copyright interest in the program 338*9c5db199SXin Li `Gnomovision' (which makes passes at compilers) written by James Hacker. 339*9c5db199SXin Li 340*9c5db199SXin Li <signature of Ty Coon>, 1 April 1989 341*9c5db199SXin Li Ty Coon, President of Vice 342*9c5db199SXin Li 343*9c5db199SXin LiThis General Public License does not permit incorporating your program into 344*9c5db199SXin Liproprietary programs. If your program is a subroutine library, you may 345*9c5db199SXin Liconsider it more useful to permit linking proprietary applications with the 346*9c5db199SXin Lilibrary. If this is what you want to do, use the GNU Library General 347*9c5db199SXin LiPublic License instead of this License. 348