[LTP] [PATCH 5/6] runtest/sched: Add sched_football

Cyril Hrubis chrubis@suse.cz
Mon Jul 29 11:47:16 CEST 2024


Hi!
> > diff --git a/runtest/sched b/runtest/sched
> > index 5dab7a4c27..ecedd1a92b 100644
> > --- a/runtest/sched
> > +++ b/runtest/sched
> > @@ -18,3 +18,5 @@ sched_cli_serv run_sched_cliserv.sh
> >  sched_stress sched_stress.sh
> 
> >  autogroup01 autogroup01
> > +
> > +sched_football sched_football
> 
> I'm sorry, I haven't noticed, that realtime installs into a different directory:

Uff, missed that as well. The INSTALL_DIR is set in the config.mk for
the realtime tests to $(srcdir) so it copies the layout of the realtime
directories.

> cd ltp/testcases/realtime/func/sched_football
> # make install
> mkdir -p "/opt/ltp/testcases/realtime/func/sched_football"
> install -m 00775   "ltp/testcases/realtime/func/sched_football/run_auto.sh" /opt/ltp/testcases/realtime/func/sched_football/run_auto.sh
> install -m 00775   "ltp/testcases/realtime/func/sched_football/sched_football" /opt/ltp/testcases/realtime/func/sched_football/sched_football

The minimal fix would be to overwrite the INSTALL_DIR for the
sched_football testcase, that would be:

diff --git a/testcases/realtime/func/sched_football/Makefile b/testcases/realtime/func/sched_football/Makefile
index 9bc779efa..aac98eab6 100644
--- a/testcases/realtime/func/sched_football/Makefile
+++ b/testcases/realtime/func/sched_football/Makefile
@@ -6,10 +6,11 @@

 top_srcdir             ?= ../../../..

-INSTALL_TARGETS                := run_auto.sh
 include $(top_srcdir)/include/mk/env_pre.mk
 include $(abs_srcdir)/../../config.mk

+INSTALL_DIR=testcases/bin
+
 # TODO: integrate properly with LTP library
 LDLIBS                 += -lltp
 include $(top_srcdir)/include/mk/generic_leaf_target.mk


We can move the source code around once we get to the realtime directory
cleanup later on.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list