diff options
| author | rpj <rpj> | 2000-08-06 12:15:47 +0000 | 
|---|---|---|
| committer | rpj <rpj> | 2000-08-06 12:15:47 +0000 | 
| commit | 6eb5bba145940501ca972e4243d7417c8120d569 (patch) | |
| tree | b7c9a720866312d62611a60f94eae5eb9f1fc968 /tests/Makefile | |
| parent | 55c9717bd8f28349a9fc2bef8d34d894bfe267c9 (diff) | |
2000-08-06  Ross Johnson  <rpj@special.ise.canberra.edu.au>
	* pthread.h: Remove #warning - VC++ doesn't accept it.
2000-08-05  Ross Johnson  <rpj@special.ise.canberra.edu.au>
	* pthread.h (PtW32CatchAll): Add macro. When compiling
	applications using VC++ with C++ EH rather than SEH
	'PtW32CatchAll' must be used in place of any 'catch( ... )'
	if the application wants pthread cancelation or
	pthread_exit() to work.
2000-08-03  Ross Johnson  <rpj@special.ise.canberra.edu.au>
	* pthread.h: Add a base class Pthread_exception for
	library internal exceptions and change the "catch"
	re-define macro to use it.
2000-08-02  Ross Johnson  <rpj@special.ise.canberra.edu.au>
	* GNUmakefile (CFLAGS): Add -mthreads.
	Add new targets to generate cpp and asm output.
	* sync.c (pthread_join): Remove dead code.
tests:
2000-08-06  Ross Johnson  <rpj@special.ise.canberra.edu.au>
	* ccl.bat: Add /nologo to remove extraneous output.
	* exception1.c (exceptionedThread): Init 'dummy';
	put expression into if condition to prevent optimising away;
	remove unused variable.
	* cancel4.c (mythread): Cast return value to avoid warnings.
	* cancel2.c (mythread): Missing #endif.
	* condvar9.c (mythread): Cast return value to avoid warnings.
	* condvar8.c (mythread): Cast return value to avoid warnings.
	* condvar7.c (mythread): Cast return value to avoid warnings.
	* cleanup3.c (mythread): Cast return value to avoid warnings.
	* cleanup2.c (mythread): Cast return value to avoid warnings.
	* cleanup1.c (mythread): Cast return value to avoid warnings.
	* condvar5.c (mythread): Cast return value to avoid warnings.
	* condvar3.c (mythread): Cast return value to avoid warnings.
	* condvar6.c (mythread): Cast return value to avoid warnings.
	* condvar4.c (mythread): Cast return value to avoid warnings.
2000-08-05  Ross Johnson  <rpj@special.ise.canberra.edu.au>
	* cancel2.c: Use PtW32CatchAll macro if defined.
	* exception1.c: Use PtW32CatchAll macro if defined.
2000-08-02  Ross Johnson  <rpj@special.ise.canberra.edu.au>
	* tsd1.c: Fix typecasts of &result [g++ is now very fussy].
	* test.h (assert): Return 0's explicitly to allay
	g++ errors.
	* join2.c: Add explicit typecasts.
	* join1.c: Add explicit typecasts.
	* join0.c: Add explicit typecasts.
	* eyal1.c: Add explicit typecasts.
	* count1.c (main): Add type cast to remove g++ parse warning
	[gcc-2.95.2 seems to have tightened up on this].
	* Makefile (GLANG): Use c++ explicitly.
	Remove MSVC sections (was commented out).
	Add target to generate cpp output.
Diffstat (limited to 'tests/Makefile')
| -rw-r--r-- | tests/Makefile | 230 | 
1 files changed, 112 insertions, 118 deletions
| diff --git a/tests/Makefile b/tests/Makefile index 5931855..0775ea3 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -1,118 +1,112 @@ -# Makefile for the pthreads test suite. -# If all of the .pass files can be created, the test suite has passed. - - -CP	= copy -RM	= erase -MKDIR	= mkdir -TOUCH	= echo Passed > -ECHO	= @echo - -# -# Mingw32 -# -GLANG	= c -CC	= gcc -CFLAGS	= -g -O2 -UNDEBUG -Wall -x $(GLANG) -o $@ $^ -BUILD_DIR	= .. -INCLUDES	= -I. -LIBS	= -L. -lpthread32 - -## -## MSVC -## -#CC	= cl -#CFLAGS	= /W3 /MT /nologo /Yd /Zi /Fe$@ $^ -#BUILD_DIR	= .. -#INCLUDES	= -I. -#LIBS	= pthread.lib - -HDR	= pthread.h semaphore.h sched.h -LIB	= libpthread32.a -DLL	= pthread.dll - -COPYFILES	= $(HDR) $(LIB) $(DLL) - -# If a test case returns a non-zero exit code to the shell, make will -# stop. - -TESTS	= loadfree \ -	  mutex1 condvar1 condvar2 exit1 create1 equal1 \ -	  exit2 exit3 \ -	  join0 join1 join2 mutex2 mutex3 \ -	  count1 once1 tsd1 self1 self2 cancel1 eyal1 \ -	  condvar3 condvar4 condvar5 condvar6 condvar7 condvar8 condvar9 \ -	  errno1 \ -	  rwlock1 rwlock2 rwlock3 rwlock4 rwlock5 rwlock6 \ -	  context1 cancel3 cancel4 cleanup1 cleanup2 cleanup3 \ -	  exception1 - -PASSES	= $(TESTS:%=%.pass) - -all:	$(PASSES) -	@ $(ECHO) ALL TESTS PASSED! Congratulations! - -loadfree.pass: -mutex1.pass: -mutex2.pass: -exit1.pass: -condvar1.pass: -self1.pass: -condvar2.pass: condvar1.pass -create1.pass: mutex2.pass -mutex3.pass: create1.pass -equal1.pass: create1.pass -exit2.pass: create1.pass -exit3.pass: create1.pass -join0.pass: create1.pass -join1.pass: create1.pass -join2.pass: create1.pass -count1.pass: join1.pass -once1.pass: create1.pass -tsd1.pass: join1.pass -self2.pass: create1.pass -eyal1.pass: tsd1.pass -condvar3.pass: create1.pass -condvar4.pass: create1.pass -condvar5.pass: condvar4.pass -condvar6.pass: condvar5.pass -condvar7.pass: condvar6.pass cleanup1.pass -condvar8.pass: condvar7.pass -condvar9.pass: condvar8.pass -errno1.pass: mutex3.pass -rwlock1.pass: condvar6.pass -rwlock2.pass: rwlock1.pass -rwlock3.pass: rwlock2.pass -rwlock4.pass: rwlock3.pass -rwlock5.pass: rwlock4.pass -rwlock6.pass: rwlock5.pass -context1.pass: cancel2.pass -cancel3.pass: context1.pass -cancel4.pass: cancel3.pass -cleanup1.pass: cancel4.pass -cleanup2.pass: cleanup1.pass -cleanup3.pass: cleanup2.pass -exception1.pass: cancel4.pass - -%.pass: %.exe $(LIB) $(DLL) $(HDR) -	$* -	@ $(ECHO) Passed -	@ $(TOUCH) $@ - -%.exe: %.c -	@ $(CC) $(CFLAGS) $(INCLUDES) $(LIBS) - -$(COPYFILES): -	@ $(ECHO) Copying $@ -	@ $(CP) $(BUILD_DIR)\$@ . - -clean: -	- $(RM) *.dll -	- $(RM) pthread.h -	- $(RM) semaphore.h -	- $(RM) sched.h -	- $(RM) *.a -	- $(RM) *.e -	- $(RM) *.exe -	- $(RM) *.pass - +# Makefile for the pthreads test suite.
 +# If all of the .pass files can be created, the test suite has passed.
 +
 +
 +CP	= copy
 +RM	= erase
 +MKDIR	= mkdir
 +TOUCH	= echo Passed >
 +ECHO	= @echo
 +
 +#
 +# Mingw32
 +#
 +GLANG   = c++
 +CC	= gcc
 +CFLAGS	= -g -O2 -UNDEBUG -Wall -x $(GLANG)
 +BUILD_DIR	= ..
 +INCLUDES	= -I.
 +LIBS	= -L. -lpthread32
 +
 +HDR	= pthread.h semaphore.h sched.h
 +LIB	= libpthread32.a
 +DLL	= pthread.dll
 +
 +COPYFILES	= $(HDR) $(LIB) $(DLL)
 +
 +# If a test case returns a non-zero exit code to the shell, make will
 +# stop.
 +
 +TESTS	= loadfree \
 +	  mutex1 condvar1 condvar2 exit1 create1 equal1 \
 +	  exit2 exit3 \
 +	  join0 join1 join2 mutex2 mutex3 \
 +	  count1 once1 tsd1 self1 self2 cancel1 eyal1 \
 +	  condvar3 condvar4 condvar5 condvar6 condvar7 condvar8 condvar9 \
 +	  errno1 \
 +	  rwlock1 rwlock2 rwlock3 rwlock4 rwlock5 rwlock6 \
 +	  context1 cancel3 cancel4 cleanup1 cleanup2 cleanup3 \
 +	  exception1
 +
 +PASSES	= $(TESTS:%=%.pass)
 +
 +all:	$(PASSES)
 +	@ $(ECHO) ALL TESTS PASSED! Congratulations!
 +
 +loadfree.pass:
 +mutex1.pass:
 +mutex2.pass:
 +exit1.pass:
 +condvar1.pass:
 +self1.pass:
 +condvar2.pass: condvar1.pass
 +create1.pass: mutex2.pass
 +mutex3.pass: create1.pass
 +equal1.pass: create1.pass
 +exit2.pass: create1.pass
 +exit3.pass: create1.pass
 +join0.pass: create1.pass
 +join1.pass: create1.pass
 +join2.pass: create1.pass
 +count1.pass: join1.pass
 +once1.pass: create1.pass
 +tsd1.pass: join1.pass
 +self2.pass: create1.pass
 +eyal1.pass: tsd1.pass
 +condvar3.pass: create1.pass
 +condvar4.pass: create1.pass
 +condvar5.pass: condvar4.pass
 +condvar6.pass: condvar5.pass
 +condvar7.pass: condvar6.pass cleanup1.pass
 +condvar8.pass: condvar7.pass
 +condvar9.pass: condvar8.pass
 +errno1.pass: mutex3.pass
 +rwlock1.pass: condvar6.pass
 +rwlock2.pass: rwlock1.pass
 +rwlock3.pass: rwlock2.pass
 +rwlock4.pass: rwlock3.pass
 +rwlock5.pass: rwlock4.pass
 +rwlock6.pass: rwlock5.pass
 +context1.pass: cancel2.pass
 +cancel3.pass: context1.pass
 +cancel4.pass: cancel3.pass
 +cleanup1.pass: cancel4.pass
 +cleanup2.pass: cleanup1.pass
 +cleanup3.pass: cleanup2.pass
 +exception1.pass: cancel4.pass
 +
 +%.pass: %.exe $(LIB) $(DLL) $(HDR)
 +	$*
 +	@ $(ECHO) Passed
 +	@ $(TOUCH) $@
 +
 +%.exe: %.c
 +	@ $(CC) $(CFLAGS) -o $@ $^ $(INCLUDES) $(LIBS)
 +
 +%.pre: %.c
 +	@ $(CC) -E $(CFLAGS) -o $@ $^ $(INCLUDES)
 +
 +$(COPYFILES):
 +	@ $(ECHO) Copying $@
 +	@ $(CP) $(BUILD_DIR)\$@ .
 +
 +clean:
 +	- $(RM) *.dll
 +	- $(RM) pthread.h
 +	- $(RM) semaphore.h
 +	- $(RM) sched.h
 +	- $(RM) *.a
 +	- $(RM) *.e
 +	- $(RM) *.exe
 +	- $(RM) *.pass
 +
 | 
