1 Test Program for DataServer
6 1. Type `make` to build the tests.
7 2. Type `sh run` to run the tests.
12 `dstest` tests the new DS API (excluding ds_subscribe() and ds_check()).
13 test_u32, test_str, test_mem, test_label, and test_map test U32, STR, MEM, LABEL
14 and MAP type respectively.
16 Invalid invokation is tested as well. Erroneous conditions are tested only once.
17 For example, publishing an entry with same label name, but without
18 DSF_OVERWRITE set, is tested in test_u32 and nowhere else again.
19 Type-specific features are always tested.
21 `subs` tests ds_subscribe() and ds_check(). The server subscribes
22 to a U32 type. When `dstest` runs, `subs` catches all the updates.