Skip to content

Commit 637fcd9

Browse files
committed
Update README build instructions and add testing section
Update the build-from-git instructions to include the gnulib-update.sh and bootstrap steps, and add a section explaining how to run the test suite. Assisted-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b9724b1 commit 637fcd9

File tree

1 file changed

+26
-7
lines changed

1 file changed

+26
-7
lines changed

README

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,39 @@ Patchutils is a small collection of programs that operate on patch files. It pro
5757

5858
- **svndiff** / **svndiffview** - Subversion-specific diff viewing tools.
5959

60-
## Installation
61-
62-
Patchutils uses the standard GNU autotools build system:
60+
## Building from the Git repository
6361

6462
```bash
63+
./gnulib-update.sh
64+
./bootstrap
6565
./configure
66-
make
66+
make -j$(nproc)
67+
```
68+
69+
The `gnulib-update.sh` and `./bootstrap` steps are only needed once
70+
(or when `configure.ac` / `Makefile.am` change). After that, just
71+
`./configure && make` is sufficient.
72+
73+
This requires **automake**, **autoconf**, and **gnulib-devel** to be
74+
installed on your system.
75+
76+
## Installation
77+
78+
```bash
6779
make install
6880
```
6981

70-
## Building from the Git repository
82+
## Testing
83+
84+
```bash
85+
make check
86+
```
87+
88+
Run a single test:
7189

72-
After cloning the source from GitHub, run `./bootstrap` to generate the `configure` script.
73-
This step requires **automake**, **autoconf**, and **gnulib-devel** to be installed on your system.
90+
```bash
91+
make check TESTS=tests/addhunk1/run-test
92+
```
7493

7594
## Requirements
7695

0 commit comments

Comments
 (0)