diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-26 23:13:24 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-26 23:13:24 +0000 |
commit | e1b9cac7c2bb3a9a80dff50089a9f5ef5efc89f9 (patch) | |
tree | dd493ff1dc2f418c0320580ffca1d203a90c7633 | |
parent | 79df8923e45fea597643e6e7bd296bafe540490a (diff) | |
download | ATCD-e1b9cac7c2bb3a9a80dff50089a9f5ef5efc89f9.tar.gz |
ChangeLogTag:Mon Jul 26 18:09:09 1999 Irfan Pyarali <irfan@cs.wustl.edu>
-rw-r--r-- | ChangeLog-99b | 9 | ||||
-rwxr-xr-x | tests/run_tests.sh | 42 |
2 files changed, 48 insertions, 3 deletions
diff --git a/ChangeLog-99b b/ChangeLog-99b index dff15d82871..c1a907704a1 100644 --- a/ChangeLog-99b +++ b/ChangeLog-99b @@ -1,3 +1,12 @@ +Mon Jul 26 18:09:09 1999 Irfan Pyarali <irfan@cs.wustl.edu> + + * tests/run_tests.sh (Cached_Conn_Test and + Cached_Accept_Conn_Test): These two tests are known to leak + memory when compiled with old gcc (g++). Therefore, we skip + these tests when using purify and old gcc (g++). A -p option + was added to the script to indicate that we want to run with + purify. + Mon Jul 26 17:09:09 1999 David L. Levine <levine@cs.wustl.edu> * ace/Object_Manager.{h,cpp},Makefile: don't create the diff --git a/tests/run_tests.sh b/tests/run_tests.sh index 08f0da54987..abef34e5f83 100755 --- a/tests/run_tests.sh +++ b/tests/run_tests.sh @@ -13,7 +13,32 @@ # 4) Create a symlink to the "log" directory create in step 1) above. # 5) ./run_tests.sh <target_hostname> -usage="usage: $0 <target>" +usage="usage: $0 [-p] <target> + -p: purify tests" + +purify=0 +purify_with_old_gcc=0 + +#### +#### Interpret command arguments. +#### +for arg in "$@"; do + case $arg in + -p ) purify=1 + shift + ;; + + -'?' ) echo $usage + exit 0 + ;; + + -*) echo $0: unknown option $arg + echo $usage + exit 1 + ;; + esac +done + IFS="|" tmp=/tmp compilation_log="log/compilations.log" @@ -30,6 +55,12 @@ if [ -x /bin/uname -a `uname -s` = 'AIX' ]; then export LIBPATH fi +if [ $purify -eq 1 ]; then + if echo $PWD | egrep 'gcc|g++'; then + purify_with_old_gcc=1 + fi +fi + #### #### Process command line arguments. #### @@ -188,8 +219,13 @@ fi test $TOKEN && (test $chorus || test $Unicos || run Tokens_Test) # tests ACE_Token run Cache_Map_Manager_Test # tests ACE_Cache_Map_Manager and ACE_Hash_Cache_Manager and caching features. -run Cached_Conn_Test # tests connection management features (with OneShot Acceptor). -run Cached_Accept_Conn_Test # tests connection management features (with regular Acceptor). + +# These two tests are known to leak memory when compiled with gcc +if [ $purify_with_old_gcc -ne 1 ]; then + run Cached_Conn_Test # tests connection management features (with OneShot Acceptor). + run Cached_Accept_Conn_Test # tests connection management features (with regular Acceptor). +fi + run Map_Manager_Test # tests ACE_Map Manager and ACE_Hash_Map_Manager + Forward and Reverse Map Iterators. run Hash_Map_Manager_Test # tests ACE_Hash_Map_Manager + Forward and Reverse Map Iterators. run Hash_Map_Bucket_Iterator_Test # tests ACE_Hash Map Bucket iterator. |