mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-17 15:34:18 +08:00
Benchmarks: Add sysbench
This commit is contained in:
parent
9004c052db
commit
fc325708b7
24
recipes/tests/sysbench/recipe.toml
Normal file
24
recipes/tests/sysbench/recipe.toml
Normal file
@ -0,0 +1,24 @@
|
||||
[source]
|
||||
git = "https://github.com/akopytov/sysbench.git"
|
||||
patches = ["redox.patch"]
|
||||
script = """
|
||||
DYNAMIC_INIT
|
||||
autoreconf -fvi -I${COOKBOOK_HOST_SYSROOT}/share/aclocal
|
||||
"""
|
||||
|
||||
[build]
|
||||
template = "custom"
|
||||
dependencies = ["luajit"]
|
||||
|
||||
script = """
|
||||
DYNAMIC_INIT
|
||||
export CFLAGS+=" -I${COOKBOOK_SYSROOT}/include/luajit-2.1"
|
||||
COOKBOOK_CONFIGURE_FLAGS+=(
|
||||
--without-mysql
|
||||
--with-system-luajit
|
||||
)
|
||||
cookbook_configure
|
||||
"""
|
||||
|
||||
[package]
|
||||
dependencies = ["luajit"]
|
||||
11
recipes/tests/sysbench/redox.patch
Normal file
11
recipes/tests/sysbench/redox.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- a/src/lua/internal/Makefile.am
|
||||
+++ b/src/lua/internal/Makefile.am
|
||||
@@ -26,7 +26,7 @@ SUFFIXES = .lua .lua.h
|
||||
|
||||
.lua.lua.h:
|
||||
@echo "Creating $@ from $<"
|
||||
- @var=$$(echo $< | sed 's/\./_/g') && \
|
||||
+ @var=$$(basename $< | sed 's/\./_/g') && \
|
||||
( echo "unsigned char $${var}[] =" && \
|
||||
sed -e 's/\\/\\\\/g' \
|
||||
-e 's/"/\\"/g' \
|
||||
Loading…
Reference in New Issue
Block a user