mirror of
https://github.com/red0124/ssp.git
synced 2025-06-08 05:12:30 +02:00
[skip ci] Move fuzz to .github, update fuzz.yml
This commit is contained in:
parent
1b6277f6d5
commit
813f6cd616
7
.github/fuzz/makefile
vendored
Normal file
7
.github/fuzz/makefile
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
EXE=ssp_fuzz
|
||||||
|
|
||||||
|
all:
|
||||||
|
clang++ ${CXXFLAGS} ssp_fuzz.cpp -fsanitize=fuzzer -std=c++17 -o ${EXE}
|
||||||
|
|
||||||
|
run:
|
||||||
|
./${EXE} -max_total_time=900
|
@ -1,4 +1,4 @@
|
|||||||
#include "../ssp.hpp"
|
#include <ssp.hpp>
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
7
.github/workflows/fuzz.yml
vendored
7
.github/workflows/fuzz.yml
vendored
@ -31,6 +31,9 @@ jobs:
|
|||||||
image: silkeh/clang:15
|
image: silkeh/clang:15
|
||||||
options: -v /usr/local:/host_usr_local
|
options: -v /usr/local:/host_usr_local
|
||||||
|
|
||||||
|
env:
|
||||||
|
CXXFLAGS: -I ${{ github.workspace }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
@ -41,9 +44,9 @@ jobs:
|
|||||||
script/ci_install_deps.sh
|
script/ci_install_deps.sh
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: fuzz
|
working-directory: .github/fuzz
|
||||||
run: make
|
run: make
|
||||||
|
|
||||||
- name: Run
|
- name: Run
|
||||||
working-directory: fuzz
|
working-directory: .github/fuzz
|
||||||
run: make run
|
run: make run
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,4 +6,3 @@ build/
|
|||||||
hbuild/
|
hbuild/
|
||||||
subprojects/*
|
subprojects/*
|
||||||
!subprojects/*.wrap
|
!subprojects/*.wrap
|
||||||
fuzz/ssp_fuzz
|
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
EXE=ssp_fuzz
|
|
||||||
|
|
||||||
all:
|
|
||||||
clang++ ssp_fuzz.cpp -fsanitize=fuzzer -std=c++17 -o ${EXE}
|
|
||||||
|
|
||||||
run:
|
|
||||||
./${EXE} -max_total_time=900
|
|
Loading…
Reference in New Issue
Block a user