File: testing.md

package info (click to toggle)
gumbo-parser 0.13.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,900 kB
  • sloc: ansic: 30,496; cpp: 3,836; python: 890; makefile: 93; sh: 15
file content (39 lines) | stat: -rw-r--r-- 870 bytes parent folder | download
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
## Testing

Besides `autotools` you will need to have `cmake` installed.

Here's a summary of commands required to run tests:

```
cd gumbo-parser
./autogen.sh
./configure
rm -rf gtest
git clone --depth 1 https://github.com/google/googletest.git -b v1.15.2 gtest
make check
```

Gumbo's `make check` automatically builds gtest and then links in the library.

If you have gtest and its development files installed via package manager system
wide, then you can omit `git clone` command and run `make check` straightaway
not having directory `gtest` in project root.

Note for Ubuntu users: `libgtest-dev` package only install source files.
You have to build libraries yourself:

```
cd /usr/src/gtest
sudo cmake CMakeLists.txt
sudo make
sudo cp *.a /usr/lib
```

## html5lib-tests

```
git submodule update --init
```
```
python3 python/gumbo/html5lib_adapter_test.py
```