You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/10/24 01:32:24 UTC

[GitHub] [incubator-nuttx] ttnie commented on a diff in pull request #7383: CI: add example to sim

ttnie commented on code in PR #7383:
URL: https://github.com/apache/incubator-nuttx/pull/7383#discussion_r1002815874


##########
tools/ci/testrun/script/test_example/test_example.py:
##########
@@ -0,0 +1,44 @@
+#!/usr/bin/python3
+# encoding: utf-8
+import pytest
+
+pytestmark = [pytest.mark.common, pytest.mark.qemu]
+do_not_support = ["sabre-6quad", "rv-virt", "rv-virt64", "esp32c3-devkit", "bl602evb"]
+
+
+def test_hello(p):
+    ret = p.sendCommand("hello", "Hello, World!!")
+    assert ret == 0
+
+
+def test_helloxx(p):
+    if p.board in do_not_support:
+        pytest.skip("unsupported at {}".format(p.board))
+    if p.board == "best1600_ep":
+        if p.core == "tee":
+            pytest.skip("unsupported at {}-{}".format(p.board, p.core))
+    ret = p.sendCommand("helloxx", "Hello, World!!")

Review Comment:
   I got the result like below, looks like different with yours. Image build by citest deconfig. @acassis 
   
   nsh> helloxx
   helloxx_main: Saying hello from the dynamically constructed instance
   CHelloWorld::HelloWorld: Hello, World!!
   helloxx_main: Saying hello from the instance constructed on the stack
   CHelloWorld::HelloWorld: Hello, World!!
   helloxx_main: Saying hello from the statically constructed instance
   CHelloWorld::HelloWorld: Hello, World!!
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org