#!/bin/sh -f # $Id$ # # This is the UNIX version of the one-button ACE tests. # Contributed by Michael Rueger IFS="|" tmp=/tmp run() { echo running $1 /bin/rm -f core log/$1.log ./$1 status=$? if [ $status -ne 0 ]; then echo \"$1\" FAILED with exit status $status!!!! fi if [ -f core ]; then echo \"$1\" dumped core!!!! fi if [ -f log/$1.log ]; then ./run_tests.check log/$1.log else echo "No log file (log/$1.log) is present" fi } echo "Starting tests..." run Basic_Types_Test run DLList_Test #Atomic_Op_Test: threads not supported on this platform #run Atomic_Op_Test # uses Atomic_Op #TSS_Test: threads are not supported on this platform #run TSS_Test # uses Task, Mutex, Guard run Time_Value_Test run High_Res_Timer_Test run SString_Test run Collection_Test # SYS V IPC not supported #run Naming_Test # uses Naming_Context, WString run Handle_Set_Test # uses Handle_Set run OrdMultiSet_Test #Mem_Map_Test: mmap: Operation not applicable #run Mem_Map_Test # uses Mem_Map #SV_Shared_Memory_Test: SYSV IPC is not supported on this platform #run SV_Shared_Memory_Test # uses SV_Shared_Memory, fork #MM_Shared_Memory_Test: requires either fork or threads #run MM_Shared_Memory_Test run Sigset_Ops_Test # uses sigset*() functions run Timer_Queue_Test # uses Event_Handler, Timer_Queue run SOCK_Connector_Test # uses SOCK_Connector #Task_Test: threads not supported on this platform #run Task_Test # uses Thread_Manager, Task #Thread_Manager_Test: threads not supported on this platform #run Thread_Manager_Test # uses Thread_Manager, Task #Thread_Pool_Test: threads not supported on this platform #run Thread_Pool_Test # uses Thread_Manager, Task #Future_Test: threads not supported on this platform #run Future_Test # uses Thread_Manager, Task #Future_Set_Test: threads not supported on this platform #run Future_Set_Test # uses Thread_Manager, Task #Reactors_Test: threads not supported on this platform #run Reactors_Test # uses Task, Mutex, Reactor #Reactor_Exceptions_Test: not correctly implemented without threads #run Reactor_Exceptions_Test # uses Reactor and C++ exceptions #Reactor_Notify_Test: threads not supported on this platform #run Reactor_Notify_Test # uses Reactor's notify() method, Task run Reactor_Timer_Test # uses Event_Handler, Reactor #Reactor_Performance_Test: threads not supported on this platform #run Reactor_Performance_Test # uses Event_Handler, Reactor #Notify_Performance_Test: threads not supported on this platform #run Notify_Performance_Test # uses Event_Handler, Reactor #Reader_Writer_Test: threads not supported on this platform #run Reader_Writer_Test # uses Thread_Manager, Mutex run Priority_Reactor_Test # uses Priority_Reactor, Acceptor/Connector... run SOCK_Test # uses Thread_Manager, SOCK_SAP run MT_SOCK_Test # uses Thread_Manager, Acceptor/Connector # ifdef ACE_HAS_STREAM_PIPES #SPIPE_Test: SPIPE is not supported on this platform #run SPIPE_Test # uses SPIPE_Acceptor/Connector, Thread_Manager #UPIPE_SAP_Test: threads not supported on this platform #run UPIPE_SAP_Test # uses UPIPE, Thread, Thread_Manager #Barrier_Test: threads not supported on this platform #run Barrier_Test # uses Service_Config, Barrier #run CDR_Test #Buffer_Stream_Test: threads not supported on this platform #run Buffer_Stream_Test # uses Service_Config, Module (Stream,Task, Message_Queue) #Priority_Buffer_Test: threads not supported on this platform #run Priority_Buffer_Test # uses Service_Config, Message_Queue run Recursive_Mutex_Test # uses Service_Config, Recursive_Thread_Mutex run Reverse_Lock_Test # uses ACE_Reverse_Lock #Time_Service_Test: uses fork #run Time_Service_Test # uses libnetsvcs #Tokens_Test: threads not supported on this platform #run Tokens_Test # run Map_Manager_Test # uses Map Manager and Hash Map Manager + Forward and Reverse Map Iterators. run Map_Test # uses Map + Forward and Reverse Map Iterators. #Message_Queue_Notifications_Test.cpp: threads not supported on this platform #run Message_Queue_Notifications_Test.cpp # uses Message_Queue + Reactor. run Message_Queue_Test # uses Message_Queue + Forward and Reverse Message Queue Iterators. run Simple_Message_Block_Test # uses Message_Block #Message_Block_Test: threads not supported on this platform #run Message_Block_Test # uses Message_Block and Message_Queue #Pipe_Test: uses fork #run Pipe_Test # uses Pipe #Process_Mutex_Test: uses fork #run Process_Mutex_Test # uses Process_Mutex #Thread_Mutex_Test: threads not supported on this platform #run Thread_Mutex_Test # uses Thread_Process_Mutex run Process_Strategy_Test # uses ACE_Strategy_Acceptor run Service_Config_Test # uses Service_Config #Priority_Task_Test: threads not supported on this platform #run Priority_Task_Test # uses Task with priorities run IOStream_Test # uses ACE_IOStream and ACE_SOCK_Stream run Enum_Interfaces_Test # uses ACE::get_ip_interfaces() #Conn_Test: requires either fork or threads #run Conn_Test # uses Thread_Manager, Acceptor/Connector, SOCK_SAP run Upgradable_RW_Test # uses RW locks run Svc_Handler_Test echo "Tests complete..." /bin/rm -f ace_pipe_name pattern $tmp/ace_temp_file $tmp/ace_temp_file2 $tmp/ace_test_file $tmp/Naming_Test* echo; echo ipcs # EOF