meta-ivi-common: add recipe for fsfuzzer (JTA:Functional.fsfuzz) 91/5891/2
authorStephane Desneux <stephane.desneux@iot.bzh>
Thu, 16 Jun 2016 17:55:29 +0000 (17:55 +0000)
committerGerrit Code Review <gerrit@172.30.200.200>
Sun, 19 Jun 2016 19:39:18 +0000 (19:39 +0000)
fsfuzzer binary is needed in JTA functional test 'fsfuzz'

Change-Id: Icb82fb82b8785d8ae2c784934fa9e32e2b520ef6
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
meta-ivi-common/recipes-test/fsfuzzer/files/0001-fix_missing_header_sys_stat.patch [new file with mode: 0644]
meta-ivi-common/recipes-test/fsfuzzer/fsfuzzer_0.7.bb [new file with mode: 0644]

diff --git a/meta-ivi-common/recipes-test/fsfuzzer/files/0001-fix_missing_header_sys_stat.patch b/meta-ivi-common/recipes-test/fsfuzzer/files/0001-fix_missing_header_sys_stat.patch
new file mode 100644 (file)
index 0000000..e834bec
--- /dev/null
@@ -0,0 +1,11 @@
+diff -urN fsfuzzer-0.7.orig/fstest.c fsfuzzer-0.7/fstest.c
+--- fsfuzzer-0.7.orig/fstest.c 2009-01-25 14:50:06.000000000 +0000
++++ fsfuzzer-0.7/fstest.c      2016-06-16 17:49:27.264565819 +0000
+@@ -35,6 +35,7 @@
+ #include <signal.h>
+ #include <sys/file.h>
+ #include <sys/mman.h>
++#include <sys/stat.h>
+ #define LOGGIT 1
+ #define CHECK_XATTR 1
diff --git a/meta-ivi-common/recipes-test/fsfuzzer/fsfuzzer_0.7.bb b/meta-ivi-common/recipes-test/fsfuzzer/fsfuzzer_0.7.bb
new file mode 100644 (file)
index 0000000..d2ddb59
--- /dev/null
@@ -0,0 +1,18 @@
+SUMMARY = "The fsfuzzer is a filesystem fuzzer tool that does stress tests of various filesystems in a reproducible and logged way."
+DESCRIPTION = "This tool creates initial (valid) filesystem images and then manipulates their binary format and structure for detecting flaws/bugs/design problems in the parsing/handling code for that particular filesystem. The program expects that you have a /media directory. It uses that one for mounting test images in."
+HOMEPAGE = "https://www.ee.oulu.fi/research/ouspg/fsfuzzer"
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
+
+SRC_URI = "http://people.redhat.com/sgrubb/files/fsfuzzer-${PV}.tar.gz \
+           file://0001-fix_missing_header_sys_stat.patch \
+       "
+SRC_URI[md5sum] = "d69ac4b67aaba52a889c9188eb456c15"
+SRC_URI[sha256sum] = "094aa17c4f66c525a04e5db5ad444b4a561b6f8e310d0bd70b9ca421cdf0a434"
+
+inherit autotools
+
+# Specify any options you want to pass to the configure script using EXTRA_OECONF:
+EXTRA_OECONF = ""
+