xref: /minix3/minix/tests/ds/README (revision 433d6423c39e34ec4b79c950597bb2d236f886be)
1*433d6423SLionel SambucTest Program for DataServer
2*433d6423SLionel Sambuc
3*433d6423SLionel SambucHow to run
4*433d6423SLionel Sambuc==========
5*433d6423SLionel Sambuc
6*433d6423SLionel Sambuc  1. Type `make` to build the tests.
7*433d6423SLionel Sambuc  2. Type `sh run` to run the tests.
8*433d6423SLionel Sambuc
9*433d6423SLionel SambucHow the test works
10*433d6423SLionel Sambuc==================
11*433d6423SLionel Sambuc
12*433d6423SLionel Sambuc`dstest` tests the new DS API (excluding ds_subscribe() and ds_check()).
13*433d6423SLionel Sambuctest_u32, test_str, test_mem, and test_label test U32, STR, MEM, and LABEL
14*433d6423SLionel Sambuctype respectively.
15*433d6423SLionel Sambuc
16*433d6423SLionel SambucInvalid invokation is tested as well. Erroneous conditions are tested only once.
17*433d6423SLionel SambucFor example, publishing an entry with same label name, but without
18*433d6423SLionel SambucDSF_OVERWRITE set, is tested in test_u32 and nowhere else again.
19*433d6423SLionel SambucType-specific features are always tested.
20*433d6423SLionel Sambuc
21*433d6423SLionel Sambuc`subs` tests ds_subscribe() and ds_check(). The server subscribes
22*433d6423SLionel Sambucto a U32 type. When `dstest` runs, `subs` catches all the updates.
23*433d6423SLionel Sambuc
24