Skip to content

Commit

Permalink
Add a selftest run for the TIMING_ALT test
Browse files Browse the repository at this point in the history
The fuzz programs require one layer of directories
more when adding include directories.
Also remove an unnecessary include directory in the Makefile.

Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
  • Loading branch information
Andrzej Kurek committed Jan 26, 2023
1 parent 4136a9e commit 3a261a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion library/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ ifdef TEST_TIMING_ALT_IMPL
OBJS_CRYPTO += external_timing_for_test.o
external_timing_for_test.o: ../tests/src/external_timing/external_timing_for_test.c
echo " CC $<"
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) -I../tests/include -o $@ -c $<
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) -o $@ -c $<
endif

static: libmbedcrypto.a libmbedx509.a libmbedtls.a
Expand Down
4 changes: 4 additions & 0 deletions tests/scripts/all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2723,6 +2723,10 @@ component_test_alt_timing() {

msg "test: MBEDTLS_TIMING_ALT - test suites"
make test TEST_TIMING_ALT_IMPL=1 CFLAGS="-I../tests/src/external_timing"

msg "selftest - MBEDTLS-TIMING_ALT"
make programs TEST_TIMING_ALT_IMPL=1 CFLAGS="-I../../tests/src/external_timing -I../tests/src/external_timing"
programs/test/selftest
}

component_test_platform_calloc_macro () {
Expand Down

0 comments on commit 3a261a4

Please sign in to comment.