From 96e4b2231274429569cda56d965bcc11d8009800 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Wed, 6 Mar 2019 20:39:29 +1100 Subject: testsuite: Make the OPERATION_COUNT a test configuration parameter. - Add a small memory test config file. - Update the small memory PowerPC BSPs to use the new test config. --- testsuites/tmtests/Makefile.am | 83 +++++++++++++++++++----------------------- 1 file changed, 38 insertions(+), 45 deletions(-) (limited to 'testsuites/tmtests/Makefile.am') diff --git a/testsuites/tmtests/Makefile.am b/testsuites/tmtests/Makefile.am index 08bad219cd..eb5d2dfeaa 100644 --- a/testsuites/tmtests/Makefile.am +++ b/testsuites/tmtests/Makefile.am @@ -19,7 +19,7 @@ tm_docs += tm01/tm01.doc tm01_SOURCES = tm01/task1.c tm01/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm01) $(support_includes) \ - -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT) + -I$(top_srcdir)/include endif if TEST_tm02 @@ -28,7 +28,7 @@ tm_docs += tm02/tm02.doc tm02_SOURCES = tm02/task1.c tm02/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm02) $(support_includes) \ - -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT) -DTM02 + -I$(top_srcdir)/include -DTM02 endif if TEST_tm03 @@ -37,7 +37,7 @@ tm_docs += tm03/tm03.doc tm03_SOURCES = tm03/task1.c tm03/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm03) $(support_includes) \ - -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT) -DTM03 + -I$(top_srcdir)/include -DTM03 endif if TEST_tm04 @@ -46,7 +46,7 @@ tm_docs += tm04/tm04.doc tm04_SOURCES = tm04/task1.c tm04/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm04) $(support_includes) \ - -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT) + -I$(top_srcdir)/include endif if TEST_tm05 @@ -55,7 +55,7 @@ tm_docs += tm05/tm05.doc tm05_SOURCES = tm05/task1.c tm05/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm05_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm05) $(support_includes) \ - -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT) + -I$(top_srcdir)/include endif if TEST_tm06 @@ -64,7 +64,7 @@ tm_docs += tm06/tm06.doc tm06_SOURCES = tm06/task1.c tm06/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm06_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm06) $(support_includes) \ - -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT) + -I$(top_srcdir)/include endif if TEST_tm07 @@ -73,7 +73,7 @@ tm_docs += tm07/tm07.doc tm07_SOURCES = tm07/task1.c tm07/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm07_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm07) $(support_includes) \ - -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT) + -I$(top_srcdir)/include endif if TEST_tm08 @@ -82,7 +82,7 @@ tm_docs += tm08/tm08.doc tm08_SOURCES = tm08/task1.c tm08/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm08_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm08) $(support_includes) \ - -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT) + -I$(top_srcdir)/include endif if TEST_tm09 @@ -91,7 +91,7 @@ tm_docs += tm09/tm09.doc tm09_SOURCES = tm09/task1.c tm09/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm09_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm09) $(support_includes) \ - -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT) + -I$(top_srcdir)/include endif if TEST_tm10 @@ -100,7 +100,7 @@ tm_docs += tm10/tm10.doc tm10_SOURCES = tm10/task1.c tm10/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm10_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm10) $(support_includes) \ - -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT) + -I$(top_srcdir)/include endif if TEST_tm11 @@ -109,7 +109,7 @@ tm_docs += tm11/tm11.doc tm11_SOURCES = tm11/task1.c tm11/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm11_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm11) $(support_includes) \ - -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT) + -I$(top_srcdir)/include endif if TEST_tm12 @@ -118,7 +118,7 @@ tm_docs += tm12/tm12.doc tm12_SOURCES = tm12/task1.c tm12/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm12_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm12) $(support_includes) \ - -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT) + -I$(top_srcdir)/include endif if TEST_tm13 @@ -127,7 +127,7 @@ tm_docs += tm13/tm13.doc tm13_SOURCES = tm13/task1.c tm13/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm13_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm13) $(support_includes) \ - -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT) + -I$(top_srcdir)/include endif if TEST_tm14 @@ -136,7 +136,7 @@ tm_docs += tm14/tm14.doc tm14_SOURCES = tm14/task1.c tm14/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm14_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm14) $(support_includes) \ - -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT) + -I$(top_srcdir)/include endif if TEST_tm15 @@ -145,7 +145,7 @@ tm_docs += tm15/tm15.doc tm15_SOURCES = tm15/task1.c tm15/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm15_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm15) $(support_includes) \ - -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT) + -I$(top_srcdir)/include endif if TEST_tm16 @@ -154,7 +154,7 @@ tm_docs += tm16/tm16.doc tm16_SOURCES = tm16/task1.c tm16/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm16_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm16) $(support_includes) \ - -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT) + -I$(top_srcdir)/include endif if TEST_tm17 @@ -163,7 +163,7 @@ tm_docs += tm17/tm17.doc tm17_SOURCES = tm17/task1.c tm17/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm17_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm17) $(support_includes) \ - -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT) + -I$(top_srcdir)/include endif if TEST_tm18 @@ -172,7 +172,7 @@ tm_docs += tm18/tm18.doc tm18_SOURCES = tm18/task1.c tm18/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm18_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm18) $(support_includes) \ - -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT) + -I$(top_srcdir)/include endif if TEST_tm19 @@ -181,7 +181,7 @@ tm_docs += tm19/tm19.doc tm19_SOURCES = tm19/task1.c tm19/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm19_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm19) $(support_includes) \ - -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT) + -I$(top_srcdir)/include endif if TEST_tm20 @@ -190,7 +190,7 @@ tm_docs += tm20/tm20.doc tm20_SOURCES = tm20/task1.c tm20/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm20_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm20) $(support_includes) \ - -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT) + -I$(top_srcdir)/include endif if TEST_tm21 @@ -199,7 +199,7 @@ tm_docs += tm21/tm21.doc tm21_SOURCES = tm21/task1.c tm21/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm21_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm21) $(support_includes) \ - -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT) + -I$(top_srcdir)/include endif if TEST_tm22 @@ -208,7 +208,7 @@ tm_docs += tm22/tm22.doc tm22_SOURCES = tm22/task1.c tm22/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm22_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm22) $(support_includes) \ - -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT) + -I$(top_srcdir)/include endif if TEST_tm23 @@ -217,7 +217,7 @@ tm_docs += tm23/tm23.doc tm23_SOURCES = tm23/task1.c tm23/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm23_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm23) $(support_includes) \ - -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT) + -I$(top_srcdir)/include endif if TEST_tm24 @@ -226,7 +226,7 @@ tm_docs += tm24/tm24.doc tm24_SOURCES = tm24/task1.c tm24/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm24_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm24) $(support_includes) \ - -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT) + -I$(top_srcdir)/include endif if TEST_tm25 @@ -235,7 +235,7 @@ tm_docs += tm25/tm25.doc tm25_SOURCES = tm25/task1.c tm25/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm25_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm25) $(support_includes) \ - -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT) + -I$(top_srcdir)/include endif if TEST_tm26 @@ -244,7 +244,7 @@ tm_docs += tm26/tm26.doc tm26_SOURCES = tm26/task1.c tm26/system.h tm26/fptest.h \ include/timesys.h ../support/src/tmtests_empty_function.c tm26_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm26) $(support_includes) \ - -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT) + -I$(top_srcdir)/include endif if TEST_tm27 @@ -253,7 +253,7 @@ tm_docs += tm27/tm27.doc tm27_SOURCES = tm27/task1.c tm27/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm27_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm27) $(support_includes) \ - -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT) + -I$(top_srcdir)/include endif if TEST_tm28 @@ -262,7 +262,7 @@ tm_docs += tm28/tm28.doc tm28_SOURCES = tm28/task1.c tm28/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm28_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm28) $(support_includes) \ - -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT) + -I$(top_srcdir)/include endif if TEST_tm29 @@ -271,7 +271,7 @@ tm_docs += tm29/tm29.doc tm29_SOURCES = tm29/task1.c tm29/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm29_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm29) $(support_includes) \ - -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT) + -I$(top_srcdir)/include endif if TEST_tm30 @@ -281,7 +281,7 @@ tm30_SOURCES = tm30/init.c include/timesys.h \ ../support/src/tmtests_empty_function.c \ ../support/src/tmtests_support.c tm30_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm30) $(support_includes) \ - -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT) + -I$(top_srcdir)/include endif if TEST_tm31 @@ -290,8 +290,7 @@ tm_docs += tm31/tm31.doc tm31_SOURCES = tm02/task1.c tm02/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm31_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm31) $(support_includes) \ - -I$(top_srcdir)/../tm02 -I$(top_srcdir)/include \ - -DOPERATION_COUNT=$(OPERATION_COUNT) -DTM31 + -I$(top_srcdir)/../tm02 -I$(top_srcdir)/include -DTM31 endif if TEST_tm32 @@ -300,8 +299,7 @@ tm_docs += tm32/tm32.doc tm32_SOURCES = tm03/task1.c tm03/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm32_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm32) $(support_includes) \ - -I$(top_srcdir)/../tm03 -I$(top_srcdir)/include \ - -DOPERATION_COUNT=$(OPERATION_COUNT) -DTM32 + -I$(top_srcdir)/../tm03 -I$(top_srcdir)/include -DTM32 endif if TEST_tm33 @@ -310,8 +308,7 @@ tm_docs += tm33/tm33.doc tm33_SOURCES = tm02/task1.c tm02/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm33_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm33) $(support_includes) \ - -I$(top_srcdir)/../tm02 -I$(top_srcdir)/include \ - -DOPERATION_COUNT=$(OPERATION_COUNT) -DTM33 + -I$(top_srcdir)/../tm02 -I$(top_srcdir)/include -DTM33 endif if TEST_tm34 @@ -320,8 +317,7 @@ tm_docs += tm34/tm34.doc tm34_SOURCES = tm03/task1.c tm03/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm34_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm34) $(support_includes) \ - -I$(top_srcdir)/../tm03 -I$(top_srcdir)/include \ - -DOPERATION_COUNT=$(OPERATION_COUNT) -DTM34 + -I$(top_srcdir)/../tm03 -I$(top_srcdir)/include -DTM34 endif if TEST_tm35 @@ -330,8 +326,7 @@ tm_docs += tm35/tm35.doc tm35_SOURCES = tm02/task1.c tm02/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm35_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm35) $(support_includes) \ - -I$(top_srcdir)/../tm02 -I$(top_srcdir)/include \ - -DOPERATION_COUNT=$(OPERATION_COUNT) -DTM35 + -I$(top_srcdir)/../tm02 -I$(top_srcdir)/include -DTM35 endif if TEST_tm36 @@ -340,8 +335,7 @@ tm_docs += tm36/tm36.doc tm36_SOURCES = tm03/task1.c tm03/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tm36_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tm36) $(support_includes) \ - -I$(top_srcdir)/../tm03 -I$(top_srcdir)/include \ - -DOPERATION_COUNT=$(OPERATION_COUNT) -DTM36 + -I$(top_srcdir)/../tm03 -I$(top_srcdir)/include -DTM36 endif if TEST_tmck @@ -350,7 +344,7 @@ tm_docs += tmck/tmck.doc tmck_SOURCES = tmck/task1.c tmck/system.h include/timesys.h \ ../support/src/tmtests_empty_function.c tmck_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tmck) $(support_includes) \ - -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT) + -I$(top_srcdir)/include endif if TEST_tmcontext01 @@ -387,8 +381,7 @@ tmoverhd_SOURCES = tmoverhd/testtask.c tmoverhd/empty.c \ tmoverhd/system.h tmoverhd/dumrtems.h include/timesys.h \ ../support/src/tmtests_empty_function.c tmoverhd_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tmoverhd) \ - $(support_includes) -I$(top_srcdir)/include \ - -DOPERATION_COUNT=$(OPERATION_COUNT) + $(support_includes) -I$(top_srcdir)/include endif if TEST_tmtimer01 -- cgit v1.2.3