Small atom fixes.
[wine/multimedia.git] / ipc / run_tests
blob638fb1807a218c994fe9ce5c1fa42157b299494b
1 #!/bin/sh
3 bit_array_test
4 bit_array=$?
6 dde_mem_test
7 mem=$?
9 hash_test
10 hash=$?
12 shm_semaph_test
13 semaph=$?
15 dde_atom_test
16 atom=$?
18 dde_proc_test 1 > proc_server &
19 sleep 1
20 dde_proc_test > proc_client
21 fgrep "DDE:receive sent message. msg=03e0 wPar=fffb lPar=00000004" proc_server &&
22 fgrep "DDE_GetRemoteMessage: sending ACK to wnd=fffb, proc=1" proc_server &&
23 fgrep "get_ack: received DDE_ACK message" proc_client
24 proc=$?
25 rm proc_client proc_server
27 shm_fragment_test | diff TEST_FRAGMENT.std -
28 fragment=$?
30 echo ====================================================================
31 echo Test results:
33 echo -n "bit_array "
34 if [ $bit_array -eq 0 ] ; then echo OK ; else echo "** ERROR **" ; fi
36 echo -n "dde_mem "
37 if [ $mem -eq 0 ] ; then echo OK ; else echo "** ERROR **" ; fi
39 echo -n "hash "
40 if [ $hash -eq 0 ] ; then echo OK ; else echo "** ERROR **" ; fi
42 echo -n "shm_semaph "
43 if [ $semaph -eq 0 ] ; then echo OK ; else echo "** ERROR **" ; fi
45 echo -n "dde_proc "
46 if [ $proc -eq 0 ] ; then echo OK ; else echo "** ERROR **" ; fi
48 echo -n "shm_fragment "
49 if [ $fragment -eq 0 ] ; then echo OK ; else echo "** ERROR **" ; fi