From 985334219458c57b569fdbafcfc6b0d117cc48cf Mon Sep 17 00:00:00 2001 From: Daniel Béreš Date: Thu, 19 Jan 2023 10:19:27 +0100 Subject: libmemif: added tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch provides unit tests for libmemif written in Unity Type: test Signed-off-by: Daniel Béreš Signed-off-by: Mohsin Kazmi Change-Id: I19116def6e6d28efd5f460c93911245474a11321 --- extras/libmemif/docs/buildinstructions_doc.rst | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'extras/libmemif/docs/buildinstructions_doc.rst') diff --git a/extras/libmemif/docs/buildinstructions_doc.rst b/extras/libmemif/docs/buildinstructions_doc.rst index f7770fc7fa4..6609f7a1926 100644 --- a/extras/libmemif/docs/buildinstructions_doc.rst +++ b/extras/libmemif/docs/buildinstructions_doc.rst @@ -49,6 +49,26 @@ Use ``-?`` flag to display help:: -? Show help and exit. -v Show libmemif and memif version information and exit. +Running tests: +-------------- + +Tests needs to their proper functioning Unity framework which is depended externally and cloned from official git repository:: + + mkdir -p extras/libmemif/build + cd extras/libmemif/build + cmake .. + make + ctest + +``ctest`` will execute the tests and print out brief information about test suites with their statuses. + +In case we want verbose: :: + + ctest --verbose + ctest --extra-verbose + +If there are any needs to debug tests, just add to cmake command ``-DCMAKE_BUILD_TYPE=Debug`` flag. + Use Cases --------- -- cgit 1.2.3-korg