Skip to content
This repository
Browse code

Don't include lcov; it skews github to think this is a Perl project

  • Loading branch information...
commit c5c00fab4f54a3bf07c35946e9afcfa6c074045e 1 parent a1bdf83
Jon Reid jonreid authored
3  .gitignore
@@ -4,6 +4,5 @@ build/
4 4 *.perspectivev3
5 5 project.xcworkspace/
6 6 xcuserdata/
7   -Source/TestSupport/env.sh
8   -
9 7 Source/TestSupport/environment.sh
  8 +Source/TestSupport/lcov-1.9
419 Source/TestSupport/lcov-1.9/CHANGES
... ... @@ -1,419 +0,0 @@
1   -Version 1.9
2   -===========
3   -
4   -genhtml:
5   -- Improved wording for branch representation tooltip text
6   -- Fixed vertical alignment of HTML branch representation
7   -
8   -geninfo:
9   -- Improved warning message about --initial not generating branch coverage data
10   -- Debugging messages are now printed to STDERR instead of STDOUT
11   -- Fixed problem with some .gcno files. Reported by gui@futarque.com.
12   - (file.gcno: reached unexpected end of file)
13   -- Fixed problem with relative build paths. Reported by zhanbiao2000@gmail.com.
14   - (cannot find an entry for ^#src#test.c.gcov in .gcno file, skipping file!)
15   -- Fixed problem where coverage data is missing for some files. Reported by
16   - weston_schmidt@open-roadster.com
17   -- Fixed problem where exclusion markers are ignored when gathering
18   - initial coverage data. Reported by ahmed_osman@mentor.com.
19   -- Fixed large execution counts showing as negative numbers in HTML output.
20   - Reported by kkyriako@yahoo.com.
21   -- Fixed problem that incorrectly associated branches outside of a block with
22   - branches inside the first block
23   -
24   -lcov:
25   -- Fixed problem that made lcov ignore --kernel-directory parameters when
26   - specifying --initial. Reported by hjia@redhat.com.
27   -- Added --list-full-path option to prevent lcov from truncating paths in list
28   - output
29   -- Added lcov_list_width and lcov_list_truncate_max directives to the
30   - lcov configuration file to allow for list output customization
31   -- Improved list output
32   -
33   -COPYING:
34   -- Added license text to better comply with GPL recommendations
35   -
36   -
37   -Version 1.8
38   -===========
39   -
40   -gendesc:
41   -- Fixed problem with single word descriptions
42   -
43   -genhtml:
44   -- Added support for branch coverage measurements
45   -- Added --demangle-cpp option to convert C++ function names to human readable
46   - format. Based on a patch by slava.semushin@gmail.com.
47   -- Improved color legend: legend display takes up less space in HTML output
48   -- Improved coverage rate limits: all coverage types use the same limits
49   - unless specified otherwise
50   -- Fixed CRLF line breaks in source code when generating html output. Based
51   - on patch by michael.knigge@set-software.de.
52   -- Fixed warning when $HOME is not set
53   -- Fixed problem with --baseline-file option. Reported by sixarm@gmail.com.
54   - (Undefined subroutine &main::add_fnccounts called at genhtml line 4560.)
55   -- Fixed problem with --baseline-file option and files without function
56   - coverage data (Can't use an undefined value as a HASH reference at genhtml
57   - line 4441.)
58   -- Fixed short-name option ambiguities
59   -- Fixed --highlight option not showing line data from converted test data
60   -- Fixed warnings about undefined value used. Reported by nikita@zhuk.fi.
61   -- Fixed error when processing tracefiles without function data. Reported
62   - by richard.corden@gmail.com (Can't use an undefined value as a HASH
63   - reference at genhtml line 1506.)
64   -
65   -geninfo:
66   -- Added support for branch coverage measurements
67   -- Added support for exclusion markers: Users can exclude lines of code from
68   - coverage reports by adding keywords to the source code.
69   -- Added --derive-func-data option
70   -- Added --debug option to better debug problems with graph files
71   -- Fixed CRLF line breaks in source code when generating tracefiles. Based on
72   - patch by michael.knigge@set-software.de.
73   -- Fixed problems with unnamed source files
74   -- Fixed warning when $HOME is not set. Reported by acalando@free.fr.
75   -- Fixed errors when processing unnamed source files
76   -- Fixed help text typo
77   -- Fixed errors when processing incomplete function names in .bb files
78   -- Fixed filename prefix detection
79   -- Fixed problem with matching filename
80   -- Fixed problem when LANG is set to non-english locale. Reported by
81   - benoit_belbezet@yahoo.fr.
82   -- Fixed short-name option ambiguities
83   -
84   -genpng:
85   -- Fixed runtime-warning
86   -
87   -lcov:
88   -- Added support for branch coverage measurements
89   -- Added support for the linux-2.6.31 upstream gcov kernel support
90   -- Added --from-package and --to-package options
91   -- Added --derive-func-data option
92   -- Added overall coverage result output for more operations
93   -- Improved output of lcov --list
94   -- Improved gcov-kernel handling
95   -- Fixed minor problem with --diff
96   -- Fixed double-counting of function data
97   -- Fixed warning when $HOME is not set. Reported by acalando@free.fr.
98   -- Fixed error when combining tracefiles without function data. Reported by
99   - richard.corden@gmail.com. (Can't use an undefined value as a HASH reference
100   - at lcov line 1341.)
101   -- Fixed help text typo
102   -- Fixed filename prefix detection
103   -- Fixed lcov ignoring information about converted test data
104   -
105   -README:
106   -- Added note to mention required -lgcov switch during linking
107   -
108   -
109   -Version 1.7:
110   -============
111   -
112   -gendesc:
113   -- Updated error and warning messages
114   -- Updated man page
115   -
116   -genhtml:
117   -- Added function coverage data display patch by tomzo@nefkom.net (default is on)
118   -- Added --function-coverage to enable function coverage display
119   -- Added --no-function-coverage to disable function coverage display
120   -- Added sorting option in HTLM output (default is on)
121   -- Added --sort to enable sorting
122   -- Added --no-sort to disable sorting
123   -- Added --html-gzip to create gzip-compressed HTML output (patch by
124   - dnozay@vmware.com)
125   -- Fixed problem when using --baseline-file on coverage data files that
126   - contain data for files not found in the baseline file
127   -- Updated error and warning messages
128   -- Updated man page
129   -
130   -geninfo:
131   -- Added function coverage data collection patch by tomzo@nefkom.net
132   -- Added more verbose output when a "ERROR: reading string" error occurs
133   - (patch by scott.heavner@philips.com)
134   -- Fixed geninfo not working with directory names containing spaces (reported
135   - by jeffconnelly@users.sourceforge.net)
136   -- Fixed "ERROR: reading string" problem with gcc 4.1
137   -- Fixed problem with function names that contain non-alphanumerical characters
138   -- Fixed problem with gcc versions before 3.3
139   -- Updated error and warning messages
140   -- Updated man page
141   -
142   -genpng:
143   -- Updated error and warning messages
144   -- Updated man page
145   -
146   -lcov:
147   -- Added support for function coverage data for adding/diffing tracefiles
148   -- Added --no-recursion option to disable recursion into sub-directories
149   - while scanning for gcov data files
150   -- Fixed lcov -z not working with directory names containing spaces (reported
151   - by Jeff Connelly)
152   -- Updated error and warning messages
153   -- Updated man page
154   -
155   -lcov.spec:
156   -- Updated of description and title information
157   -
158   -lcovrc:
159   -- Added genhtml_function_hi_limit
160   -- Added genhtml_function_med_limit
161   -- Added genhtml_function_coverage
162   -- Added genhtml_sort
163   -- Updated man page
164   -
165   -Makefile:
166   -- Updated info text
167   -
168   -
169   -Version 1.6:
170   -============
171   -
172   -geninfo:
173   -- Added libtool compatibility patch by thomas@apestaart.org (default is on)
174   -- Added --compat-libtool option to enable libtool compatibility mode
175   -- Added --no-compat-libtool option to disable libtool compatibility mode
176   -- Changed default for line checksumming to off
177   -- Added --checksum option to enable line checksumming
178   -- Added --gcov-tool option
179   -- Added --ignore-errors option
180   -- Added --initial option to generate zero coverage from graph files
181   -- Removed automatic test name modification on s390
182   -- Added --checksum option
183   -- Updated man page
184   -
185   -lcov:
186   -- Added libtool compatibility patch by thomas@apestaart.org
187   -- Added --compat-libtool option to enable libtool compatibility mode
188   -- Added --no-compat-libtool option to disable libtool compatibility mode
189   -- Added --checksum option to enable line checksumming
190   -- Added --gcov-tool option
191   -- Added --ignore-errors option
192   -- Added --initial option to generate zero coverage from graph files
193   -- Updated help text
194   -- Updated man page
195   -- Fixed lcov not working when -k is specified more than once
196   -- Fixed lcov not deleting .gcda files when specifying -z and -d
197   -
198   -lcovrc:
199   -- Added geninfo_compat_libtool option
200   -- Added geninfo_checksum option
201   -- Removed geninfo_no_checksum option from example lcovrc
202   -- Updated man page
203   -
204   -README:
205   -- Added description of lcovrc file
206   -
207   -
208   -Version 1.5:
209   -============
210   -
211   -genhtml:
212   -- Added check for invalid characters in test names
213   -- Added --legend option
214   -- Added --html-prolog option
215   -- Added --html-epilog option
216   -- Added --html-extension option
217   -- Added warning when specifying --no-prefix and --prefix
218   -- Reworked help text to make it more readable
219   -
220   -geninfo:
221   -- Renamed 'sles9' compatibility mode to 'hammer' compatibility mode
222   -- Added support for mandrake gcc 3.3.2
223   -- Fixed bbg file reading in hammer compatibility mode
224   -- Added check for invalid characters in test names
225   -- Added --base-directory option
226   -
227   -lcov:
228   -- Added check for invalid characters in test names
229   -- Added --base-directory option
230   -
231   -
232   -Version 1.4:
233   -============
234   -
235   -All:
236   -- Added configuration file support
237   -
238   -genhtml:
239   -- Fixed help text message
240   -- Fixed handling of special characters in file- and directory names
241   -- Added description of --css-file option to man page
242   -
243   -geninfo:
244   -- Added support for GCOV file format as used by GCC 3.3.3 on SUSE SLES9
245   -- Fixed error text message
246   -- Added check to abort processing if no source code file is available
247   -- Added workaround for a problem where geninfo could not find source code
248   - files for a C++ project
249   -- Fixed 'branch'-statement parsing for GCC>=3.3 .gcov files
250   -- Fixed exec count-statement parsing for GCC>=3.3 .gcov files
251   -- Fixed .gcno-file parser (some lines were not counted as being instrumented)
252   -
253   -lcov:
254   -- Modified path for temporary files from '.' to '/tmp'
255   -- Fixed comments
256   -- Removed unused function 'escape_shell'
257   -
258   -lcovrc:
259   -- Introduced sample configuration file
260   -
261   -Makefile:
262   -- Added rule to install configuration file
263   -- Fixed installation path for man pages
264   -
265   -
266   -Version 1.3:
267   -============
268   -
269   -All:
270   -- Added compatibility for gcc-3.4
271   -
272   -lcov:
273   -- Modified --diff function to better cope with ambiguous entries in patch files
274   -- Modified --capture option to use modprobe before insmod (needed for 2.6)
275   -- Added --path option required for --diff function
276   -
277   -
278   -Version 1.2:
279   -============
280   -
281   -All:
282   -- Added compatibility for gcc-3.3
283   -- Adjusted LCOV-URL (http://ltp.sourceforge.net/coverage/lcov.php)
284   -- Minor changes to whitespaces/line breaks/spelling
285   -- Modified call mechanism so that parameters for external commands are not
286   - parsed by the shell mechanism anymore (no more problems with special
287   - characters in paths/filenames)
288   -- Added checksumming mechanism: each tracefile now contains a checksum for
289   - each instrumented line to detect incompatible data
290   -
291   -Makefile:
292   -- Added rule to build source RPM
293   -- Changed install path for executables (/usr/local/bin -> /usr/bin)
294   -
295   -lcov.spec:
296   -- Modified to support building source rpms
297   -
298   -updateversion.pl:
299   -- Modified to include update of release number in spec file
300   -
301   -genhtml:
302   -- Fixed bug which would not correctly associate data sets with an empty
303   - test name (only necessary when using --show-details in genhtml)
304   -- Implemented new command line option '--nochecksum' to suppress generation
305   - of checksums
306   -- Implemented new command line option '--highlight' which highlights lines of
307   - code which were only covered in converted tracefiles (see '--diff' option of
308   - lcov)
309   -
310   -geninfo:
311   -- Added workaround for a bug in gcov shipped with gcc-3.2 which aborts when
312   - encountering empty .da files
313   -- Fixed geninfo so that it does not abort after encountering empty .bb files
314   -- Added function to collect branch coverage data
315   -- Added check for gcov tool
316   -- Added check for the '--preserve-paths' option of gcov; if available, this
317   - will prevent losing .gcov files in some special cases (include files with
318   - same name in different subdirectories)
319   -- Implemented new command line option '--follow' to control whether or not
320   - links should be followed while searching for .da files.
321   -- Implemented new command line option '--nochecksum' to suppress generation
322   - of checksums
323   -
324   -lcov:
325   -- Fixed bug which would not correctly associate data sets with an empty
326   - test name (only necessary when using --show-details in genhtml)
327   -- Cleaned up internal command line option check
328   -- Files are now processed in alphabetical order
329   -- Added message when reading tracefiles
330   -- Implemented new command line option '--nochecksum' to suppress generation
331   - of checksums
332   -- Implemented new command line option '--diff' which allows converting
333   - coverage data from an older source code version by using a diff file
334   - to map line numbers
335   -- Implemented new command line option '--follow' to control whether or not
336   - links should be followed while searching for .da files.
337   -
338   -genpng:
339   -- Added support for the highlighting option of genhtml
340   -- Corrected tab to spaces conversion
341   -- Modified genpng to take number of spaces to use in place of tab as input
342   - instead of replacement string
343   -
344   -
345   -Version 1.1:
346   -============
347   -
348   -- Added CHANGES file
349   -- Added Makefile implementing the following targets:
350   - * install : install LCOV scripts and man pages
351   - * uninstall : revert previous installation
352   - * dist : create lcov.tar.gz file and lcov.rpm file
353   - * clean : clean up example directory, remove .tar and .rpm files
354   -- Added man pages for all scripts
355   -- Added example program to demonstrate the use of LCOV with a userspace
356   - application
357   -- Implemented RPM build process
358   -- New directory structure:
359   - * bin : contains all executables
360   - * example : contains a userspace example for LCOV
361   - * man : contains man pages
362   - * rpm : contains files required for the RPM build process
363   -- LCOV-scripts are now in bin/
364   -- Removed .pl-extension from LCOV-script files
365   -- Renamed readme.txt to README
366   -
367   -README:
368   -- Adjusted mailing list address to ltp-coverage@lists.sourceforge.net
369   -- Fixed incorrect parameter '--output-filename' in example LCOV call
370   -- Removed tool descriptions and turned them into man pages
371   -- Installation instructions now refer to RPM and tarball
372   -
373   -descriptions.tests:
374   -- Fixed some spelling errors
375   -
376   -genhtml:
377   -- Fixed bug which resulted in an error when trying to combine .info files
378   - containing data without a test name
379   -- Fixed bug which would not correctly handle data files in directories
380   - with names containing some special characters ('+', etc.)
381   -- Added check for empty tracefiles to prevent division-by-zeros
382   -- Implemented new command line option --num-spaces / the number of spaces
383   - which replace a tab in source code view is now user defined
384   -- Fixed tab expansion so that in source code view, a tab doesn't produce a
385   - fixed number of spaces, but as many spaces as are needed to advance to the
386   - next tab position
387   -- Output directory is now created if it doesn't exist
388   -- Renamed "overview page" to "directory view page"
389   -- HTML output pages are now titled "LCOV" instead of "GCOV"
390   -- Information messages are now printed to STDERR instead of STDOUT
391   -
392   -geninfo:
393   -- Fixed bug which would not allow .info files to be generated in directories
394   - with names containing some special characters
395   -- Information messages are now printed to STDERR instead of STDOUT
396   -
397   -lcov:
398   -- Fixed bug which would cause lcov to fail when the tool is installed in
399   - a path with a name containing some special characters
400   -- Implemented new command line option '--add-tracefile' which allows the
401   - combination of data from several tracefiles
402   -- Implemented new command line option '--list' which lists the contents
403   - of a tracefile
404   -- Implemented new command line option '--extract' which allows extracting
405   - data for a particular set of files from a tracefile
406   -- Implemented new command line option '--remove' which allows removing
407   - data for a particular set of files from a tracefile
408   -- Renamed '--reset' to '--zerocounters' to avoid a naming ambiguity with
409   - '--remove'
410   -- Changed name of gcov kernel directory from /proc/gcov to a global constant
411   - so that it may be changed easily when required in future versions
412   -- Information messages are now printed to STDERR instead of STDOUT
413   -
414   -
415   -Version 1.0 (2002-09-05):
416   -=========================
417   -
418   -- Initial version
419   -
339 Source/TestSupport/lcov-1.9/COPYING
... ... @@ -1,339 +0,0 @@
1   - GNU GENERAL PUBLIC LICENSE
2   - Version 2, June 1991
3   -
4   - Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
5   - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
6   - Everyone is permitted to copy and distribute verbatim copies
7   - of this license document, but changing it is not allowed.
8   -
9   - Preamble
10   -
11   - The licenses for most software are designed to take away your
12   -freedom to share and change it. By contrast, the GNU General Public
13   -License is intended to guarantee your freedom to share and change free
14   -software--to make sure the software is free for all its users. This
15   -General Public License applies to most of the Free Software
16   -Foundation's software and to any other program whose authors commit to
17   -using it. (Some other Free Software Foundation software is covered by
18   -the GNU Lesser General Public License instead.) You can apply it to
19   -your programs, too.
20   -
21   - When we speak of free software, we are referring to freedom, not
22   -price. Our General Public Licenses are designed to make sure that you
23   -have the freedom to distribute copies of free software (and charge for
24   -this service if you wish), that you receive source code or can get it
25   -if you want it, that you can change the software or use pieces of it
26   -in new free programs; and that you know you can do these things.
27   -
28   - To protect your rights, we need to make restrictions that forbid
29   -anyone to deny you these rights or to ask you to surrender the rights.
30   -These restrictions translate to certain responsibilities for you if you
31   -distribute copies of the software, or if you modify it.
32   -
33   - For example, if you distribute copies of such a program, whether
34   -gratis or for a fee, you must give the recipients all the rights that
35   -you have. You must make sure that they, too, receive or can get the
36   -source code. And you must show them these terms so they know their
37   -rights.
38   -
39   - We protect your rights with two steps: (1) copyright the software, and
40   -(2) offer you this license which gives you legal permission to copy,
41   -distribute and/or modify the software.
42   -
43   - Also, for each author's protection and ours, we want to make certain
44   -that everyone understands that there is no warranty for this free
45   -software. If the software is modified by someone else and passed on, we
46   -want its recipients to know that what they have is not the original, so
47   -that any problems introduced by others will not reflect on the original
48   -authors' reputations.
49   -
50   - Finally, any free program is threatened constantly by software
51   -patents. We wish to avoid the danger that redistributors of a free
52   -program will individually obtain patent licenses, in effect making the
53   -program proprietary. To prevent this, we have made it clear that any
54   -patent must be licensed for everyone's free use or not licensed at all.
55   -
56   - The precise terms and conditions for copying, distribution and
57   -modification follow.
58   -
59   - GNU GENERAL PUBLIC LICENSE
60   - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61   -
62   - 0. This License applies to any program or other work which contains
63   -a notice placed by the copyright holder saying it may be distributed
64   -under the terms of this General Public License. The "Program", below,
65   -refers to any such program or work, and a "work based on the Program"
66   -means either the Program or any derivative work under copyright law:
67   -that is to say, a work containing the Program or a portion of it,
68   -either verbatim or with modifications and/or translated into another
69   -language. (Hereinafter, translation is included without limitation in
70   -the term "modification".) Each licensee is addressed as "you".
71   -
72   -Activities other than copying, distribution and modification are not
73   -covered by this License; they are outside its scope. The act of
74   -running the Program is not restricted, and the output from the Program
75   -is covered only if its contents constitute a work based on the
76   -Program (independent of having been made by running the Program).
77   -Whether that is true depends on what the Program does.
78   -
79   - 1. You may copy and distribute verbatim copies of the Program's
80   -source code as you receive it, in any medium, provided that you
81   -conspicuously and appropriately publish on each copy an appropriate
82   -copyright notice and disclaimer of warranty; keep intact all the
83   -notices that refer to this License and to the absence of any warranty;
84   -and give any other recipients of the Program a copy of this License
85   -along with the Program.
86   -
87   -You may charge a fee for the physical act of transferring a copy, and
88   -you may at your option offer warranty protection in exchange for a fee.
89   -
90   - 2. You may modify your copy or copies of the Program or any portion
91   -of it, thus forming a work based on the Program, and copy and
92   -distribute such modifications or work under the terms of Section 1
93   -above, provided that you also meet all of these conditions:
94   -
95   - a) You must cause the modified files to carry prominent notices
96   - stating that you changed the files and the date of any change.
97   -
98   - b) You must cause any work that you distribute or publish, that in
99   - whole or in part contains or is derived from the Program or any
100   - part thereof, to be licensed as a whole at no charge to all third
101   - parties under the terms of this License.
102   -
103   - c) If the modified program normally reads commands interactively
104   - when run, you must cause it, when started running for such
105   - interactive use in the most ordinary way, to print or display an
106   - announcement including an appropriate copyright notice and a
107   - notice that there is no warranty (or else, saying that you provide
108   - a warranty) and that users may redistribute the program under
109   - these conditions, and telling the user how to view a copy of this
110   - License. (Exception: if the Program itself is interactive but
111   - does not normally print such an announcement, your work based on
112   - the Program is not required to print an announcement.)
113   -
114   -These requirements apply to the modified work as a whole. If
115   -identifiable sections of that work are not derived from the Program,
116   -and can be reasonably considered independent and separate works in
117   -themselves, then this License, and its terms, do not apply to those
118   -sections when you distribute them as separate works. But when you
119   -distribute the same sections as part of a whole which is a work based
120   -on the Program, the distribution of the whole must be on the terms of
121   -this License, whose permissions for other licensees extend to the
122   -entire whole, and thus to each and every part regardless of who wrote it.
123   -
124   -Thus, it is not the intent of this section to claim rights or contest
125   -your rights to work written entirely by you; rather, the intent is to
126   -exercise the right to control the distribution of derivative or
127   -collective works based on the Program.
128   -
129   -In addition, mere aggregation of another work not based on the Program
130   -with the Program (or with a work based on the Program) on a volume of
131   -a storage or distribution medium does not bring the other work under
132   -the scope of this License.
133   -
134   - 3. You may copy and distribute the Program (or a work based on it,
135   -under Section 2) in object code or executable form under the terms of
136   -Sections 1 and 2 above provided that you also do one of the following:
137   -
138   - a) Accompany it with the complete corresponding machine-readable
139   - source code, which must be distributed under the terms of Sections
140   - 1 and 2 above on a medium customarily used for software interchange; or,
141   -
142   - b) Accompany it with a written offer, valid for at least three
143   - years, to give any third party, for a charge no more than your
144   - cost of physically performing source distribution, a complete
145   - machine-readable copy of the corresponding source code, to be
146   - distributed under the terms of Sections 1 and 2 above on a medium
147   - customarily used for software interchange; or,
148   -
149   - c) Accompany it with the information you received as to the offer
150   - to distribute corresponding source code. (This alternative is
151   - allowed only for noncommercial distribution and only if you
152   - received the program in object code or executable form with such
153   - an offer, in accord with Subsection b above.)
154   -
155   -The source code for a work means the preferred form of the work for
156   -making modifications to it. For an executable work, complete source
157   -code means all the source code for all modules it contains, plus any
158   -associated interface definition files, plus the scripts used to
159   -control compilation and installation of the executable. However, as a
160   -special exception, the source code distributed need not include
161   -anything that is normally distributed (in either source or binary
162   -form) with the major components (compiler, kernel, and so on) of the
163   -operating system on which the executable runs, unless that component
164   -itself accompanies the executable.
165   -
166   -If distribution of executable or object code is made by offering
167   -access to copy from a designated place, then offering equivalent
168   -access to copy the source code from the same place counts as
169   -distribution of the source code, even though third parties are not
170   -compelled to copy the source along with the object code.
171   -
172   - 4. You may not copy, modify, sublicense, or distribute the Program
173   -except as expressly provided under this License. Any attempt
174   -otherwise to copy, modify, sublicense or distribute the Program is
175   -void, and will automatically terminate your rights under this License.
176   -However, parties who have received copies, or rights, from you under
177   -this License will not have their licenses terminated so long as such
178   -parties remain in full compliance.
179   -
180   - 5. You are not required to accept this License, since you have not
181   -signed it. However, nothing else grants you permission to modify or
182   -distribute the Program or its derivative works. These actions are
183   -prohibited by law if you do not accept this License. Therefore, by
184   -modifying or distributing the Program (or any work based on the
185   -Program), you indicate your acceptance of this License to do so, and
186   -all its terms and conditions for copying, distributing or modifying
187   -the Program or works based on it.
188   -
189   - 6. Each time you redistribute the Program (or any work based on the
190   -Program), the recipient automatically receives a license from the
191   -original licensor to copy, distribute or modify the Program subject to
192   -these terms and conditions. You may not impose any further
193   -restrictions on the recipients' exercise of the rights granted herein.
194   -You are not responsible for enforcing compliance by third parties to
195   -this License.
196   -
197   - 7. If, as a consequence of a court judgment or allegation of patent
198   -infringement or for any other reason (not limited to patent issues),
199   -conditions are imposed on you (whether by court order, agreement or
200   -otherwise) that contradict the conditions of this License, they do not
201   -excuse you from the conditions of this License. If you cannot
202   -distribute so as to satisfy simultaneously your obligations under this
203   -License and any other pertinent obligations, then as a consequence you
204   -may not distribute the Program at all. For example, if a patent
205   -license would not permit royalty-free redistribution of the Program by
206   -all those who receive copies directly or indirectly through you, then
207   -the only way you could satisfy both it and this License would be to
208   -refrain entirely from distribution of the Program.
209   -
210   -If any portion of this section is held invalid or unenforceable under
211   -any particular circumstance, the balance of the section is intended to
212   -apply and the section as a whole is intended to apply in other
213   -circumstances.
214   -
215   -It is not the purpose of this section to induce you to infringe any
216   -patents or other property right claims or to contest validity of any
217   -such claims; this section has the sole purpose of protecting the
218   -integrity of the free software distribution system, which is
219   -implemented by public license practices. Many people have made
220   -generous contributions to the wide range of software distributed
221   -through that system in reliance on consistent application of that
222   -system; it is up to the author/donor to decide if he or she is willing
223   -to distribute software through any other system and a licensee cannot
224   -impose that choice.
225   -
226   -This section is intended to make thoroughly clear what is believed to
227   -be a consequence of the rest of this License.
228   -
229   - 8. If the distribution and/or use of the Program is restricted in
230   -certain countries either by patents or by copyrighted interfaces, the
231   -original copyright holder who places the Program under this License
232   -may add an explicit geographical distribution limitation excluding
233   -those countries, so that distribution is permitted only in or among
234   -countries not thus excluded. In such case, this License incorporates
235   -the limitation as if written in the body of this License.
236   -
237   - 9. The Free Software Foundation may publish revised and/or new versions
238   -of the General Public License from time to time. Such new versions will
239   -be similar in spirit to the present version, but may differ in detail to
240   -address new problems or concerns.
241   -
242   -Each version is given a distinguishing version number. If the Program
243   -specifies a version number of this License which applies to it and "any
244   -later version", you have the option of following the terms and conditions
245   -either of that version or of any later version published by the Free
246   -Software Foundation. If the Program does not specify a version number of
247   -this License, you may choose any version ever published by the Free Software
248   -Foundation.
249   -
250   - 10. If you wish to incorporate parts of the Program into other free
251   -programs whose distribution conditions are different, write to the author
252   -to ask for permission. For software which is copyrighted by the Free
253   -Software Foundation, write to the Free Software Foundation; we sometimes
254   -make exceptions for this. Our decision will be guided by the two goals
255   -of preserving the free status of all derivatives of our free software and
256   -of promoting the sharing and reuse of software generally.
257   -
258   - NO WARRANTY
259   -
260   - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261   -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
262   -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263   -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264   -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265   -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
266   -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
267   -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268   -REPAIR OR CORRECTION.
269   -
270   - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271   -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272   -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273   -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274   -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275   -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276   -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277   -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278   -POSSIBILITY OF SUCH DAMAGES.
279   -
280   - END OF TERMS AND CONDITIONS
281   -
282   - How to Apply These Terms to Your New Programs
283   -
284   - If you develop a new program, and you want it to be of the greatest
285   -possible use to the public, the best way to achieve this is to make it
286   -free software which everyone can redistribute and change under these terms.
287   -
288   - To do so, attach the following notices to the program. It is safest
289   -to attach them to the start of each source file to most effectively
290   -convey the exclusion of warranty; and each file should have at least
291   -the "copyright" line and a pointer to where the full notice is found.
292   -
293   - <one line to give the program's name and a brief idea of what it does.>
294   - Copyright (C) <year> <name of author>
295   -
296   - This program is free software; you can redistribute it and/or modify
297   - it under the terms of the GNU General Public License as published by
298   - the Free Software Foundation; either version 2 of the License, or
299   - (at your option) any later version.
300   -
301   - This program is distributed in the hope that it will be useful,
302   - but WITHOUT ANY WARRANTY; without even the implied warranty of
303   - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
304   - GNU General Public License for more details.
305   -
306   - You should have received a copy of the GNU General Public License along
307   - with this program; if not, write to the Free Software Foundation, Inc.,
308   - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
309   -
310   -Also add information on how to contact you by electronic and paper mail.
311   -
312   -If the program is interactive, make it output a short notice like this
313   -when it starts in an interactive mode:
314   -
315   - Gnomovision version 69, Copyright (C) year name of author
316   - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
317   - This is free software, and you are welcome to redistribute it
318   - under certain conditions; type `show c' for details.
319   -
320   -The hypothetical commands `show w' and `show c' should show the appropriate
321   -parts of the General Public License. Of course, the commands you use may
322   -be called something other than `show w' and `show c'; they could even be
323   -mouse-clicks or menu items--whatever suits your program.
324   -
325   -You should also get your employer (if you work as a programmer) or your
326   -school, if any, to sign a "copyright disclaimer" for the program, if
327   -necessary. Here is a sample; alter the names:
328   -
329   - Yoyodyne, Inc., hereby disclaims all copyright interest in the program
330   - `Gnomovision' (which makes passes at compilers) written by James Hacker.
331   -
332   - <signature of Ty Coon>, 1 April 1989
333   - Ty Coon, President of Vice
334   -
335   -This General Public License does not permit incorporating your program into
336   -proprietary programs. If your program is a subroutine library, you may
337   -consider it more useful to permit linking proprietary applications with the
338   -library. If this is what you want to do, use the GNU Lesser General
339   -Public License instead of this License.
99 Source/TestSupport/lcov-1.9/Makefile
... ... @@ -1,99 +0,0 @@
1   -#
2   -# Makefile for LCOV
3   -#
4   -# Make targets:
5   -# - install: install LCOV tools and man pages on the system
6   -# - uninstall: remove tools and man pages from the system
7   -# - dist: create files required for distribution, i.e. the lcov.tar.gz
8   -# and the lcov.rpm file. Just make sure to adjust the VERSION
9   -# and RELEASE variables below - both version and date strings
10   -# will be updated in all necessary files.
11   -# - clean: remove all generated files
12   -#
13   -
14   -VERSION := 1.9
15   -RELEASE := 1
16   -
17   -CFG_DIR := $(PREFIX)/etc
18   -BIN_DIR := $(PREFIX)/usr/bin
19   -MAN_DIR := $(PREFIX)/usr/share/man
20   -TMP_DIR := /tmp/lcov-tmp.$(shell echo $$$$)
21   -FILES := $(wildcard bin/*) $(wildcard man/*) README CHANGES Makefile \
22   - $(wildcard rpm/*) lcovrc
23   -
24   -.PHONY: all info clean install uninstall rpms
25   -
26   -all: info
27   -
28   -info:
29   - @echo "Available make targets:"
30   - @echo " install : install binaries and man pages in PREFIX (default /)"
31   - @echo " uninstall : delete binaries and man pages from PREFIX (default /)"
32   - @echo " dist : create packages (RPM, tarball) ready for distribution"
33   -
34   -clean:
35   - rm -f lcov-*.tar.gz
36   - rm -f lcov-*.rpm
37   - make -C example clean
38   -
39   -install:
40   - bin/install.sh bin/lcov $(BIN_DIR)/lcov -m 755
41   - bin/install.sh bin/genhtml $(BIN_DIR)/genhtml -m 755
42   - bin/install.sh bin/geninfo $(BIN_DIR)/geninfo -m 755
43   - bin/install.sh bin/genpng $(BIN_DIR)/genpng -m 755
44   - bin/install.sh bin/gendesc $(BIN_DIR)/gendesc -m 755
45   - bin/install.sh man/lcov.1 $(MAN_DIR)/man1/lcov.1 -m 644
46   - bin/install.sh man/genhtml.1 $(MAN_DIR)/man1/genhtml.1 -m 644
47   - bin/install.sh man/geninfo.1 $(MAN_DIR)/man1/geninfo.1 -m 644
48   - bin/install.sh man/genpng.1 $(MAN_DIR)/man1/genpng.1 -m 644
49   - bin/install.sh man/gendesc.1 $(MAN_DIR)/man1/gendesc.1 -m 644
50   - bin/install.sh man/lcovrc.5 $(MAN_DIR)/man5/lcovrc.5 -m 644
51   - bin/install.sh lcovrc $(CFG_DIR)/lcovrc -m 644
52   -
53   -uninstall:
54   - bin/install.sh --uninstall bin/lcov $(BIN_DIR)/lcov
55   - bin/install.sh --uninstall bin/genhtml $(BIN_DIR)/genhtml
56   - bin/install.sh --uninstall bin/geninfo $(BIN_DIR)/geninfo
57   - bin/install.sh --uninstall bin/genpng $(BIN_DIR)/genpng
58   - bin/install.sh --uninstall bin/gendesc $(BIN_DIR)/gendesc
59   - bin/install.sh --uninstall man/lcov.1 $(MAN_DIR)/man1/lcov.1
60   - bin/install.sh --uninstall man/genhtml.1 $(MAN_DIR)/man1/genhtml.1
61   - bin/install.sh --uninstall man/geninfo.1 $(MAN_DIR)/man1/geninfo.1
62   - bin/install.sh --uninstall man/genpng.1 $(MAN_DIR)/man1/genpng.1
63   - bin/install.sh --uninstall man/gendesc.1 $(MAN_DIR)/man1/gendesc.1
64   - bin/install.sh --uninstall man/lcovrc.5 $(MAN_DIR)/man5/lcovrc.5
65   - bin/install.sh --uninstall lcovrc $(CFG_DIR)/lcovrc
66   -
67   -dist: lcov-$(VERSION).tar.gz lcov-$(VERSION)-$(RELEASE).noarch.rpm \
68   - lcov-$(VERSION)-$(RELEASE).src.rpm
69   -
70   -lcov-$(VERSION).tar.gz: $(FILES)
71   - mkdir $(TMP_DIR)
72   - mkdir $(TMP_DIR)/lcov-$(VERSION)
73   - cp -r * $(TMP_DIR)/lcov-$(VERSION)
74   - find $(TMP_DIR)/lcov-$(VERSION) -name CVS -type d | xargs rm -rf
75   - make -C $(TMP_DIR)/lcov-$(VERSION) clean
76   - bin/updateversion.pl $(TMP_DIR)/lcov-$(VERSION) $(VERSION) $(RELEASE)
77   - cd $(TMP_DIR) ; \
78   - tar cfz $(TMP_DIR)/lcov-$(VERSION).tar.gz lcov-$(VERSION)
79   - mv $(TMP_DIR)/lcov-$(VERSION).tar.gz .
80   - rm -rf $(TMP_DIR)
81   -
82   -lcov-$(VERSION)-$(RELEASE).noarch.rpm: rpms
83   -lcov-$(VERSION)-$(RELEASE).src.rpm: rpms
84   -
85   -rpms: lcov-$(VERSION).tar.gz
86   - mkdir $(TMP_DIR)
87   - mkdir $(TMP_DIR)/BUILD
88   - mkdir $(TMP_DIR)/RPMS
89   - mkdir $(TMP_DIR)/SOURCES
90   - mkdir $(TMP_DIR)/SRPMS
91   - cp lcov-$(VERSION).tar.gz $(TMP_DIR)/SOURCES
92   - cd $(TMP_DIR)/BUILD ; \
93   - tar xfz $(TMP_DIR)/SOURCES/lcov-$(VERSION).tar.gz \
94   - lcov-$(VERSION)/rpm/lcov.spec
95   - rpmbuild --define '_topdir $(TMP_DIR)' \
96   - -ba $(TMP_DIR)/BUILD/lcov-$(VERSION)/rpm/lcov.spec
97   - mv $(TMP_DIR)/RPMS/noarch/lcov-$(VERSION)-$(RELEASE).noarch.rpm .
98   - mv $(TMP_DIR)/SRPMS/lcov-$(VERSION)-$(RELEASE).src.rpm .
99   - rm -rf $(TMP_DIR)
137 Source/TestSupport/lcov-1.9/README
... ... @@ -1,137 +0,0 @@
1   --------------------------------------------------
2   -- README file for the LTP GCOV extension (LCOV) -
3   -- Last changes: 2010-08-06 -
4   --------------------------------------------------
5   -
6   -Description
7   ------------
8   - LCOV is an extension of GCOV, a GNU tool which provides information about
9   - what parts of a program are actually executed (i.e. "covered") while running
10   - a particular test case. The extension consists of a set of PERL scripts
11   - which build on the textual GCOV output to implement the following enhanced
12   - functionality:
13   -
14   - * HTML based output: coverage rates are additionally indicated using bar
15   - graphs and specific colors.
16   -
17   - * Support for large projects: overview pages allow quick browsing of
18   - coverage data by providing three levels of detail: directory view,
19   - file view and source code view.
20   -
21   - LCOV was initially designed to support Linux kernel coverage measurements,
22   - but works as well for coverage measurements on standard user space
23   - applications.
24   -
25   -
26   -Further README contents
27   ------------------------
28   - 1. Included files
29   - 2. Installing LCOV
30   - 3. An example of how to access kernel coverage data
31   - 4. An example of how to access coverage data for a user space program
32   - 5. Questions and Comments
33   -
34   -
35   -
36   -1. Important files
37   -------------------
38   - README - This README file
39   - CHANGES - List of changes between releases
40   - bin/lcov - Tool for capturing LCOV coverage data
41   - bin/genhtml - Tool for creating HTML output from LCOV data
42   - bin/gendesc - Tool for creating description files as used by genhtml
43   - bin/geninfo - Internal tool (creates LCOV data files)
44   - bin/genpng - Internal tool (creates png overviews of source files)
45   - bin/install.sh - Internal tool (takes care of un-/installing)
46   - descriptions.tests - Test descriptions for the LTP suite, use with gendesc
47   - man - Directory containing man pages for included tools
48   - example - Directory containing an example to demonstrate LCOV
49   - lcovrc - LCOV configuration file
50   - Makefile - Makefile providing 'install' and 'uninstall' targets
51   -
52   -
53   -2. Installing LCOV
54   -------------------
55   -The LCOV package is available as either RPM or tarball from:
56   -
57   - http://ltp.sourceforge.net/coverage/lcov.php
58   -
59   -To install the tarball, unpack it to a directory and run:
60   -
61   - make install
62   -
63   -Use anonymous CVS for the most recent (but possibly unstable) version:
64   -
65   - cvs -d:pserver:anonymous@ltp.cvs.sourceforge.net:/cvsroot/ltp login
66   -
67   -(simply press the ENTER key when asked for a password)
68   -
69   - cvs -z3 -d:pserver:anonymous@ltp.cvs.sourceforge.net:/cvsroot/ltp export -D now utils
70   -
71   -Change to the utils/analysis/lcov directory and type:
72   -
73   - make install
74   -
75   -
76   -3. An example of how to access kernel coverage data
77   ----------------------------------------------------
78   -Requirements: get and install the gcov-kernel package from
79   -
80   - http://sourceforge.net/projects/ltp
81   -
82   -Copy the resulting gcov kernel module file to either the system wide modules
83   -directory or the same directory as the PERL scripts. As root, do the following:
84   -
85   - a) Resetting counters
86   -
87   - lcov --zerocounters
88   -
89   - b) Capturing the current coverage state to a file
90   -
91   - lcov --capture --output-file kernel.info
92   -
93   - c) Getting HTML output
94   -
95   - genhtml kernel.info
96   -
97   -Point the web browser of your choice to the resulting index.html file.
98   -
99   -
100   -4. An example of how to access coverage data for a user space program
101   ----------------------------------------------------------------------
102   -Requirements: compile the program in question using GCC with the options
103   --fprofile-arcs and -ftest-coverage. During linking, make sure to specify
104   --lgcov or -coverage.
105   -
106   -Assuming the compile directory is called "appdir", do the following:
107   -
108   - a) Resetting counters
109   -
110   - lcov --directory appdir --zerocounters
111   -
112   - b) Capturing the current coverage state to a file (works only after the
113   - application has been started and stopped at least once)
114   -
115   - lcov --directory appdir --capture --output-file app.info
116   -
117   - c) Getting HTML output
118   -
119   - genhtml app.info
120   -
121   -Point the web browser of your choice to the resulting index.html file.
122   -
123   -Please note that independently of where the application is installed or
124   -from which directory it is run, the --directory statement needs to
125   -point to the directory in which the application was compiled.
126   -
127   -For further information on the gcc profiling mechanism, please also
128   -consult the gcov man page.
129   -
130   -
131   -5. Questions and comments
132   --------------------------
133   -See the included man pages for more information on how to use the LCOV tools.
134   -
135   -Please email further questions or comments regarding this tool to the
136   -LTP Mailing list at ltp-coverage@lists.sourceforge.net
137   -
226 Source/TestSupport/lcov-1.9/bin/gendesc
... ... @@ -1,226 +0,0 @@
1   -#!/usr/bin/perl -w
2   -#
3   -# Copyright (c) International Business Machines Corp., 2002
4   -#
5   -# This program is free software; you can redistribute it and/or modify
6   -# it under the terms of the GNU General Public License as published by
7   -# the Free Software Foundation; either version 2 of the License, or (at
8   -# your option) any later version.
9   -#
10   -# This program is distributed in the hope that it will be useful, but
11   -# WITHOUT ANY WARRANTY; without even the implied warranty of
12   -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13   -# General Public License for more details.
14   -#
15   -# You should have received a copy of the GNU General Public License
16   -# along with this program; if not, write to the Free Software
17   -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18   -#
19   -#
20   -# gendesc
21   -#
22   -# This script creates a description file as understood by genhtml.
23   -# Input file format:
24   -#
25   -# For each test case:
26   -# <test name><optional whitespace>
27   -# <at least one whitespace character (blank/tab)><test description>
28   -#
29   -# Actual description may consist of several lines. By default, output is
30   -# written to stdout. Test names consist of alphanumeric characters
31   -# including _ and -.
32   -#
33   -#
34   -# History:
35   -# 2002-09-02: created by Peter Oberparleiter <Peter.Oberparleiter@de.ibm.com>
36   -#
37   -
38   -use strict;
39   -use File::Basename;
40   -use Getopt::Long;
41   -
42   -
43   -# Constants
44   -our $lcov_version = 'LCOV version 1.9';
45   -our $lcov_url = "http://ltp.sourceforge.net/coverage/lcov.php";
46   -our $tool_name = basename($0);
47   -
48   -
49   -# Prototypes
50   -sub print_usage(*);
51   -sub gen_desc();
52   -sub warn_handler($);
53   -sub die_handler($);
54   -
55   -
56   -# Global variables
57   -our $help;
58   -our $version;
59   -our $output_filename;
60   -our $input_filename;
61   -
62   -
63   -#
64   -# Code entry point
65   -#
66   -
67   -$SIG{__WARN__} = \&warn_handler;
68   -$SIG{__DIE__} = \&die_handler;
69   -
70   -# Prettify version string
71   -$lcov_version =~ s/\$\s*Revision\s*:?\s*(\S+)\s*\$/$1/;
72   -
73   -# Parse command line options
74   -if (!GetOptions("output-filename=s" => \$output_filename,
75   - "version" =>\$version,
76   - "help|?" => \$help
77   - ))
78   -{
79   - print(STDERR "Use $tool_name --help to get usage information\n");
80   - exit(1);
81   -}
82   -
83   -$input_filename = $ARGV[0];
84   -
85   -# Check for help option
86   -if ($help)
87   -{
88   - print_usage(*STDOUT);
89   - exit(0);
90   -}
91   -
92   -# Check for version option
93   -if ($version)
94   -{
95   - print("$tool_name: $lcov_version\n");
96   - exit(0);
97   -}
98   -
99   -
100   -# Check for input filename
101   -if (!$input_filename)
102   -{
103   - die("No input filename specified\n".
104   - "Use $tool_name --help to get usage information\n");
105   -}
106   -
107   -# Do something
108   -gen_desc();
109   -
110   -
111   -#
112   -# print_usage(handle)
113   -#
114   -# Write out command line usage information to given filehandle.
115   -#
116   -
117   -sub print_usage(*)
118   -{
119   - local *HANDLE = $_[0];
120   -
121   - print(HANDLE <<END_OF_USAGE)
122   -Usage: $tool_name [OPTIONS] INPUTFILE
123   -
124   -Convert a test case description file into a format as understood by genhtml.
125   -
126   - -h, --help Print this help, then exit
127   - -v, --version Print version number, then exit
128