Skip to content

Commit 20f2ff8

Browse files
committed
update readme as per the recent change of hiding tests behind an option
1 parent 900d469 commit 20f2ff8

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

README.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ For AST traversing, see the [CppWriter](cppwriter), that uses the generated AST
9595
### Get the source
9696
9797
```sh
98-
git clone https://github.com/satya-das/common.git
9998
git clone https://github.com/satya-das/CppParser.git
10099
```
101100

@@ -106,7 +105,7 @@ cd cppparser
106105
mkdir builds
107106
cd builds
108107
cmake ..
109-
make && make test
108+
make
110109
```
111110

112111
*Alternatively, if you prefer `Ninja` instead of `make`*:
@@ -116,6 +115,27 @@ cd cppparser
116115
mkdir builds
117116
cd builds
118117
cmake -G Ninja ..
118+
ninja
119+
```
120+
121+
## For contributors who need to run tests
122+
123+
Make sure you also clone the dependencies. Run the following command in the parent directory of root of the `cppparser`.
124+
125+
```sh
126+
git clone https://github.com/satya-das/common.git
127+
```
128+
129+
After this command the `common` and `cppparser` should be in the same folder.
130+
131+
## Configure and run test
132+
133+
```sh
134+
cd cppparser
135+
mkdir builds
136+
cd builds
137+
cmake -G Ninja .. -DCPPPARSER_BUILD_TESTS=ON
119138
ninja && ninja test
120139
```
121140

141+
Modify the command if you prefer `make`.

0 commit comments

Comments
 (0)