Skip to content

Commit f32b122

Browse files
committed
rt-tests: add rt-tests package
rt-tests is a test suite, that contains programs to test various real time Linux features. Signed-off-by: Thomas Richard <thomas.richard@bootlin.com>
1 parent 4e446a3 commit f32b122

File tree

1 file changed

+74
-0
lines changed

1 file changed

+74
-0
lines changed

utils/rt-tests/Makefile

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
#
3+
# Copyright (C) 2026 Bootlin
4+
5+
include $(TOPDIR)/rules.mk
6+
7+
PKG_NAME:=rt-tests
8+
PKG_VERSION:=2.9
9+
PKG_RELEASE:=1
10+
11+
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12+
PKG_SOURCE_URL:=@KERNEL/linux/utils/rt-tests
13+
PKG_HASH:=95acf47cd8cbea2f8acd616fe590031daed8156d6f753093f2931a6e9cbeed8f
14+
15+
PKG_MAINTAINER:=Thomas Richard <thomas.richard@bootlin.com>
16+
PKG_LICENSE:=GPL-2.0-only
17+
PKG_LICENSE_FILES:=COPYING
18+
19+
include $(INCLUDE_DIR)/package.mk
20+
21+
define Package/rt-tests
22+
SECTION:=utils
23+
CATEGORY:=Utilities
24+
TITLE:=Real-Time preemption testcases
25+
URL:=https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git
26+
DEPENDS:= @USE_GLIBC +libnuma +python3-light
27+
endef
28+
29+
define Package/rt-tests/description
30+
Test suite that contains programs to test various real time Linux features.
31+
endef
32+
33+
define Package/hwlatdetect
34+
SECTION:=utils
35+
CATEGORY:=Utilities
36+
TITLE:=Hardware latency detector
37+
URL:=https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git
38+
DEPENDS:= @KERNEL_HWLAT_TRACER +python3-light
39+
endef
40+
41+
define Package/hwlatdetect/description
42+
Python utility for controlling the kernel hardware latency detection module
43+
(hwlat_detector.ko).
44+
endef
45+
46+
define Package/rt-tests/install
47+
$(INSTALL_DIR) $(1)/usr/bin
48+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/cyclicdeadline $(1)/usr/bin
49+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/cyclictest $(1)/usr/bin
50+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/deadline_test $(1)/usr/bin
51+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/hackbench $(1)/usr/bin
52+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/oslat $(1)/usr/bin
53+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/pip_stress $(1)/usr/bin
54+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/pi_stress $(1)/usr/bin
55+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/pmqtest $(1)/usr/bin
56+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ptsematest $(1)/usr/bin
57+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/queuelat $(1)/usr/bin
58+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/rt-migrate-test $(1)/usr/bin
59+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/signaltest $(1)/usr/bin
60+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/sigwaittest $(1)/usr/bin
61+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ssdd $(1)/usr/bin
62+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/svsematest $(1)/usr/bin
63+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/cyclictest/get_cyclictest_snapshot.py \
64+
$(1)/usr/bin/get_cyclictest_snapshot
65+
endef
66+
67+
define Package/hwlatdetect/install
68+
$(INSTALL_DIR) $(1)/usr/bin
69+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/hwlatdetect/hwlatdetect.py \
70+
$(1)/usr/bin/hwlatdetect
71+
endef
72+
73+
$(eval $(call BuildPackage,rt-tests))
74+
$(eval $(call BuildPackage,hwlatdetect))

0 commit comments

Comments
 (0)