forked from Suresoft-GLaDOS/bugscpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.rst.template
141 lines (90 loc) · 3.68 KB
/
README.rst.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
Defects4Cpp
===========
.. begin abstract
|gitHub-actions-badge| |taxonomy-badge| |docs| |tests-badge| |coverage-badge|
`Defects4Cpp` is another collection of reproducible bugs for C/C++ and a supporting infrastructure with the goal of automatic program debugging research
inspired by `Defects4J`_.
.. _`Defects4J`: https://github.com/rjust/defects4j
.. |github-actions-badge| image:: https://github.com/Suresoft-GLaDOS/defects4cpp/actions/workflows/build.yml/badge.svg
:alt: Build
.. |taxonomy-badge| image:: https://github.com/Suresoft-GLaDOS/defects4cpp/actions/workflows/taxonomy.yml/badge.svg
:alt: Taxonomy
.. |docs| image:: https://github.com/Suresoft-GLaDOS/defects4cpp/actions/workflows/deploy-gh-pages.yml/badge.svg
:alt: Docs
.. |tests-badge| image:: https://suresoft-glados.github.io/defects4cpp/reports/junit/tests-badge.svg?dummy=8484744
:target: https://suresoft-glados.github.io/defects4cpp/reports/junit/report.html
:alt: Tests
.. |coverage-badge| image:: https://suresoft-glados.github.io/defects4cpp/reports/coverage/coverage-badge.svg?dummy=8484744
:target: https://suresoft-glados.github.io/defects4cpp/reports/coverage/index.html
:alt: Coverage Status
.. end abstract
Installation
============
.. begin installation
Docker daemon must be running in background in order to run.
.. end installation
Example
=======
.. begin example
A list of defect taxonomy can be displayed via the following:
::
python3 defects4cpp/d++.py show
For the rest commands to work, you need to checkout one of projects in the list displayed in the previous step.
For instance, if you want to checkout `cpp_peglib` project:
::
$ python3 defects4cpp/d++.py checkout cpp_peglib 1
Finally, to build and test `cpp_peglib`, or any project you've just cloned, run the following sequence of commands:
::
$ python3 defects4cpp/d++.py build /path/to/cpp_peglib/fixed#1
$ python3 defects4cpp/d++.py test /path/to/cpp_peglib/fixed#1
You can run some test cases separately like this:
::
$ python3 defects4cpp/d++.py test /path/to/cpp_peglib/fixed#1 --case 1-4,7
However, you are probably interested in a snapshot where a buggy commit is just made.
The command is exactly the same except that ``--buggy`` flag is set.
::
$ python3 defects4cpp/d++.py checkout cpp_peglib 1 --buggy
Set ``--coverage`` to generate `.gcov` data.
::
$ python3 defects4cpp/d++.py build /path/to/cpp_peglib/buggy#1 --coverage
$ python3 defects4cpp/d++.py test /path/to/cpp_peglib/buggy#1 --coverage
You'll see the artifact is generated in the current directory.
::
$ ls
/path/to/cpp_peglib-fixed#1-1
/path/to/cpp_peglib-fixed#1-2
/path/to/cpp_peglib-fixed#1-3
...
You can also see the buggy artifact is generated in the current directory.
::
$ ls
/path/to/cpp_peglib-buggy#1-1
/path/to/cpp_peglib-buggy#1-2
/path/to/cpp_peglib-buggy#1-3
...
.. end example
Table of Defects
===============
@TABLE_OF_DEFECTS@
Documentation
=============
For full documentation, please see `github.io`_.
.. _`github.io`: https://suresoft-glados.github.io/defects4cpp/
Bugs/Requests/Contributing
==========================
.. begin contribute
If you want to report a bug, request features or submit a pull request,
please use the gitHub issue tracker to submit them.
.. end contribute
Change Log
==========
.. begin changelog
.. end changelog
License
=======
.. begin license
Copyright `Suresoft Technologies Inc`_, 2021.
Distributed under the terms of the `MIT`_ license, Defects4Cpp is free and open source software.
.. _`MIT`: https://github.com/Suresoft-GLaDOS/defects4cpp/blob/main/LICENSE
.. _`Suresoft Technologies Inc`: http://www.suresofttech.com/en/main/index.php
.. end license