Skip to content

Commit 18d5053

Browse files
committed
Add a note about unit-testing
1 parent 0318312 commit 18d5053

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,17 @@ Running
7676
* Start the opencog face-tracking node in the `face_track` directory.
7777

7878

79+
Unit Testing
80+
------------
81+
There is a simple test driver in `src/unit-test.scm`. It emulates the
82+
appearance and disappearance of two faces every few minutes. It also
83+
emulates chat-start and chat-stop. It does not need or use the regular
84+
face-tracker or vision system nor the chatbot. If everything is
85+
working, the blender head should wak up, smile, react appropriately,
86+
and then fall asleep every 3-4 minutes. This test runs in an infinite
87+
loop.
88+
89+
7990
GUI Requirements
8091
----------------
8192
A GUI is needed to edit the beavior tree. Some notes about the

src/unit-test.scm

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
;
2-
; Random under-documented unit-test scriptlets.
2+
; Random under-documented unit-test scriptlet.
3+
;
4+
; Neither the vision subsystem, nor the chat subsystem needs to be
5+
; started to run this test. Just start the behavior tree, then
6+
; `rlwrap telnet localhost 17020` then
7+
; `(load "unit-test.scm")` and then
8+
; `(run-face-test)`
39
;
4-
5-
610
; Run a unit test in a separate thread: add faces, chat, remove faces.
711
; These faces don't have corresponding 3D coords, the face-tracker will
812
; not know about them, so you can't use the facetracker while runing

0 commit comments

Comments
 (0)