about summary refs log tree commit diff
path: root/pkgs/os-specific
diff options
context:
space:
mode:
authorDaniel Poelzleithner <github@poelzi.org>2022-05-19 19:19:14 +0200
committerGitHub <noreply@github.com>2022-05-19 19:19:14 +0200
commitd93a587732a895dba779e225128106ab2424aad2 (patch)
tree0cd5062389521074c0f21f4f43d2de4e733cfea6 /pkgs/os-specific
parentf181d591ce5c36ba705ed8724e9e6cfdba6858ce (diff)
rt-tests: init at 2.3 (#172330)
Co-authored-by: Mustafa Çalışkan <96225281+muscaln@users.noreply.github.com>
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r--pkgs/os-specific/linux/rt-tests/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/rt-tests/default.nix b/pkgs/os-specific/linux/rt-tests/default.nix
new file mode 100644
index 0000000000000..67e8c7b86a5c8
--- /dev/null
+++ b/pkgs/os-specific/linux/rt-tests/default.nix
@@ -0,0 +1,34 @@
+{ stdenv
+, lib
+, makeWrapper
+, fetchurl
+, numactl
+, python3
+}:
+
+stdenv.mkDerivation rec {
+  pname = "rt-tests";
+  version = "2.3";
+
+  src = fetchurl {
+    url = "https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git/snapshot/${pname}-${version}.tar.gz";
+    sha256 = "Q+rNdpRdsmW2gcsrfwg12EzpvO6qlEP/Mb/OWQMNmr8=";
+  };
+
+  nativeBuildInputs = [ makeWrapper ];
+  buildInputs = [ numactl python3 ];
+
+  makeFlags = [ "prefix=$(out)" "DESTDIR=" "PYLIB=$(out)/${python3.sitePackages}" ];
+
+  postInstall = ''
+    wrapProgram "$out/bin/determine_maximum_mpps.sh" --prefix PATH : $out/bin
+  '';
+
+  meta = with lib; {
+    homepage = https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git;
+    description = "Suite of real-time tests - cyclictest, hwlatdetect, pip_stress, pi_stress, pmqtest, ptsematest, rt-migrate-test, sendme, signaltest, sigwaittest, svsematest";
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ poelzi ];
+    license = licenses.gpl2;
+  };
+}