[PATCH 0/2] Move tests to the 'tests' directory

Ivan Orlov ivan.orlov0322 at gmail.com
Wed Mar 13 08:01:56 PDT 2024


As it was suggested by Anup Patel <anup at brainfault.org>, the tests
should be moved to the separate directory `lib/sbi/tests`. This patch
series puts the test-related code into the right place and updates the
documentation correspondingly.

Ivan Orlov (2):
  lib: tests: Move tests to a separate directory
  docs/writing_tests: Update tests paths

 Makefile                                  |  2 ++
 docs/writing_tests.md                     | 21 ++++++++++-----------
 lib/sbi/objects.mk                        |  6 ------
 lib/sbi/sbi_console.c                     |  2 +-
 lib/sbi/tests/objects.mk                  |  6 ++++++
 lib/sbi/{ => tests}/sbi_bitmap_test.c     |  0
 lib/sbi/{ => tests}/sbi_console_test.c    |  0
 lib/sbi/{ => tests}/sbi_unit_test.c       |  0
 lib/sbi/{ => tests}/sbi_unit_tests.carray |  0
 9 files changed, 19 insertions(+), 18 deletions(-)
 create mode 100644 lib/sbi/tests/objects.mk
 rename lib/sbi/{ => tests}/sbi_bitmap_test.c (100%)
 rename lib/sbi/{ => tests}/sbi_console_test.c (100%)
 rename lib/sbi/{ => tests}/sbi_unit_test.c (100%)
 rename lib/sbi/{ => tests}/sbi_unit_tests.carray (100%)

-- 
2.34.1




More information about the opensbi mailing list