[2019-01-31 20:47] Hiltjo Posthuma <hil...@codemadness.org> > I'd like to show an experiment I made for automatically testing patches on the > wiki. Its purpose is it to have a quick overview of broken patches on the > wiki. > I hope this will also help the community and patch authors in fixing these > patches together and pushing them to the public wiki repository. > > HTML view: https://gunther.suckless.org/patches/ > CSV parsable list: https://gunther.suckless.org/patches/index.csv > > It is sorted currently by: project, patch name, project version.
Cool and useful stuff! > The HTML view links to the original index page of the patch and the stderr and > stdout output of the patch command. Patches are tested with the command: > > patch -p1 -t -C < patchfile > > The exitcode is the exitcode of this command ($?). > > It works by parsing the project, version/revision from the patch filename then > it creates a clean tree from the project git repository of this revision and > tries to apply the patch. It is important the patches are consistent and > correctly named on the wiki. For format guidelines see: > https://suckless.org/hacking/ > > It also finds incorrect revision names, these are shown on this link for now: > https://gunther.suckless.org/patches/err.log > > I'm unsure if this will be run automated or so, but it was fun to write > anyway. Having something like this run in an automated fashion at a regular interval seems useful to me. Is the code that you used to generate this page available somewhere? Cheers, Silvan