[PATCH 09/10] libtest: Report target hash
Sebastian Huber
sebastian.huber at embedded-brains.de
Wed Feb 24 13:57:29 UTC 2021
Update #4267.
---
cpukit/libtest/t-test.c | 1 +
spec/build/bsps/m68k/mcf52235/tstmcf52235.yml | 1 +
testsuites/libtests/ttest01/init.c | 8 ++++++--
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/cpukit/libtest/t-test.c b/cpukit/libtest/t-test.c
index c3b0e9394a..4b2056f010 100644
--- a/cpukit/libtest/t-test.c
+++ b/cpukit/libtest/t-test.c
@@ -841,6 +841,7 @@ T_system(T_context *ctx)
T_do_log(ctx, T_QUIET, "S:Version:%s\n", rtems_version());
T_do_log(ctx, T_QUIET, "S:BSP:%s\n", rtems_board_support_package());
T_do_log(ctx, T_QUIET, "S:BuildHash:%s\n", rtems_get_build_hash());
+ T_do_log(ctx, T_QUIET, "S:TargetHash:%s\n", rtems_get_target_hash());
#if RTEMS_DEBUG
T_do_log(ctx, T_QUIET, "S:RTEMS_DEBUG:1\n");
#else
diff --git a/spec/build/bsps/m68k/mcf52235/tstmcf52235.yml b/spec/build/bsps/m68k/mcf52235/tstmcf52235.yml
index 4fab309709..a9cd2b2e41 100644
--- a/spec/build/bsps/m68k/mcf52235/tstmcf52235.yml
+++ b/spec/build/bsps/m68k/mcf52235/tstmcf52235.yml
@@ -21,6 +21,7 @@ actions:
tmcontext01: exclude
tmfine01: exclude
top: exclude
+ ttest01: exclude
utf8proc01: exclude
build-type: option
copyrights:
diff --git a/testsuites/libtests/ttest01/init.c b/testsuites/libtests/ttest01/init.c
index f5405208a0..eea750f674 100644
--- a/testsuites/libtests/ttest01/init.c
+++ b/testsuites/libtests/ttest01/init.c
@@ -130,6 +130,8 @@ static const char censored_init[] = "A:ttest01\n"
"S:Compiler:*"
"S:Version:*"
"S:BSP:*"
+"S:BuildHash:*"
+"S:TargetHash:*"
"S:RTEMS_DEBUG:*"
"S:RTEMS_MULTIPROCESSING:*"
"S:RTEMS_POSIX_API:*"
@@ -161,7 +163,9 @@ censor_putchar(int c, void *arg)
} else if (c == *ctx->censor_c) {
(*ctx->putchar)(c, ctx->putchar_arg);
++ctx->censor_c;
- }
+ } else {
+ test_assert(0);
+ }
break;
case CENSOR_DISCARD:
if (c == '\n') {
@@ -184,7 +188,7 @@ run_initialize(void)
}
static const char expected_final[] = "Z:ttest01:C:344:N:1339:F:795:D:0.691999\n"
-"Y:ReportHash:SHA256:23dd328162c564ada3c4de97446801018ade051aaec3308bb9a7ef8f98041d67\n";
+"Y:ReportHash:SHA256:c1efe4ace0db5f4a4aa498d406c09be44d5df54f1abbc049448ec6cb7059d3dd\n";
static void
run_finalize(void)
--
2.26.2
More information about the devel
mailing list