aboutsummaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)Author
2023-01-09Move fuzz tests into tests/fuzz (#22376)Khaled Yakdan
This puts the fuzz tests in the same directory as other tests and eases the integration in OSS-Fuzz Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2023-01-05Rewrite fuzzers to native Go harnesses (#22313)AdamKorcz
2022-12-12Add a simple test for external renderer (#20033)Lunny Xiao
Fix #16402
2022-11-27Implement FSFE REUSE for golang files (#21840)flynnnnnnnnnn
Change all license headers to comply with REUSE specification. Fix #16132 Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github> Co-authored-by: John Olheiser <john.olheiser@gmail.com>
2022-05-02Remove legacy `+build:` constraint (#19582)wxiaoguang
Go 1.17 and later use modern `//go:build` constraints, the old `// +build:` constraints should be removed.
2022-01-20format with gofumpt (#18184)6543
* gofumpt -w -l . * gofumpt -w -l -extra . * Add linter * manual fix * change make fmt
2022-01-19Propagate context and ensure git commands run in request context (#17868)zeripath
This PR continues the work in #17125 by progressively ensuring that git commands run within the request context. This now means that the if there is a git repo already open in the context it will be used instead of reopening it. Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-08-24Add bundle download for repository (#14538)John Olheiser
* Add bundle download Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix fmt Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix build tags Signed-off-by: jolheiser <john.olheiser@gmail.com> * Download specific commit Signed-off-by: jolheiser <john.olheiser@gmail.com>
2021-08-13Fix NPE in fuzzer (#16680)zeripath
The fuzzer found an issue with the issue pattern processor where there is a spurious path.Clean which does not need to be there. This PR also sets the default AppURL for the fuzzer too. Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-06-25Fuzzer finds an NPE due to incorrect URLPrefix (#16249)zeripath
The Fuzzer is running on a non-repo urlprefix which is incorrect for RenderRaw Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de>
2021-04-23Fix go-fuzz (#15596)6543
* Fix go-fuzz followup of https://github.com/go-gitea/gitea/pull/15175 * simplify * enhance
2020-12-10Added 2 fuzzers (#13818)AdamKorcz
* Added fuzzer Signed-off-by: AdamKorcz <adam@adalogics.com> * Added better fuzzer names Signed-off-by: AdamKorcz <adam@adalogics.com> * Moved fuzzer to /tools * Update tools/fuzz.go Co-authored-by: 6543 <6543@obermui.de> * Update tools/fuzz.go * Update tools/fuzz.go Co-authored-by: silverwind <me@silverwind.io> * Added tools to Makefile Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: zeripath <art27@cantab.net>
2020-09-04Add 'make watch' (#12636)silverwind
* Add 'make watch' This combines frontend and backend watch into a single command that runs them in parallel on on SIGINT terminates both. Termination is not super-clean but I guess it does not have to. * move to tools/, trap more signals, remove gnu-specific flag * simplify Co-authored-by: techknowlogick <techknowlogick@gitea.io>