From patchwork Tue May 7 09:58:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cyril Hrubis X-Patchwork-Id: 1932372 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=WB2Ke+8L; dkim=fail reason="signature verification failed" header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=T3ccA4n3; dkim=fail reason="signature verification failed" (1024-bit key) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=WB2Ke+8L; dkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=T3ccA4n3; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=patchwork.ozlabs.org) Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VYYfm2NvXz1xnT for ; Tue, 7 May 2024 20:00:00 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 4CB5A3CDB94 for ; Tue, 7 May 2024 11:59:52 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-7.smtp.seeweb.it (in-7.smtp.seeweb.it [217.194.8.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id A9E9D3C7F50 for ; Tue, 7 May 2024 11:59:49 +0200 (CEST) Authentication-Results: in-7.smtp.seeweb.it; spf=pass (sender SPF authorized) smtp.mailfrom=suse.cz (client-ip=2a07:de40:b251:101:10:150:64:1; helo=smtp-out1.suse.de; envelope-from=chrubis@suse.cz; receiver=lists.linux.it) Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2a07:de40:b251:101:10:150:64:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-7.smtp.seeweb.it (Postfix) with ESMTPS id E653B203C76 for ; Tue, 7 May 2024 11:59:48 +0200 (CEST) Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 2633833CBA; Tue, 7 May 2024 09:59:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1715075987; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=nHKe3WfBjUuZWTO5xrK87z0ti9VKSpWi6DSnlz5G8qM=; b=WB2Ke+8Li3UwSD/YwxmeCkhOw7HPuI559sLx3ZSuA/78VP3ChAriK8fwhwDctLQby1QppP Mq/7I44ANtstw2Kgj1lZfFAuGtNIkUPSciNmugOJCH/L5w8b1u9QbNOUkjyykjNyE0Qn/c huohGKCy6tLC9SROqheywk88MIrCzWc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1715075987; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=nHKe3WfBjUuZWTO5xrK87z0ti9VKSpWi6DSnlz5G8qM=; b=T3ccA4n3bKa0Gr8/MknLMOuFYBQYk59JMlaMUAiYrGpuuCgCYO1ePdEloL8vD1wjYGqceJ +YhrKgZov0atn1Bw== Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=WB2Ke+8L; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=T3ccA4n3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1715075987; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=nHKe3WfBjUuZWTO5xrK87z0ti9VKSpWi6DSnlz5G8qM=; b=WB2Ke+8Li3UwSD/YwxmeCkhOw7HPuI559sLx3ZSuA/78VP3ChAriK8fwhwDctLQby1QppP Mq/7I44ANtstw2Kgj1lZfFAuGtNIkUPSciNmugOJCH/L5w8b1u9QbNOUkjyykjNyE0Qn/c huohGKCy6tLC9SROqheywk88MIrCzWc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1715075987; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=nHKe3WfBjUuZWTO5xrK87z0ti9VKSpWi6DSnlz5G8qM=; b=T3ccA4n3bKa0Gr8/MknLMOuFYBQYk59JMlaMUAiYrGpuuCgCYO1ePdEloL8vD1wjYGqceJ +YhrKgZov0atn1Bw== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 14D7713A2D; Tue, 7 May 2024 09:59:47 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id 2P3PBJP7OWYvWwAAD6G6ig (envelope-from ); Tue, 07 May 2024 09:59:47 +0000 From: Cyril Hrubis To: ltp@lists.linux.it Date: Tue, 7 May 2024 11:58:59 +0200 Message-ID: <20240507095859.20802-1-chrubis@suse.cz> X-Mailer: git-send-email 2.43.2 MIME-Version: 1.0 X-Spam-Score: -3.01 X-Rspamd-Action: no action X-Rspamd-Queue-Id: 2633833CBA X-Spam-Level: X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [-3.01 / 50.00]; BAYES_HAM(-3.00)[100.00%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-1.000]; R_DKIM_ALLOW(-0.20)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo,imap1.dmz-prg2.suse.org:rdns,suse.cz:dkim,suse.cz:email]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:104:10:150:64:97:from]; FROM_EQ_ENVFROM(0.00)[]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[suse.cz:+] X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on in-7.smtp.seeweb.it X-Virus-Scanned: clamav-milter 1.0.3 at in-7.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH] testcases: realtime: Get rid of autotools X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kernel-team@android.com, John Stultz , Darren Hart Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" The autotools checks are outdated and not needed anymore. (untested but should work fine) Signed-off-by: Cyril Hrubis --- testcases/realtime/Makefile | 64 +------------------------- testcases/realtime/configure.ac | 42 ----------------- testcases/realtime/include/librttest.h | 9 +--- testcases/realtime/lib/libstats.c | 6 --- testcases/realtime/m4/.gitignore | 1 - testcases/realtime/m4/GNUmakefile | 37 --------------- testcases/realtime/m4/Makefile.am | 1 - testcases/realtime/m4/check.m4 | 14 ------ 8 files changed, 2 insertions(+), 172 deletions(-) delete mode 100644 testcases/realtime/configure.ac delete mode 100644 testcases/realtime/m4/.gitignore delete mode 100644 testcases/realtime/m4/GNUmakefile delete mode 100644 testcases/realtime/m4/Makefile.am delete mode 100644 testcases/realtime/m4/check.m4 diff --git a/testcases/realtime/Makefile b/testcases/realtime/Makefile index 61663bfd9..b90ecf8c4 100644 --- a/testcases/realtime/Makefile +++ b/testcases/realtime/Makefile @@ -22,74 +22,12 @@ top_srcdir ?= ../.. -# Override these variables to use non-system available tools. -ACLOCAL ?= aclocal -AUTOCONF ?= autoconf -AUTOHEADER ?= autoheader -AUTOMAKE ?= automake - include $(top_srcdir)/include/mk/env_pre.mk -# Ensure that this error / warning only applies for build targets. -# -# NOTE (garrcoop): this criterium should be in-sync with include/mk/env_pre.mk -# (minus help as that's only invoked in the top-level Makefile). -ifeq ($(filter autotools %clean .gitignore gitignore.%,$(MAKECMDGOALS)),) -include $(abs_srcdir)/config.mk -endif LIBDIR := lib -FILTER_OUT_DIRS := $(LIBDIR) m4 +FILTER_OUT_DIRS := $(LIBDIR) LIB := $(LIBDIR)/librealtime.a -# START autotools junk -AUTOGENERATED_FILES = \ - m4/Makefile - -AUTOMAKE_FILES := config.guess config.sub install-sh missing stamp-h1 - -.PHONY: autotools aclocal autoconf autoheader automake -autotools: aclocal autoconf autoheader automake - -.PHONY: ac-clean ac-distclean ac-maintainer-clean -ac-clean:: - $(RM) -rf autom4te.cache - $(RM) -f aclocal.m4 config.log config.status - $(RM) -f include/realtime_config.h include/stamp-h1 - -ac-distclean:: ac-clean -ac-maintainer-clean:: ac-distclean - $(RM) -f aclocal.m4 configure $(AUTOMAKE_FILES) m4/Makefile.in - $(RM) -f include/realtime_config.h.in - -aclocal.m4: - $(ACLOCAL) -I $(abs_srcdir)/m4 - -autoconf: configure - -include/realtime_config.h.in: configure.ac $(wildcard m4/*.m4) aclocal.m4 - $(AUTOHEADER) - -configure: configure.ac aclocal.m4 - $(AUTOCONF) -automake: $(AUTOMAKE_FILES) -$(AUTOMAKE_FILES): m4/Makefile.in -m4/Makefile.in: m4/Makefile.am aclocal.m4 - $(AUTOMAKE) -c -a - -.PHONY: autoheader -autoheader: include/realtime_config.h.in - $(AUTOHEADER) - -distclean:: %: clean ac-distclean - $(RM) -f $(AUTOGENERATED_FILES) - -maintainer-clean:: distclean ac-maintainer-clean - -$(AUTOGENERATED_FILES): $(top_builddir)/config.status - $(SHELL) $^ - -# END autotools junk - $(LIBDIR): mkdir -p "$@" diff --git a/testcases/realtime/configure.ac b/testcases/realtime/configure.ac deleted file mode 100644 index 6f50f1490..000000000 --- a/testcases/realtime/configure.ac +++ /dev/null @@ -1,42 +0,0 @@ -AC_PREREQ(2.61) -AC_INIT([realtime],[realtime-20090930],[ltp-results@lists.sourceforge.net]) -AC_CONFIG_AUX_DIR([.]) -AM_INIT_AUTOMAKE -AC_CONFIG_HEADERS([include/realtime_config.h]) -AC_CONFIG_FILES([ \ - m4/Makefile \ -]) -AC_CHECK_HEADERS_ONCE([ \ - pthread.h \ -]) -AC_CANONICAL_HOST - -AC_PROG_CC -# <= autoconf 2.61 doesn't have AC_PROG_AR, but 2.63 has it. Not sure about -# 2.62. -AC_DEFUN([AC_PROG_AR], [AC_CHECK_TOOL(AR, ar, :)]) -AC_PROG_AR -AC_PROG_RANLIB - -AC_MSG_CHECKING([for __sync_add_and_fetch gcc builtin function]) -AC_LINK_IFELSE([AC_LANG_SOURCE([ -#ifndef _GNU_SOURCE -#define _GNU_SOURCE -#endif -#include -int main(void) { - char *c; - return __sync_add_and_fetch(c, 1); -}])],[has___sync_add_and_fetch=yes]) -if test "x$has___sync_add_and_fetch" = xyes; then - AC_DEFINE(HAVE___SYNC_ADD_AND_FETCH,1,[Define to 1 if you have the __sync_add_and_fetch gcc builtin function]) - AC_MSG_RESULT(yes) -else - AC_MSG_RESULT(no) -fi - -AC_CHECK_LIB([m], [exp10], [AC_DEFINE([HAVE_EXP10], 1, [Define to 1 if you have exp10 function])]) - -REALTIME_CHECK_PRIO_INHERIT - -AC_OUTPUT diff --git a/testcases/realtime/include/librttest.h b/testcases/realtime/include/librttest.h index 8e3421869..8733479e7 100644 --- a/testcases/realtime/include/librttest.h +++ b/testcases/realtime/include/librttest.h @@ -56,7 +56,6 @@ #include #include #include "list.h" -#include "realtime_config.h" extern void setup(void); extern void cleanup(int i); @@ -113,15 +112,9 @@ extern double pass_criteria; */ static inline int atomic_add(int i, atomic_t *v) { - /* XXX (garrcoop): only available in later versions of gcc */ -#if HAVE___SYNC_ADD_AND_FETCH return __sync_add_and_fetch(&v->counter, i); -#else - printf("%s: %s\n", __func__, strerror(ENOSYS)); - exit(1); - return -1; -#endif } + /* atomic_inc: atomically increment the integer passed by reference */ static inline int atomic_inc(atomic_t *v) diff --git a/testcases/realtime/lib/libstats.c b/testcases/realtime/lib/libstats.c index f12d618f4..96090bd15 100644 --- a/testcases/realtime/lib/libstats.c +++ b/testcases/realtime/lib/libstats.c @@ -46,12 +46,6 @@ #include #include -#include "../include/realtime_config.h" - -#ifndef HAVE_EXP10 -# define exp10(x) (exp((x) * log(10))) -#endif - int save_stats = 0; /* static helper functions */ diff --git a/testcases/realtime/m4/.gitignore b/testcases/realtime/m4/.gitignore deleted file mode 100644 index 5fc607b9e..000000000 --- a/testcases/realtime/m4/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/Makefile diff --git a/testcases/realtime/m4/GNUmakefile b/testcases/realtime/m4/GNUmakefile deleted file mode 100644 index 2a5b4c613..000000000 --- a/testcases/realtime/m4/GNUmakefile +++ /dev/null @@ -1,37 +0,0 @@ -# -# m4 Makefile. -# -# Copyright (C) 2009, Cisco Systems Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# -# Ngie Cooper, July 2009 -# - -top_srcdir ?= ../../.. - -include $(top_srcdir)/include/mk/env_pre.mk - -M4MACROS := $(notdir $(wildcard *.m4)) - -INSTALL_DIR := $(datarootdir)/aclocal - -INSTALL_MODE := 00644 - -INSTALL_TARGETS := $(M4_MACROS) - -MAKE_TARGETS := - -include $(top_srcdir)/include/mk/generic_leaf_target.mk diff --git a/testcases/realtime/m4/Makefile.am b/testcases/realtime/m4/Makefile.am deleted file mode 100644 index 87c304b42..000000000 --- a/testcases/realtime/m4/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -# bogus makefile to appease automake diff --git a/testcases/realtime/m4/check.m4 b/testcases/realtime/m4/check.m4 deleted file mode 100644 index d04a2cc73..000000000 --- a/testcases/realtime/m4/check.m4 +++ /dev/null @@ -1,14 +0,0 @@ -AC_DEFUN([REALTIME_CHECK_PRIO_INHERIT],[ -AC_MSG_CHECKING([for PTHREAD_PRIO_INHERIT]) -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ -#include ]], [[int main(void) { - pthread_mutexattr_t attr; - return pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT); -}]])],[has_priority_inherit="yes"],[]) -if test "x$has_priority_inherit" = "xyes" ; then - AC_DEFINE(HAS_PRIORITY_INHERIT,1,[Define to 1 if you have PTHREAD_PRIO_INHERIT]) - AC_MSG_RESULT(yes) -else - AC_MSG_RESULT(no) -fi -])