From cd1c2ab6baee540f272fae829b7bce2c9d9e074e Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Sat, 6 Mar 2021 08:53:50 -0500 Subject: [PATCH] samples: move testing -> subsys/testsuite Move testsuite related items under subsys/testsuite. Signed-off-by: Anas Nashif --- doc/guides/test/ztest.rst | 10 +++++----- .../testsuite}/integration/CMakeLists.txt | 0 .../{testing => subsys/testsuite}/integration/prj.conf | 0 .../testsuite}/integration/src/main.c | 0 .../testsuite}/integration/testcase.yaml | 0 5 files changed, 5 insertions(+), 5 deletions(-) rename samples/{testing => subsys/testsuite}/integration/CMakeLists.txt (100%) rename samples/{testing => subsys/testsuite}/integration/prj.conf (100%) rename samples/{testing => subsys/testsuite}/integration/src/main.c (100%) rename samples/{testing => subsys/testsuite}/integration/testcase.yaml (100%) diff --git a/doc/guides/test/ztest.rst b/doc/guides/test/ztest.rst index 4b917ad30ad..e97a351a182 100644 --- a/doc/guides/test/ztest.rst +++ b/doc/guides/test/ztest.rst @@ -13,7 +13,7 @@ integration testing, or for unit testing specific modules. Quick start - Integration testing ********************************* -A simple working base is located at :zephyr_file:`samples/testing/integration`. Just +A simple working base is located at :zephyr_file:`samples/subsys/testsuite/integration`. Just copy the files to ``tests/`` and edit them for your needs. The test will then be automatically built and run by the twister script. If you are testing the **bar** component of **foo**, you should copy the sample folder to @@ -33,25 +33,25 @@ The sample contains the following files: CMakeLists.txt -.. literalinclude:: ../../../samples/testing/integration/CMakeLists.txt +.. literalinclude:: ../../../samples/subsys/testsuite/integration/CMakeLists.txt :language: CMake :linenos: testcase.yaml -.. literalinclude:: ../../../samples/testing/integration/testcase.yaml +.. literalinclude:: ../../../samples/subsys/testsuite/integration/testcase.yaml :language: yaml :linenos: prj.conf -.. literalinclude:: ../../../samples/testing/integration/prj.conf +.. literalinclude:: ../../../samples/subsys/testsuite/integration/prj.conf :language: text :linenos: src/main.c (see :ref:`best practices `) -.. literalinclude:: ../../../samples/testing/integration/src/main.c +.. literalinclude:: ../../../samples/subsys/testsuite/integration/src/main.c :language: c :linenos: diff --git a/samples/testing/integration/CMakeLists.txt b/samples/subsys/testsuite/integration/CMakeLists.txt similarity index 100% rename from samples/testing/integration/CMakeLists.txt rename to samples/subsys/testsuite/integration/CMakeLists.txt diff --git a/samples/testing/integration/prj.conf b/samples/subsys/testsuite/integration/prj.conf similarity index 100% rename from samples/testing/integration/prj.conf rename to samples/subsys/testsuite/integration/prj.conf diff --git a/samples/testing/integration/src/main.c b/samples/subsys/testsuite/integration/src/main.c similarity index 100% rename from samples/testing/integration/src/main.c rename to samples/subsys/testsuite/integration/src/main.c diff --git a/samples/testing/integration/testcase.yaml b/samples/subsys/testsuite/integration/testcase.yaml similarity index 100% rename from samples/testing/integration/testcase.yaml rename to samples/subsys/testsuite/integration/testcase.yaml