[LTP] [PATCH] testcases: realtime: Get rid of autotools

Li Wang liwang@redhat.com
Tue May 7 14:17:27 CEST 2024


On Tue, May 7, 2024 at 8:11 PM Li Wang <liwang@redhat.com> wrote:

>
> Cyril Hrubis <chrubis@suse.cz> wrote:
>
> The autotools checks are outdated and not needed anymore.
>>
>> (untested but should work fine)
>>
>> Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
>> ---
>>  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
>>
>
> Seems we have to remove the related line in automake.mk as well,
> otherwise build broken in 'make -C testcases/realtime autotools'.
>
> --- a/include/mk/automake.mk
> +++ b/include/mk/automake.mk
> @@ -27,7 +27,6 @@ AUTOHEADER    ?= autoheader
>  AUTOMAKE       ?= automake
>
>  AUTOCONFED_SUBDIRS     = \
> -                       testcases/realtime \
>                         testcases/open_posix_testsuite
>


Ah, includes more lines related below:

--- a/include/mk/automake.mk
+++ b/include/mk/automake.mk
@@ -27,15 +27,10 @@ AUTOHEADER  ?= autoheader
 AUTOMAKE       ?= automake

 AUTOCONFED_SUBDIRS     = \
-                       testcases/realtime \
                        testcases/open_posix_testsuite

 # We want to run this every single time to ensure that all of the prereq
files
 # are there.
-.PHONY: testcases/realtime/configure
-testcases/realtime/configure:
-       $(MAKE) -C $(@D) autotools
-
 .PHONY: testcases/open_posix_testsuite/configure
 testcases/open_posix_testsuite/configure:
        $(MAKE) -C $(@D) autotools


-- 
Regards,
Li Wang


More information about the ltp mailing list