From 1eab841342966436e43f56fed66dc197619c9c65 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Thu, 7 Nov 2024 11:52:31 +0100 Subject: [PATCH] stress_ng, bump version (#11319) --- .../patches/stress_ng-0.17.08.patchset | 22 ------------------- ...atchset => stress_ng_x86-0.18.06.patchset} | 0 ....17.08.recipe => stress_ng-0.18.06.recipe} | 16 +++++++++++--- 3 files changed, 13 insertions(+), 25 deletions(-) delete mode 100644 app-benchmarks/stress-ng/patches/stress_ng-0.17.08.patchset rename app-benchmarks/stress-ng/patches/{stress_ng_x86-0.17.08.patchset => stress_ng_x86-0.18.06.patchset} (100%) rename app-benchmarks/stress-ng/{stress_ng-0.17.08.recipe => stress_ng-0.18.06.recipe} (89%) diff --git a/app-benchmarks/stress-ng/patches/stress_ng-0.17.08.patchset b/app-benchmarks/stress-ng/patches/stress_ng-0.17.08.patchset deleted file mode 100644 index d9fe882db..000000000 --- a/app-benchmarks/stress-ng/patches/stress_ng-0.17.08.patchset +++ /dev/null @@ -1,22 +0,0 @@ -From 4243803f2a09aeabceae6c7aaf2ae49e5423c654 Mon Sep 17 00:00:00 2001 -From: David Karoly -Date: Sat, 1 Oct 2022 21:04:09 +0200 -Subject: stress-touch: fix build - - -diff --git a/stress-touch.c b/stress-touch.c -index b59f97e..1f855de 100644 ---- a/stress-touch.c -+++ b/stress-touch.c -@@ -187,7 +187,7 @@ static void stress_touch_dir_clean(stress_args_t *args) - if (!dir) - return; - while ((d = readdir(dir)) != NULL) { -- char filename[PATH_MAX + sizeof(d->d_name) + 1]; -+ char filename[PATH_MAX + 1]; - struct stat statbuf; - - (void)snprintf(filename, sizeof(filename), "%s/%s\n", tmp, d->d_name); --- -2.43.2 - diff --git a/app-benchmarks/stress-ng/patches/stress_ng_x86-0.17.08.patchset b/app-benchmarks/stress-ng/patches/stress_ng_x86-0.18.06.patchset similarity index 100% rename from app-benchmarks/stress-ng/patches/stress_ng_x86-0.17.08.patchset rename to app-benchmarks/stress-ng/patches/stress_ng_x86-0.18.06.patchset diff --git a/app-benchmarks/stress-ng/stress_ng-0.17.08.recipe b/app-benchmarks/stress-ng/stress_ng-0.18.06.recipe similarity index 89% rename from app-benchmarks/stress-ng/stress_ng-0.17.08.recipe rename to app-benchmarks/stress-ng/stress_ng-0.18.06.recipe index 6fb5c67e0..dae7d8616 100644 --- a/app-benchmarks/stress-ng/stress_ng-0.17.08.recipe +++ b/app-benchmarks/stress-ng/stress_ng-0.18.06.recipe @@ -35,10 +35,8 @@ COPYRIGHT="2013-2021 Colin Ian King" LICENSE="GNU GPL v2" REVISION="1" SOURCE_URI="https://github.com/ColinIanKing/stress-ng/archive/V$portVersion.zip" +CHECKSUM_SHA256="0f8c60a4d988fc23c3982c9d60753a92d7e16115aac7a5122688446f4aa83e4f" SOURCE_DIR="stress-ng-$portVersion" -CHECKSUM_SHA256="79ec651fc36f01a9538a00fd5b9332b1fc166e47df1fc66036731c9a9f58ded1" -PATCHES="stress_ng-$portVersion.patchset" - if [ $effectiveTargetArchitecture = x86 ]; then PATCHES+=" stress_ng_x86-$portVersion.patchset @@ -67,6 +65,7 @@ BUILD_PREREQUIRES=" cmd:awk cmd:gcc$secondaryArchSuffix cmd:make + cmd:which " BUILD() @@ -84,3 +83,14 @@ INSTALL() install -m 755 -d $dataDir/bash-completion/completions install -m 644 bash-completion/stress-ng $dataDir/bash-completion/completions/stress-ng } + +TEST() +{ + # use lite-test for quick test, the others take up a long time to finish +# slow-test-all +# verify-test-all +# chmod +x debian/tests/fast-test-all + chmod +x debian/tests/lite-test +# make fast-test-all + make lite-test +}