Commit Graph

195 Commits

Author SHA1 Message Date
Afzal Mohammed 7763cf316d rt-tests: Allow cross compilation
$ make CROSS_COMPILE=<my-toolchain-prefix>

currently does not cause source to be built using the intended
toolchain, instead will use the host toolchain.

CC & AR are not updated with CROSS_COMPILE value since they are
predefined make variables (with default cc & ar respectively) combined
with the fact that CC & AR variables are updated in the makefile only if
not already defined due to the usage of '?='.

Signed-off-by: Afzal Mohammed <afzal.mohd.ma@gmail.com>
Signed-off-by: John Kacur <jkacur@redhat.com>
2019-11-26 17:33:27 +01:00
John Kacur d3a929bf0b rt-tests: Makefile update version
Update the version in the Makefile to 1.5

Signed-off-by: John Kacur <jkacur@redhat.com>
2019-11-26 17:33:27 +01:00
John Kacur 88efdb99bc rt-tests: Version 1.4
Create version 1.4

Signed-off-by: John Kacur <jkacur@redhat.com>
2019-06-19 14:40:42 +02:00
John Kacur d6edef62b8 rt-tests: ssdd: Add a simple manpage for ssdd
Add a simple manpage to rt-tests for ssdd, and modify the manpage to
install it

Signed-off-by: John Kacur <jkacur@redhat.com>
2019-06-19 01:43:22 +02:00
John Kacur 38e7eb899f queuelat: Install queuelat helper scripts from the rt-tests Makefile
Install queuelat helper scripts from the rt-tests Makefile

Signed-off-by: John Kacur <jkacur@redhat.com>
2019-05-07 16:10:05 +02:00
John Kacur 524aebc390 rt-tests: Makefile: ssdd: Incoroporate ssdd into the rt-tests Makefile
Incoroporate ssdd into the rt-tests build

Signed-off-by: John Kacur <jkacur@redhat.com>
2019-01-14 21:39:47 +01:00
John Kacur 803c33cfe8 rt-tests: deadline_test: Add a manpage
Add an initial manpage for deadline_test.
Modify the Makefile to install it too.

Signed-off-by: John Kacur <jkacur@redhat.com>
2018-11-02 16:23:22 +01:00
John Kacur 2829763fdd rt-tests: Remove install and build of backfire and sendme
Leave the source code in place but remove the install and build of
backfire and sendme for now as it is broken

Signed-off-by: John Kacur <jkacur@redhat.com>
2018-10-19 16:24:40 +02:00
John Kacur 283f5a73a3 rt-tests: manpages: Modify makefile for queuelat.8 and pip_stress.8
Modify the manpage to include queuelat.8 and pip_stress.8 for the
install

Signed-off-by: John Kacur <jkacur@redhat.com>
2018-10-19 16:24:40 +02:00
John Kacur 026f2a31c5 rt-tests: Makefile: Change syntax for python3
When testing for the PYLIB version, we need to explicitly
specify python3 and fix the print syntax

Signed-off-by: John Kacur <jkacur@redhat.com>
2018-06-13 02:07:17 +02:00
John Kacur e905f555f3 rt-tests: Makefile - New development (unstable) release
Modify the Makefile for a new release

Signed-off-by: John Kacur <jkacur@redhat.com>
2018-04-30 15:39:26 +01:00
Marcelo Tosatti 9e41e33d94 Add queuelat test to rt-tests
Add queuelat, a test to simulate a DPDK queue.

See README in src/queuelat/ for details.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2018-04-16 20:30:25 -03:00
John Kacur 59d86812cc rt-tests: Makefile
Tag v1.2 in order to start some new development

Signed-off-by: John Kacur <jkacur@redhat.com>
2018-03-26 22:51:25 +01:00
John Kacur e5bca09eb8 rt-tests: Need to generate debug info for rpms
Need to generate debug info for rpms, use -g even for non-debug version

Signed-off-by: John Kacur <jkacur@redhat.com>
2017-12-20 17:48:24 +00:00
John Kacur ba6cf8f41e rt-tests: Add cyclicdeadline and deadline_test to the Make system
- Add cyclicdeadline and deadline_test to the Makefile
- Conditionally define _GNU_SOURCE in the new programs
- Add the new programs to the .gitignore file

Signed-off-by: John Kacur <jkacur@redhat.com>
2016-06-23 13:51:00 +02:00
John Kacur c8ce47ae17 rt-tests: Makefile, change version to 1.1
Rethinking the naming scheme, so changing the development line from 2.0
to 1.1

Signed-off-by: John Kacur <jkacur@redhat.com>
2016-06-23 12:49:32 +02:00
John Kacur dff174f994 rt-tests: Makefile: Add missing install of rt-migrate-test.8 man page
Add missing install of rt-migrate-test.8 man page

Signed-off-by: John Kacur <jkacur@redhat.com>
2016-05-14 00:02:56 +02:00
John Kacur e1b1537a20 rt-tests: Create a new unstable line called devel/rt-tests-2.0
Bump the Version number and create a devel/2.0 branch

Signed-off-by: John Kacur <jkacur@redhat.com>
2016-05-13 22:34:14 +02:00
John Kacur bddffd32c9 rt-tests: Makefile - bump version to 1.0
We've arrived, it's version 1.0!

Signed-off-by: John Kacur <jkacur@redhat.com>
2016-05-13 20:30:12 +02:00
John Kacur 81a948a2a6 rt-tests: Makefile: Assume numa_parse_cpustring_all available
NUMA users should have long ago stepped up to libs that have
numa_parse_cpustring_all(). Make this the default so that we can include
isolated cpus in the affinity string.

If there are any NUMA users or distros left that have old libraries that
don't have numa_parse_cpu_string_all(), and only numa_parse_cpu_string()
they can compile like this

make HAVE_PARSE_CPUSTRING_ALL=0

Signed-off-by: John Kacur <jkacur@redhat.com>
Reviewed-and-Tested-by: Luiz Capitulino <lcapitulino@redhat.com>
2016-04-21 22:41:45 +02:00
John Kacur 0e8a13a646 rt-tests: Makefile: Bump version number to 0.97
Bump version number to v0.97 for the next release

Signed-off-by: John Kacur <jkacur@redhat.com>
2016-03-31 18:40:54 +02:00
Khem Raj fd3dde99fd Makefile: Set CC/AR variable only if it doesn't have a value
This helps it compile with clang or any other compilers besides gcc

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: John Kacur <jkacur@redhat.com>
2016-01-05 23:56:25 +01:00
Clark Williams 619c068b60 Makefile: fixed dropped quote in help target text
Signed-off-by: John Kacur <jkacur@redhat.com>
2015-10-22 22:26:31 +02:00
John Kacur 07371fae48 Makefile: Remove anything to do with rpms, specs etc
Remove anything to do with rpm, spec, release and so on that should be
maintained in distribution specific ways. One exception is make tarball,
which is useful in a more general way.

Signed-off-by: John Kacur <jkacur@redhat.com>
2015-10-22 17:30:52 +02:00
John Kacur 24f8c0175e Makefile: Version bump to v0.96
Version bump to v0.96 and changelog additions to rt-tests.spec-in

Signed-off-by: John Kacur <jkacur@redhat.com>
2015-10-22 12:29:10 +02:00
Henrik Austad ebe16ac451 Android: rename arch from bionic to android
Bionic is the libc implementation used in Android and should not be
confused with the architecture.

Cc: John Kacur <jkacur@redhat.com>
Signed-off-by: Henrik Austad <haustad@cisco.com>
Signed-off-by: John Kacur <jkacur@redhat.com>
2015-10-22 10:32:41 +02:00
John Kacur afc0f753c3 Makefile: Move TARGETS back to a more logical place in the Makefile
Place TARGETS after sources. The evaluation of it doesn't depend on it's
position in the file, so remove the incorrect comment

Signed-off-by: John Kacur <jkacur@redhat.com>
2015-10-14 14:49:22 +02:00
Clark Williams 32933aadb3 Makefile: have distclean remove .asc file for tarball
Signed-off-by: Clark Williams <williams@redhat.com>
Signed-off-by: John Kacur <jkacur@redhat.com>
2015-10-14 14:45:35 +02:00
John Kacur 01c2ad58d3 Makefile: OBJDIR should be an order-only-prerequisite
OBJDIR should be an order only prerequisite.
- create the OBJDIR if necessary before .d, .o and before all TARGETS
  including hwlatdetect
- Don't rebuild if the timestamp on the OBJDIR changes

Signed-off-by: John Kacur <jkacur@redhat.com>
2015-10-14 14:39:33 +02:00
Clark Williams d68bda3d43 Makefile: add target to create OBJDIR before use
Signed-off-by: Clark Williams <williams@redhat.com>
Signed-off-by: John Kacur <jkacur@redhat.com>
2015-10-09 13:32:55 +02:00
John Kacur b921fb3d1f maintainence: VERSION bump and Change-log update
- Update the VERSION in the Makefile
- Update the Change-log in rt-tests.spec-in

Signed-off-by: John Kacur <jkacur@redhat.com>
2015-10-07 14:33:05 +02:00
John Kacur d3bd5df707 Bionic: Move android functionality into it's own arch Makefile
- Make the Makefile more readable by moving android functionality to it's
own Makefile.
- Don't evaluate TARGETS until after including arch Makefiles

Signed-off-by: John Kacur <jkacur@redhat.com>
Tested-by: Henrik Austad <haustad@cisco.com>
2015-10-06 11:27:10 +02:00
John Kacur 8d26afdc2d Makefile: Only call cc -dumpmachine once in the makefile
- Store the result of cc -dumpmachine in the dumpmachine variable
- Use makefile parsing to obtain the ostype
- Use shell and sed functions to obtain the machinetype
- Turn on the bionic functionality if the ostype=android

Signed-off-by: John Kacur <jkacur@redhat.com>
Tested-by: Henrik Austad <haustad@cisco.com>
2015-10-06 11:27:10 +02:00
Uwe Kleine-König 6f3c1ba9e8 drop compiling without NPTL support
all programs apart from sendme use pthreads so NPTL=no is hardly useful
any more.

Signed-off-by: John Kacur <jkacur@redhat.com>
2015-10-06 11:27:09 +02:00
John Kacur 7faa666c37 Makefile: Document certain compiling options
- Document compiling with and without NUMA, explaining the defaults
- Document compiling with HAVE_PARSE_CPUSTRING_ALL

Reorganize these options a little for readability

Signed-off-by: John Kacur <jkacur@redhat.com>
2015-10-06 11:27:03 +02:00
John Kacur b482ecc2bf signaltest: Add a man page to signaltest
- Add a man page to signaltest
- Improve the display_help in signaltest
- Add install of new man page to makefile

Signed-off-by: John Kacur <jkacur@redhat.com>
2015-10-05 20:21:15 +02:00
John Kacur 788bb50b8f build: Generate .o, .a, and .d files in bld dir
When building rt-tests, object files, libs and .d (dependencies) were
all generated in the base directory. Instead, place all of these
build files in a dir called bld. The final programs are still in the
basedir

Signed-off-by: John Kacur <jkacur@redhat.com>
2015-10-05 16:15:00 +02:00
John Kacur 685fb2fd01 Explicitly separate VPATH paths with a colon
VPATH paths can be separated by either a space or a colon.
Explicitly insert a colon instead of relying on a space being inserted
due to the spacing of our Makefile

Signed-off-by: John Kacur <jkacur@redhat.com>
2015-10-05 16:14:42 +02:00
John Kacur a8fd81efa7 Version bump to v0.94
Signed-off-by: John Kacur <jkacur@redhat.com>
2015-09-21 22:18:12 +02:00
Henrik Austad 88af643971 android: adjust target for android
Bionic (Android's libc implementation) lacks support for (amongst other
things) pthread_barriers and pthread_setaffinity. The former is removed
by ifdeffery, the latter is added as a per-android wrapper to
sched_setaffinity.

Signed-off-by: Henrik Austad <haustad@cisco.com>
Signed-off-by: John Kacur <jkacur@redhat.com>
2015-09-21 21:56:30 +02:00
Henrik Austad 2f83181e4b Makefile: add librttest to rt-migrate-test
linker must be able to resolve reference to err_msg_n properly

   rt-migrate-test.c:(.text+0x1ff): undefined reference to `err_msg_n'

Signed-off-by: Henrik Austad <haustad@cisco.com>
Signed-off-by: John Kacur <jkacur@redhat.com>
2015-09-21 21:55:33 +02:00
Henrik Austad 6750957ad4 Add a rebuild-switch to Makefile
Update from joshc for job-level safety

Co-authored.by: Josh Cartwright <joshc@ni.com>
Signed-off-by: Henrik Austad <haustad@cisco.com>
Signed-off-by: John Kacur <jkacur@redhat.com>
2015-09-21 21:40:27 +02:00
Henrik Austad 2b57b74ffa Add CROSS_COMPILE-switch to CC and AR
Signed-off-by: Henrik Austad <haustad@cisco.com>
Signed-off-by: John Kacur <jkacur@redhat.com>
2015-09-21 21:40:08 +02:00
Josh Cartwright 3991c7bf04 rt-tests: workaround poor gzip implementations
Some 'gzip' implementations, in particular 'pigz' don't properly handle
the '-c' argument if it's passed after the name of the input files.

Work around this by putting the '-c' option before the file names.

Inspired by patches in OpenEmbedded by Robert Yang and Kai Kang.

Cc: Robert Yang <liezhi.yang@windriver.com>
Cc: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Josh Cartwright <joshc@ni.com>
Signed-off-by: John Kacur <jkacur@redhat.com>
2015-09-02 14:57:04 +02:00
Darren Hart d39e249a4a rt-tests: Break out install_hwlatdetect
Allow hwlatdetect to be installed independently of the rest of the
tests. This is convenient for build systems that package it separately
due to the python dependency.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Clark Williams <williams@redhat.com>
CC: John Kacur <jkacur@redhat.com>
Signed-off-by: Josh Cartwright <joshc@ni.com>
Signed-off-by: John Kacur <jkacur@redhat.com>
2015-09-02 14:54:51 +02:00
Darren Hart d9f3e351d3 rt-tests: Allow for user-specified PYLIB
Allow users (build systems) to specify PYLIB. This allows for a
cross-build-system to specify the target PYLIB rather than the host
PYLIB.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Clark Williams <williams@redhat.com>
CC: John Kacur <jkacur@redhat.com>
Signed-off-by: Josh Cartwright <joshc@ni.com>
Signed-off-by: John Kacur <jkacur@redhat.com>
2015-09-02 14:52:46 +02:00
Clark Williams 6855394943 Version bump to v0.93
Signed-off-by: Clark Williams <williams@redhat.com>
2015-08-12 14:09:28 -05:00
John Kacur a67ec68b94 Create an rt-tests.tar file using git-archive
Create an rt-tests.tar file using git-archive so we don't mistakenly
pull in uncommitted files

Signed-off-by: John Kacur <jkacur@redhat.com>
2015-07-09 15:32:40 +02:00
John Kacur b6b5c594b2 Change VERSION_STRING to VERSION
Adding _STRING doesn't add any extra meaning, but the extra length makes
the Makefile more unreadable than is necessary, so shorten this up

Signed-off-by: John Kacur <jkacur@redhat.com>
2015-07-09 14:31:01 +02:00
Clark Williams 5f9f1e3fe3 makefile: fixed release target
Added MAINTAINERS, doc and README.markdown to the tar archive
generation logic.

Signed-off-by: Clark Williams <williams@redhat.com>
2015-06-09 08:57:17 -05:00