mirror of
https://github.com/project-zot/zot.git
synced 2026-06-15 20:07:55 +08:00
Add fuzz tests for storage_fs (#601)
This commit uses native go fuzzing to fuzz test implementations of storage in storage_fs. moved fuzzing testdata for storage_fs in separate repo added make target and script for importing fuzz data and running all fuzz tests Signed-off-by: Alex Stan <alexandrustan96@yahoo.ro>
This commit is contained in:
@@ -283,3 +283,14 @@ bats-metrics: binary check-skopeo $(BATS)
|
||||
bats-metrics-verbose: EXTENSIONS=metrics
|
||||
bats-metrics-verbose: binary check-skopeo $(BATS)
|
||||
$(BATS) --trace -p --verbose-run --print-output-on-failure --show-output-of-passing-tests test/blackbox/metrics.bats
|
||||
|
||||
.PHONY: fuzz-all
|
||||
fuzz-all: fuzztime=${1}
|
||||
fuzz-all:
|
||||
rm -rf test-data; \
|
||||
rm -rf pkg/storage/testdata; \
|
||||
git clone https://github.com/project-zot/test-data.git; \
|
||||
mv test-data/storage pkg/storage/testdata; \
|
||||
rm -rf test-data; \
|
||||
bash test/scripts/fuzzAll.sh ${fuzztime}; \
|
||||
rm -rf pkg/storage/testdata; \
|
||||
|
||||
Reference in New Issue
Block a user