erofs-utils: contrib: add stress test
PATCH v2 1/1 erofs-utils: contrib: add stress test
From: Gao Xiang <[email protected]>
Just import it as an in-tree component for tests.
Signed-off-by Gao Xiang <[email protected]>
---
changes since v1:
- Limit to the linux platform for now.
Makefile.am | 1 + configure.ac | 15 +- contrib/Makefile.am | 11 + contrib/stress.c | 776 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 802 insertions(+), 1 deletion(-) create mode 100644 contrib/Makefile.am create mode 100644 contrib/stress.c
Makefile.am +1 -0
@@ -6,3 +6,4 @@ SUBDIRS = man lib mkfs dump fsck if ENABLE_FUSE SUBDIRS += fuse endif +SUBDIRS += contrib
configure.ac +14 -1
@@ -20,6 +20,18 @@ AC_PROG_INSTALL LT_INIT +AC_CANONICAL_TARGET + +build_linux=no +case "${target_os}" in + linux*) + build_linux=yes + ;; +esac + +# OS-specific treatment +AM_CONDITIONAL([OS_LINUX], [test "$build_linux" = "yes"]) + # Test presence of pkg-config AC_MSG_CHECKING([pkg-config m4 macros]) if test m4_ifdef([PKG_CHECK_MODULES], [yes], [no]) = "yes"; then
@@ -647,5 +659,6 @@ AC_CONFIG_FILES([Makefile mkfs/Makefile dump/Makefile fuse/Makefile - fsck/Makefile]) + fsck/Makefile + contrib/Makefile]) AC_OUTPUT
contrib/Makefile.am new file +11 -0
@@ -0,0 +1,11 @@ +# SPDX-License-Identifier: GPL-2.0+ +# Makefile.am + +AUTOMAKE_OPTIONS = foreign + +if OS_LINUX +noinst_PROGRAMS = stress + +stress_CFLAGS = -Wall -I$(top_srcdir)/include +stress_SOURCES = stress.c +endif
contrib/stress.c new file +776 -0
776 lines not on this page · raw message
Signature · 1 line
2.43.5