pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

deepstate: add support for honggfuzz



Module Name:	pkgsrc-wip
Committed By:	Pierre Pronchery <khorben%defora.org@localhost>
Pushed By:	khorben
Date:		Thu Sep 24 02:39:11 2020 +0200
Changeset:	c2104d119e30c39a52a2dea7d6f597ca14465cd4

Modified Files:
	Makefile
	deepstate/Makefile.common
	py-deepstate/Makefile
Added Files:
	deepstate-honggfuzz/DESCR
	deepstate-honggfuzz/Makefile
	deepstate-honggfuzz/PLIST

Log Message:
deepstate: add support for honggfuzz

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=c2104d119e30c39a52a2dea7d6f597ca14465cd4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                     |  1 +
 deepstate-honggfuzz/DESCR    |  8 ++++++++
 deepstate-honggfuzz/Makefile | 28 ++++++++++++++++++++++++++++
 deepstate-honggfuzz/PLIST    |  2 ++
 deepstate/Makefile.common    |  1 +
 py-deepstate/Makefile        |  2 ++
 6 files changed, 42 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index f45660bf9d..48bb22b2a8 100644
--- a/Makefile
+++ b/Makefile
@@ -612,6 +612,7 @@ SUBDIR+=	decode-dimms
 SUBDIR+=	dee
 SUBDIR+=	deepstate
 SUBDIR+=	deepstate-afl
+SUBDIR+=	deepstate-honggfuzz
 SUBDIR+=	deforaos-accessories
 SUBDIR+=	deforaos-desktop
 SUBDIR+=	deforaos-framer
diff --git a/deepstate-honggfuzz/DESCR b/deepstate-honggfuzz/DESCR
new file mode 100644
index 0000000000..f3935208c7
--- /dev/null
+++ b/deepstate-honggfuzz/DESCR
@@ -0,0 +1,8 @@
+DeepState is a framework that provides C and C++ developers with a common
+interface to various symbolic execution and fuzzing engines. Users can write
+one test harness using a Google Test-like API, then execute it using multiple
+backends without having to learn the complexities of the underlying engines. It
+supports writing unit tests and API sequence tests, as well as automatic test
+generation.
+
+This package adds support for honggfuzz to DeepState.
diff --git a/deepstate-honggfuzz/Makefile b/deepstate-honggfuzz/Makefile
new file mode 100644
index 0000000000..9a17df8195
--- /dev/null
+++ b/deepstate-honggfuzz/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD$
+
+PKGNAME=	deepstate-honggfuzz-${VERSION}
+
+USE_LANGUAGES=	c99 c++
+USE_CMAKE=	yes
+AUTO_MKDIRS=	yes
+
+BUILD_DEPENDS+=	honggfuzz-[0-9]*:../../devel/honggfuzz
+DEPENDS+=	deepstate>=${VERSION}:../../wip/deepstate
+
+CMAKE_ARG_PATH=	${WRKSRC}
+CMAKE_ARGS+=	-DPYTHON=${PREFIX}/bin/python${PYVERSSUFFIX}
+CMAKE_ARGS+=	-DDEEPSTATE_HONGGFUZZ=ON
+CONFIGURE_DIRS=	${WRKSRC}/build
+#XXX should work with CONFIGURE_ENV instead
+PKGSRC_MAKE_ENV+=	CC=${LOCALBASE}/bin/hfuzz-gcc
+PKGSRC_MAKE_ENV+=	CXX=${LOCALBASE}/bin/hfuzz-g++
+
+pre-configure:
+	${MKDIR} ${CONFIGURE_DIRS}
+
+do-install:
+	${INSTALL_LIB} ${WRKSRC}/build/libdeepstate_HFUZZ.a ${DESTDIR}${PREFIX}/lib
+
+.include "../../wip/deepstate/Makefile.common"
+.include "../../lang/python/pyversion.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/deepstate-honggfuzz/PLIST b/deepstate-honggfuzz/PLIST
new file mode 100644
index 0000000000..60709cf19e
--- /dev/null
+++ b/deepstate-honggfuzz/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+lib/libdeepstate_HFUZZ.a
diff --git a/deepstate/Makefile.common b/deepstate/Makefile.common
index 658366033d..57d6b27ebd 100644
--- a/deepstate/Makefile.common
+++ b/deepstate/Makefile.common
@@ -2,6 +2,7 @@
 #
 # used by wip/deepstate/Makefile
 # used by wip/deepstate-afl/Makefile
+# used by wip/deepstate-honggfuzz/Makefile
 # used by wip/py-deepstate/Makefile
 
 VERSION=	0.1
diff --git a/py-deepstate/Makefile b/py-deepstate/Makefile
index d881ec4621..fafc07500e 100644
--- a/py-deepstate/Makefile
+++ b/py-deepstate/Makefile
@@ -8,6 +8,8 @@ AUTO_MKDIRS=	yes
 
 DEPENDS+=	deepstate>=${VERSION}:../../wip/deepstate
 DEPENDS+=	deepstate-afl>=${VERSION}:../../wip/deepstate-afl
+#XXX seems to not build on NetBSD
+#DEPENDS+=	deepstate-honggfuzz>=${VERSION}:../../wip/deepstate-honggfuzz
 
 PYTHON_VERSIONS_ACCEPTED=	37 36
 


Home | Main Index | Thread Index | Old Index