[v8,4/5] coroutine: add test-coroutine automated tests

Message ID 4E37FF19.8080707@redhat.com
State New
Headers show

Commit Message

Kevin Wolf Aug. 2, 2011, 1:43 p.m.
Am 26.07.2011 11:21, schrieb Stefan Hajnoczi:
> To run automated tests for coroutines:
>   make test-coroutine
>   ./test-coroutine
> On success the program terminates with exit status 0.  On failure an
> error message is written to stderr and the program exits with exit
> status 1.
> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>

Adding this build fix in the block branch:

+test-coroutine: test-coroutine.o qemu-timer-common.o async.o
$(coroutine-obj-y) $(CHECK_PROG_DEPS)

$(qapi-obj-y): $(GENERATED_HEADERS)
qapi-dir := qapi-generated


diff --git a/Makefile b/Makefile
index fdd620c..2becedc 100644
--- a/Makefile
+++ b/Makefile
@@ -161,7 +161,7 @@  check-qdict: check-qdict.o qdict.o qfloat.o qint.o
qstring.o qbool.o qlist.o $(C
 check-qlist: check-qlist.o qlist.o qint.o $(CHECK_PROG_DEPS)
 check-qfloat: check-qfloat.o qfloat.o $(CHECK_PROG_DEPS)
 check-qjson: check-qjson.o qfloat.o qint.o qdict.o qstring.o qlist.o
qbool.o qjson.o json-streamer.o json-lexer.o json-parser.o error.o
qerror.o qemu-error.o $(CHECK_PROG_DEPS)
-test-coroutine: test-coroutine.o qemu-timer-common.o $(coroutine-obj-y)