Skip to content

Commit

Permalink
ci script fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
USA-RedDragon committed Feb 24, 2023
1 parent cb2ad34 commit 02b0c8d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions hack/fuzz.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

set -e
files=$(grep -r --include='**_test.go' --files-with-matches 'func Fuzz' .)

for file in ${files}
do
funcs=$(grep -oP 'func \K(Fuzz\w*)' $file)
for func in ${funcs}
do
echo "Fuzzing $func in $file"
parentDir=$(dirname $file)
go test $parentDir -run=$func -fuzz=$func -fuzztime=1m -fuzzminimizetime=1m
done
done
1 change: 1 addition & 0 deletions internal/http/frontend/cypress.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-undef */
const { defineConfig } = require('cypress');
const process = require('process');

Expand Down

0 comments on commit 02b0c8d

Please sign in to comment.