From: Garrett C. <ris...@li...> - 2010-06-27 05:56:40
|
The branch, pu, has been updated via e1d8307f7752a918f0d194dd391cbc39625ce907 (commit) via 02eacfaa66c823d10cb20d6e65d828ce64b5b506 (commit) via 1c5be56415cd753479a72cd89cbbd1fd445ddb1a (commit) via 67841e67385fdae4e0cdecbcf1867d2d3b82e989 (commit) from 0bf0d385d0cdbcb6407a547118112126e28b0175 (commit) - Log ----------------------------------------------------------------- commit e1d8307f7752a918f0d194dd391cbc39625ce907 Author: Garrett Cooper <yan...@gm...> Date: Sat Jun 26 22:53:09 2010 -0700 Take a first crack at POSIXifying the sourcebase. Also, fully commit some of the changeovers for the scripts as I didn't commit the deletion portions of the git mv's. Signed-off-by: Garrett Cooper <yan...@gm...> commit 02eacfaa66c823d10cb20d6e65d828ce64b5b506 Author: Garrett Cooper <yan...@gm...> Date: Sat Jun 26 22:52:34 2010 -0700 Trim away some obsolete directions. Signed-off-by: Garrett Cooper <yan...@gm...> commit 1c5be56415cd753479a72cd89cbbd1fd445ddb1a Author: Garrett Cooper <yan...@gm...> Date: Sat Jun 26 22:11:34 2010 -0700 Better sort out some bits in the source tree. Signed-off-by: Garrett Cooper <yan...@gm...> commit 67841e67385fdae4e0cdecbcf1867d2d3b82e989 Author: Garrett Cooper <yan...@gm...> Date: Sat Jun 26 21:48:34 2010 -0700 Add a note about incoming BSD 2-clause code. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: testcases/open_posix_testsuite/COPYING | 35 ++++ testcases/open_posix_testsuite/GNUmakefile | 187 -------------------- testcases/open_posix_testsuite/Makefile | 100 +++++++++++ testcases/open_posix_testsuite/QUICK-START | 4 - .../functional/mqueues/GNUmakefile | 14 -- .../functional/semaphores/GNUmakefile | 16 -- .../functional/threads/condvar/GNUmakefile | 14 -- .../functional/threads/pi_test/Makefile | 15 -- .../functional/threads/schedule/GNUmakefile | 14 -- .../functional/timers/GNUmakefile | 16 -- .../functional/timers/clocks/GNUmakefile | 19 -- .../functional/timers/timers/GNUmakefile | 19 -- .../{ => scripts}/exec-func.sh | 0 .../open_posix_testsuite/{ => scripts}/execute.sh | 0 .../open_posix_testsuite/{ => scripts}/locate-test | 0 .../stress/mqueues/GNUmakefile | 18 -- .../stress/semaphores/GNUmakefile | 15 -- .../stress/threads/fork/GNUmakefile | 15 -- .../stress/threads/pthread_cancel/GNUmakefile | 15 -- .../stress/threads/pthread_cond_init/GNUmakefile | 15 -- .../threads/pthread_cond_timedwait/GNUmakefile | 27 --- .../stress/threads/pthread_create/GNUmakefile | 15 -- .../stress/threads/pthread_exit/GNUmakefile | 15 -- .../threads/pthread_getschedparam/GNUmakefile | 15 -- .../stress/threads/pthread_kill/GNUmakefile | 15 -- .../stress/threads/pthread_mutex_init/GNUmakefile | 15 -- .../stress/threads/pthread_mutex_lock/GNUmakefile | 15 -- .../threads/pthread_mutex_trylock/GNUmakefile | 15 -- .../stress/threads/pthread_once/GNUmakefile | 15 -- .../stress/threads/pthread_self/GNUmakefile | 15 -- .../stress/threads/sem_getvalue/GNUmakefile | 15 -- .../stress/threads/sem_init/GNUmakefile | 15 -- .../stress/threads/sem_open/GNUmakefile | 15 -- 33 files changed, 135 insertions(+), 603 deletions(-) delete mode 100644 testcases/open_posix_testsuite/GNUmakefile create mode 100644 testcases/open_posix_testsuite/Makefile delete mode 100644 testcases/open_posix_testsuite/functional/mqueues/GNUmakefile delete mode 100644 testcases/open_posix_testsuite/functional/semaphores/GNUmakefile delete mode 100644 testcases/open_posix_testsuite/functional/threads/condvar/GNUmakefile delete mode 100644 testcases/open_posix_testsuite/functional/threads/pi_test/Makefile delete mode 100644 testcases/open_posix_testsuite/functional/threads/schedule/GNUmakefile delete mode 100644 testcases/open_posix_testsuite/functional/timers/GNUmakefile delete mode 100644 testcases/open_posix_testsuite/functional/timers/clocks/GNUmakefile delete mode 100644 testcases/open_posix_testsuite/functional/timers/timers/GNUmakefile rename testcases/open_posix_testsuite/{ => scripts}/exec-func.sh (100%) rename testcases/open_posix_testsuite/{ => scripts}/execute.sh (100%) rename testcases/open_posix_testsuite/{ => scripts}/locate-test (100%) delete mode 100644 testcases/open_posix_testsuite/stress/mqueues/GNUmakefile delete mode 100644 testcases/open_posix_testsuite/stress/semaphores/GNUmakefile delete mode 100644 testcases/open_posix_testsuite/stress/threads/fork/GNUmakefile delete mode 100644 testcases/open_posix_testsuite/stress/threads/pthread_cancel/GNUmakefile delete mode 100644 testcases/open_posix_testsuite/stress/threads/pthread_cond_init/GNUmakefile delete mode 100644 testcases/open_posix_testsuite/stress/threads/pthread_cond_timedwait/GNUmakefile delete mode 100644 testcases/open_posix_testsuite/stress/threads/pthread_create/GNUmakefile delete mode 100644 testcases/open_posix_testsuite/stress/threads/pthread_exit/GNUmakefile delete mode 100644 testcases/open_posix_testsuite/stress/threads/pthread_getschedparam/GNUmakefile delete mode 100644 testcases/open_posix_testsuite/stress/threads/pthread_kill/GNUmakefile delete mode 100644 testcases/open_posix_testsuite/stress/threads/pthread_mutex_init/GNUmakefile delete mode 100644 testcases/open_posix_testsuite/stress/threads/pthread_mutex_lock/GNUmakefile delete mode 100644 testcases/open_posix_testsuite/stress/threads/pthread_mutex_trylock/GNUmakefile delete mode 100644 testcases/open_posix_testsuite/stress/threads/pthread_once/GNUmakefile delete mode 100644 testcases/open_posix_testsuite/stress/threads/pthread_self/GNUmakefile delete mode 100644 testcases/open_posix_testsuite/stress/threads/sem_getvalue/GNUmakefile delete mode 100644 testcases/open_posix_testsuite/stress/threads/sem_init/GNUmakefile delete mode 100644 testcases/open_posix_testsuite/stress/threads/sem_open/GNUmakefile diff --git a/testcases/open_posix_testsuite/COPYING b/testcases/open_posix_testsuite/COPYING index d60c31a..e6c82e3 100644 --- a/testcases/open_posix_testsuite/COPYING +++ b/testcases/open_posix_testsuite/COPYING @@ -1,3 +1,38 @@ +All sourcecode generated from scratch by Garrett Cooper is BSD 2-clause +licensed. All legacy openposix test suite code is GPLv2+ licensed. + +You must honor the respective license when copying code. + +BSD 2-clause license: + +Copyright 2010 OpenPOSIX Test Suite. All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are +permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, this list of + conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright notice, this list + of conditions and the following disclaimer in the documentation and/or other materials + provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY OpenPOSIX Test Suite ``AS IS'' AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL OpenPOSIX Test Suite OR +CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +The views and conclusions contained in the software and documentation are those of the +authors and should not be interpreted as representing official policies, either expressed +or implied, of OpenPOSIX Test Suite. + +GPLv2 license: + GNU GENERAL PUBLIC LICENSE Version 2, June 1991 diff --git a/testcases/open_posix_testsuite/GNUmakefile b/testcases/open_posix_testsuite/GNUmakefile deleted file mode 100644 index fd11733..0000000 --- a/testcases/open_posix_testsuite/GNUmakefile +++ /dev/null @@ -1,187 +0,0 @@ -# Copyright (c) 2002, Intel Corporation. All rights reserved. -# Created by: inaky.perez-gonzalez REMOVE-THIS AT intel DOT com -# This file is licensed under the GPL license. For the full content -# of this license, see the COPYING file at the top level of this -# source tree. -# -# Kind of a little bit bastardized automakefile ... This is the -# temporary glue to hold it all together; once our needs change or we -# need something more advanced, we'll implement it. -# -# So far, I understand Make is not the best language, but I felt lazy -# today and wanted to use the default rules of automake [did I alredy -# mentioned I am bastardizing it?]. -# -# Ok, I don't use Automake any more -# -# Added patch from dank REMOVE-THIS AT kegel DOT com -# - -# Added tests timeout from Sebastien Decugis (http://nptl.bullopensource.org) -# Expiration delay is 240 seconds -TIMEOUT_VAL = 240 -# The following value is the shell return value of a timedout application. -# with the bash shell, the ret val of a killed application is 128 + signum -# and under Linux, SIGALRM=14, so we have (Linux+bash) 142. - -top_builddir = . - -LOGFILE= $(top_builddir)/logfile - -RUN_TESTS= $(shell $(top_builddir)/locate-test --execs $(top_builddir)/$(POSIX_TARGET)) -BUILD_TESTS= $(shell $(top_builddir)/locate-test --buildable $(top_builddir)/$(POSIX_TARGET)) -PWD= `pwd` -TIMEOUT= $(top_builddir)/t0 $(TIMEOUT_VAL) - - -all: build-tests run-tests - -build-tests: $(BUILD_TESTS:.c=.test) -run-tests: $(RUN_TESTS:.test=.run-test) - -functional-tests: functional-make functional-run -stress-tests: stress-make stress-run - -tests-pretty: - $(MAKE) all | column -t -s: - -# add -std=c99, -std=gnu99 if compiler supports it (gcc-2.95.3 does not). -CPPFLAGS+= `$(CC) -std=c99 -S -o /dev/null -xc /dev/null >/dev/null 2>&1 && echo "-std=c99"` -CPPFLAGS+= `$(CC) -std=gnu99 -S -o /dev/null -xc /dev/null >/dev/null 2>&1 && echo "-std=gnu99"` -CPPFLAGS+= -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 -CPPFLAGS+= -I$(PWD)/include - -LDFLAGS+= -LDLIBS+= -lpthread -lrt -lm - -# FIXME: exhaust cmd line length -clean: - -@rm -f $(LOGFILE)* - -@# Timeout helper files - -@rm -f $(top_builddir)/t0.val $(top_builddir)/t0 - -@# Build runnable tests - -@find $(top_builddir) -iname \*.test | xargs -n 40 rm -f {} - -@find $(top_builddir) -iname \*~ -o -iname \*.o | xargs -n 40 rm -f {} - -@for d in functional stress; do \ - $(MAKE) -C $$d clean >/dev/null; \ - done - -# Rule to run a build test -# If the .o doesn't export main, then we don't need to link -.PRECIOUS: %.test -%.test: %.o $(top_builddir)/t0 - @COMPLOG=$(LOGFILE).$$$$; \ - TEST=`echo "$@" | sed -e 's,.test$$,,'`; \ - [ -f $< ] || exit 0; \ - { nm -g $< | grep -q ' T main\| D main'; } || \ - { echo "$$TEST: link: SKIP" >> $(LOGFILE) && exit 0; }; \ - if $(LINK.o) $< $(LOADLIBES) $(LDLIBS) -o $@ >$$COMPLOG 2>&1; \ - then \ - echo "$$TEST: link: PASS" >> $(LOGFILE); \ - echo "$$TEST: link: PASS"; \ - else \ - ( \ - echo "$$TEST: link: FAILED. Linker output: "; \ - cat $$COMPLOG; \ - ) >> $(LOGFILE); \ - echo "$$TEST: link: FAILED "; \ - fi; \ - rm -f $$COMPLOG; - -# Rule to run an executable test -# If it is only a build test, then the binary exist, so we don't need to run -.PHONY: %.run-test -%.run-test: %.test $(top_builddir)/t0.val - @COMPLOG=$(LOGFILE).$$$$; \ - TEST=`echo "$@" | sed -e 's,.run-test$$,,'`; \ - TIMEOUT_RET=`cat $(top_builddir)/t0.val`; \ - [ -f $< ] || exit 0; \ - $(TIMEOUT) $< > $$COMPLOG 2>&1; \ - RESULT=$$?; \ - if [ $$RESULT -eq 1 ]; \ - then \ - MSG="FAILED"; \ - elif [ $$RESULT -eq 2 ]; \ - then \ - MSG="UNRESOLVED"; \ - elif [ $$RESULT -eq 4 ]; \ - then \ - MSG="UNSUPPORTED"; \ - elif [ $$RESULT -eq 5 ]; \ - then \ - MSG="UNTESTED"; \ - elif [ $$RESULT -eq $$TIMEOUT_RET ]; \ - then \ - MSG="HUNG"; \ - elif [ $$RESULT -gt 5 -a $$RESULT -ne $$TIMEOUT_RET ]; \ - then \ - MSG="INTERRUPTED"; \ - elif [ $$RESULT -eq 0 ]; \ - then \ - echo "$$TEST: execution: PASS" >> $(LOGFILE); \ - else \ - ( \ - echo "$$TEST: execution: $$MSG: Output: "; \ - cat $$COMPLOG; \ - ) >> $(LOGFILE); \ - echo "$$TEST: execution: $$MSG "; \ - fi; \ - rm -f $$COMPLOG; - -$(top_builddir)/t0: $(top_builddir)/t0.c - @echo Building timeout helper files; \ - $(CC) -O2 -o $@ $< - -$(top_builddir)/t0.val: $(top_builddir)/t0 - echo `$(top_builddir)/t0 0; echo $$?` > $(top_builddir)/t0.val - -%.run-test: %.sh $(top_builddir)/t0.val - @COMPLOG=$(LOGFILE).$$$$; \ - TEST=`echo "$@" | sed -e 's,.run-test$$,,'`; \ - chmod +x $<; \ - $(TIMEOUT) $< > $$COMPLOG 2>&1; \ - RESULT=$$?; \ - if [ $$RESULT -eq 0 ]; \ - then \ - echo "$$TEST: execution: PASS" >> $(LOGFILE);\ - else \ - ( \ - echo "$$TEST: execution: FAILED: Output: ";\ - cat $$COMPLOG; \ - ) >> $(LOGFILE); \ - echo "$$TEST: execution: FAILED "; \ - fi; \ - rm -f $$COMPLOG; - - -.PRECIOUS: %.o -%.o: %.c - @COMPLOG=$(LOGFILE).$$$$; \ - TEST=`echo "$@" | sed -e 's,.o$$,,'`; \ - if $(COMPILE.c) $(OUTPUT_OPTION) $< >$$COMPLOG 2>&1; \ - then \ - echo "$$TEST: build: PASS" >> $(LOGFILE); \ - echo "$$TEST: build: PASS"; \ - else \ - ( \ - echo "$$TEST: build: FAILED: Compiler output: "; \ - cat $$COMPLOG; \ - ) >> $(LOGFILE); \ - echo "$$TEST: build: FAILED "; \ - fi; \ - rm -f $$COMPLOG; - -# Functional/Stress test build and execution -functional-make: - $(MAKE) -C functional all - -.PHONY: functional-test -functional-test: functional-make - $(MAKE) -C functional test - -stress-make: - $(MAKE) -C stress all - -.PHONY: stress-test -stress-test: stress-make - $(MAKE) -C stress test diff --git a/testcases/open_posix_testsuite/Makefile b/testcases/open_posix_testsuite/Makefile new file mode 100644 index 0000000..01dc591 --- /dev/null +++ b/testcases/open_posix_testsuite/Makefile @@ -0,0 +1,100 @@ +# Copyright (c) 2002, Intel Corporation. All rights reserved. +# Created by: inaky.perez-gonzalez REMOVE-THIS AT intel DOT com +# This file is licensed under the GPL license. For the full content +# of this license, see the COPYING file at the top level of this +# source tree. +# +# This file has almost been entirely rewritten by Garrett Cooper, but in +# order to note the bits which were acquired from previous versions, the Intel +# copyright notice stands above. +# + +CRITICAL_CONFORMANCE_MAKEFILE= conformance/interfaces/timer_settime/Makefile +CRITICAL_FUNCTIONAL_MAKEFILE= functional/threads/pi_test/Makefile + +CRITICAL_MAKEFILES= $(CRITICAL_CONFORMANCE_MAKEFILE) \ + $(CRITICAL_FUNCTIONAL_MAKEFILE) + +# The default expiration delay is 240 seconds +TIMEOUT_VAL?= 240 +# The default logfile for the tests. +LOGFILE?= logfile +# Subdirectories to traverse down. +SUBDIRS= conformance functional stress + +# add -std=c99, -std=gnu99 if compiler supports it (gcc-2.95.3 does not). +CFLAGS+= `$(CC) -std=c99 -S -o /dev/null -xc /dev/null >/dev/null 2>&1 && echo "-std=c99"` +CFLAGS+= `$(CC) -std=gnu99 -S -o /dev/null -xc /dev/null >/dev/null 2>&1 && echo "-std=gnu99"` +CFLAGS+= -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 + +#LDFLAGS+= +#LDLIBS+= -lpthread -lrt -lm + +top_srcdir?= . + +all: conformance-all functional-all stress-all t0 + +clean: + rm -f $(LOGFILE)* t0.val t0 + for d in $(SUBDIRS); do \ + $(MAKE) -C $$d clean >/dev/null; \ + done + +distclean: + @find conformance/*/*/ functional/*/*/ -name Makefile -print0 | xargs rm -f + +generate-makefiles: + @export top_srcdir=$(top_srcdir); \ + $(top_srcdir)/scripts/generate-makefiles.sh + +$(CRITICAL_MAKEFILES): scripts/generate-makefiles.sh + $(MAKE) generate-makefiles + +.PRECIOUS: %.test +%.test: %.o t0 + @COMPLOG=$(LOGFILE).$$$$; \ + TEST=`echo "$@" | sed -e 's,.test$$,,'`; \ + [ -f $< ] || exit 0; \ + { nm -g $< | grep -q ' T main\| D main'; } || \ + { echo "$$TEST: link: SKIP" >> $(LOGFILE) && exit 0; }; \ + if $(LINK.o) $< $(LOADLIBES) $(LDLIBS) -o $@ >$$COMPLOG 2>&1; \ + then \ + echo "$$TEST: link: PASS" >> $(LOGFILE); \ + echo "$$TEST: link: PASS"; \ + else \ + ( \ + echo "$$TEST: link: FAILED. Linker output: "; \ + cat $$COMPLOG; \ + ) >> $(LOGFILE); \ + echo "$$TEST: link: FAILED "; \ + fi; \ + rm -f $$COMPLOG; + +t0: $(top_srcdir)/t0.c + @echo Building timeout helper files + $(CC) -o $@ $< + +t0.val: t0 + echo `./t0 0; echo $$?` > t0.val + +# Test build and execution targets. +conformance-all: conformance/interfaces/timer_settime/Makefile + $(MAKE) -C conformance all + +conformance-test: + $(MAKE) -C conformance all + +functional-all: functional/threads/pi_test/Makefile + $(MAKE) -C functional all + +functional-test: + $(MAKE) -C functional test + +stress-all: + $(MAKE) -C stress all + +stress-test: + $(MAKE) -C stress test + +tests-pretty: + $(MAKE) all | column -t -s: diff --git a/testcases/open_posix_testsuite/QUICK-START b/testcases/open_posix_testsuite/QUICK-START index 46e57b3..6cbfac9 100644 --- a/testcases/open_posix_testsuite/QUICK-START +++ b/testcases/open_posix_testsuite/QUICK-START @@ -16,9 +16,6 @@ Setting up your machine depending on what specific area you are concentrating on. (Signals, Semaphores, Threads, Timers or Message Qs). -* "LDFLAGS" is a file used by the Makefile to link to what you specify in it. e.g. if you want to link with lpthread, you would open LDFLAGS and insert the line "-lpthread". LDFLAGS has a few -simple examples contained in it. - =================== Running the tests =================== @@ -45,7 +42,6 @@ Documentation & Resources POSIX* Test Suite project page: http://posixtest.sf.net BUILD - describes how to set up your developer machine to build and test -LDFLAGS - File that Makefile uses to link to what you specify The following files give developers information on how to write test cases for the project (under Documentation): diff --git a/testcases/open_posix_testsuite/functional/mqueues/GNUmakefile b/testcases/open_posix_testsuite/functional/mqueues/GNUmakefile deleted file mode 100644 index f99ec61..0000000 --- a/testcases/open_posix_testsuite/functional/mqueues/GNUmakefile +++ /dev/null @@ -1,14 +0,0 @@ -CFLAGS+= -Wall -CPPFLAGS+= -I../../include -LDLIBS= -lrt -lpthread - -all: send_rev_1.test send_rev_2.test - -%.test: %.o - $(LINK.o) $< $(LOADLIBES) $(LDLIBS) -o $@ - -clean: - rm -f *.test - -test: - ./run.sh diff --git a/testcases/open_posix_testsuite/functional/semaphores/GNUmakefile b/testcases/open_posix_testsuite/functional/semaphores/GNUmakefile deleted file mode 100644 index 59271be..0000000 --- a/testcases/open_posix_testsuite/functional/semaphores/GNUmakefile +++ /dev/null @@ -1,16 +0,0 @@ -CPPFLAGS+= -I../../include -LDLIBS+= -lpthread - -TARGETS= sem_lock.test sem_conpro.test sem_readerwriter.test \ - sem_philosopher.test sem_sleepingbarber.test - -all: $(TARGETS) - -%.test: %.o - $(LINK.o) $< $(LOADLIBES) $(LDLIBS) -o $@ - -clean: - rm -f $(TARGETS) - -test: - ./run.sh diff --git a/testcases/open_posix_testsuite/functional/threads/condvar/GNUmakefile b/testcases/open_posix_testsuite/functional/threads/condvar/GNUmakefile deleted file mode 100644 index c5cae98..0000000 --- a/testcases/open_posix_testsuite/functional/threads/condvar/GNUmakefile +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2004, Intel Corporation. All rights reserved. -# Created by: ad...@in... -# This file is licensed under the GPL license. For the full content -# of this license, see the COPYING file at the top level of this -# source tree. - -CFLAGS= -I../../../include -LDLIBS= -lpthread -lrt -TARGETS= pthread_cond_wait_1 pthread_cond_wait_2 - -all: $(TARGETS) - -clean: - -rm -f $(TARGETS) diff --git a/testcases/open_posix_testsuite/functional/threads/pi_test/Makefile b/testcases/open_posix_testsuite/functional/threads/pi_test/Makefile deleted file mode 100644 index d053848..0000000 --- a/testcases/open_posix_testsuite/functional/threads/pi_test/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -CFLAGS+= -I../include -LDLIBS= -lpthread -TARGETS= pitest-1 pitest-2 pitest-3 pitest-4 pitest-5 pitest-6 - -all install: $(TARGETS) - -clean: - -rm -rf $(TARGETS) - -test: - ./run.sh -all clean install test: - for dir in `ls -d */Makefile 2>/dev/null | sed -e 's,/Makefile$$,,g'`; do \ - $(MAKE) -C $$dir $@; \ - done diff --git a/testcases/open_posix_testsuite/functional/threads/schedule/GNUmakefile b/testcases/open_posix_testsuite/functional/threads/schedule/GNUmakefile deleted file mode 100644 index e348117..0000000 --- a/testcases/open_posix_testsuite/functional/threads/schedule/GNUmakefile +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2004, Intel Corporation. All rights reserved. -# Created by: ad...@in... -# This file is licensed under the GPL license. For the full content -# of this license, see the COPYING file at the top level of this -# source tree. - -CFLAGS= -I../../../include -LDLIBS= -lpthread -lrt -TARGETS= 1-1 1-2 - -all: $(TARGETS) - -clean: - -rm -f $(TARGETS) diff --git a/testcases/open_posix_testsuite/functional/timers/GNUmakefile b/testcases/open_posix_testsuite/functional/timers/GNUmakefile deleted file mode 100644 index 653fe64..0000000 --- a/testcases/open_posix_testsuite/functional/timers/GNUmakefile +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright (c) 2002, Intel Corporation. All rights reserved. -# Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com -# This file is licensed under the GPL license. For the full content -# of this license, see the COPYING file at the top level of this -# source tree. -# - -SUBDIRS= clocks timers - -all clean: - for d in $(SUBDIRS); do \ - $(MAKE) -C $$d $@; \ - done - -test: - ./run.sh diff --git a/testcases/open_posix_testsuite/functional/timers/clocks/GNUmakefile b/testcases/open_posix_testsuite/functional/timers/clocks/GNUmakefile deleted file mode 100644 index 805a496..0000000 --- a/testcases/open_posix_testsuite/functional/timers/clocks/GNUmakefile +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright (c) 2002, Intel Corporation. All rights reserved. -# Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com -# This file is licensed under the GPL license. For the full content -# of this license, see the COPYING file at the top level of this -# source tree. -# - -CPPFLAGS+= -I../../../include -LDLIBS+= -lrt - -TARGETS= twopsetclock.test invaliddates.test - -all: $(TARGETS) - -%.test: %.o - $(LINK.o) $< $(LOADLIBES) $(LDLIBS) -o $@ - -clean: - rm -f $(TARGETS) diff --git a/testcases/open_posix_testsuite/functional/timers/timers/GNUmakefile b/testcases/open_posix_testsuite/functional/timers/timers/GNUmakefile deleted file mode 100644 index edbb35d..0000000 --- a/testcases/open_posix_testsuite/functional/timers/timers/GNUmakefile +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright (c) 2002, Intel Corporation. All rights reserved. -# Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com -# This file is licensed under the GPL license. For the full content -# of this license, see the COPYING file at the top level of this -# source tree. -# - -CPPFLAGS+= -I../../../include -LDLIBS= -lrt - -TARGETS= twoevtimers.test twoptimers.test - -all: $(TARGETS) - -%.test: %.o - $(LINK.o) $< $(LOADLIBES) $(LDLIBS) -o $@ - -clean: - rm -f $(TARGETS) diff --git a/testcases/open_posix_testsuite/exec-func.sh b/testcases/open_posix_testsuite/scripts/exec-func.sh similarity index 100% rename from testcases/open_posix_testsuite/exec-func.sh rename to testcases/open_posix_testsuite/scripts/exec-func.sh diff --git a/testcases/open_posix_testsuite/execute.sh b/testcases/open_posix_testsuite/scripts/execute.sh similarity index 100% rename from testcases/open_posix_testsuite/execute.sh rename to testcases/open_posix_testsuite/scripts/execute.sh diff --git a/testcases/open_posix_testsuite/locate-test b/testcases/open_posix_testsuite/scripts/locate-test similarity index 100% rename from testcases/open_posix_testsuite/locate-test rename to testcases/open_posix_testsuite/scripts/locate-test diff --git a/testcases/open_posix_testsuite/stress/mqueues/GNUmakefile b/testcases/open_posix_testsuite/stress/mqueues/GNUmakefile deleted file mode 100644 index 40380d6..0000000 --- a/testcases/open_posix_testsuite/stress/mqueues/GNUmakefile +++ /dev/null @@ -1,18 +0,0 @@ -CFLAGS+= -I../../include -LDLIBS+= -lrt - -TARGETS= multi_send_rev_1.test multi_send_rev_2.test - -all: $(TARGETS) - -multi_send_rev_1.test: multi_send_rev_1.c - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS) - -multi_send_rev_2.test: multi_send_rev_2.c - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS) - -clean: - rm -f $(TARGETS) - -test: - @./run.sh diff --git a/testcases/open_posix_testsuite/stress/semaphores/GNUmakefile b/testcases/open_posix_testsuite/stress/semaphores/GNUmakefile deleted file mode 100644 index da410b0..0000000 --- a/testcases/open_posix_testsuite/stress/semaphores/GNUmakefile +++ /dev/null @@ -1,15 +0,0 @@ -CFLAGS+= -I../../include -LDLIBS+= -lpthread - -TARGETS+= multi_con_pro.test - -all: $(TARGETS) - -multi_con_pro.test: multi_con_pro.c - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS) - -clean: - rm -f $(TARGETS) - -test: - @./run.sh diff --git a/testcases/open_posix_testsuite/stress/threads/fork/GNUmakefile b/testcases/open_posix_testsuite/stress/threads/fork/GNUmakefile deleted file mode 100644 index e75b8b9..0000000 --- a/testcases/open_posix_testsuite/stress/threads/fork/GNUmakefile +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (c) 2004, Intel Corporation. All rights reserved. -# Created by: ad...@in... -# This file is licensed under the GPL license. For the full content -# of this license, see the COPYING file at the top level of this -# source tree. - -CFLAGS := -Wall -I../../../include -O2 -LDFLAGS := -lpthread -lrt -lm - -TARGETS := s-c1 - -all: $(TARGETS) - -clean: - rm -f $(TARGETS) diff --git a/testcases/open_posix_testsuite/stress/threads/pthread_cancel/GNUmakefile b/testcases/open_posix_testsuite/stress/threads/pthread_cancel/GNUmakefile deleted file mode 100644 index 300acbc..0000000 --- a/testcases/open_posix_testsuite/stress/threads/pthread_cancel/GNUmakefile +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (c) 2004, Intel Corporation. All rights reserved. -# Created by: ad...@in... -# This file is licensed under the GPL license. For the full content -# of this license, see the COPYING file at the top level of this -# source tree. - -CFLAGS := -Wall -I../../../include -O2 -LDFLAGS := -lpthread -lrt - -TARGETS := stress - -all: $(TARGETS) - -clean: - rm -f $(TARGETS) diff --git a/testcases/open_posix_testsuite/stress/threads/pthread_cond_init/GNUmakefile b/testcases/open_posix_testsuite/stress/threads/pthread_cond_init/GNUmakefile deleted file mode 100644 index 66e0124..0000000 --- a/testcases/open_posix_testsuite/stress/threads/pthread_cond_init/GNUmakefile +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (c) 2004, Intel Corporation. All rights reserved. -# Created by: ad...@in... -# This file is licensed under the GPL license. For the full content -# of this license, see the COPYING file at the top level of this -# source tree. - -CFLAGS := -Wall -I../../../include -O2 -LDFLAGS := -lpthread -lrt - -TARGETS := s-c stress - -all: $(TARGETS) - -clean: - rm -f $(TARGETS) diff --git a/testcases/open_posix_testsuite/stress/threads/pthread_cond_timedwait/GNUmakefile b/testcases/open_posix_testsuite/stress/threads/pthread_cond_timedwait/GNUmakefile deleted file mode 100644 index bea309b..0000000 --- a/testcases/open_posix_testsuite/stress/threads/pthread_cond_timedwait/GNUmakefile +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright (c) 2004, Intel Corporation. All rights reserved. -# Created by: ad...@in... -# This file is licensed under the GPL license. For the full content -# of this license, see the COPYING file at the top level of this -# source tree. - -CFLAGS := -Wall -I../../../include -O2 - -# If you want date for plotting, uncommnent this flag -# CFLAGS += -DPLOT_OUTPUT - -LDFLAGS := -lpthread -lrt -lm - -TARGETS := s-c stress1 stress2 - -all: $(TARGETS) - -graph: pthread_cond_timedwait.png - -pthread_cond_timedwait.png: s-c.c - $(CC) $(CFLAGS) -DPLOT_OUTPUT -o s-c s-c.c $(LDFLAGS) - ./s-c > data.plot - ./do-plot data.plot - rm -f data.plot - -clean: - rm -f $(TARGETS) diff --git a/testcases/open_posix_testsuite/stress/threads/pthread_create/GNUmakefile b/testcases/open_posix_testsuite/stress/threads/pthread_create/GNUmakefile deleted file mode 100644 index d40bd83..0000000 --- a/testcases/open_posix_testsuite/stress/threads/pthread_create/GNUmakefile +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (c) 2004, Intel Corporation. All rights reserved. -# Created by: ad...@in... -# This file is licensed under the GPL license. For the full content -# of this license, see the COPYING file at the top level of this -# source tree. - -CFLAGS := -Wall -I../../../include -O2 -LDFLAGS := -lpthread -lrt - -TARGETS := s-c1 s-c2 stress - -all: $(TARGETS) - -clean: - rm -f $(TARGETS) diff --git a/testcases/open_posix_testsuite/stress/threads/pthread_exit/GNUmakefile b/testcases/open_posix_testsuite/stress/threads/pthread_exit/GNUmakefile deleted file mode 100644 index 300acbc..0000000 --- a/testcases/open_posix_testsuite/stress/threads/pthread_exit/GNUmakefile +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (c) 2004, Intel Corporation. All rights reserved. -# Created by: ad...@in... -# This file is licensed under the GPL license. For the full content -# of this license, see the COPYING file at the top level of this -# source tree. - -CFLAGS := -Wall -I../../../include -O2 -LDFLAGS := -lpthread -lrt - -TARGETS := stress - -all: $(TARGETS) - -clean: - rm -f $(TARGETS) diff --git a/testcases/open_posix_testsuite/stress/threads/pthread_getschedparam/GNUmakefile b/testcases/open_posix_testsuite/stress/threads/pthread_getschedparam/GNUmakefile deleted file mode 100644 index 300acbc..0000000 --- a/testcases/open_posix_testsuite/stress/threads/pthread_getschedparam/GNUmakefile +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (c) 2004, Intel Corporation. All rights reserved. -# Created by: ad...@in... -# This file is licensed under the GPL license. For the full content -# of this license, see the COPYING file at the top level of this -# source tree. - -CFLAGS := -Wall -I../../../include -O2 -LDFLAGS := -lpthread -lrt - -TARGETS := stress - -all: $(TARGETS) - -clean: - rm -f $(TARGETS) diff --git a/testcases/open_posix_testsuite/stress/threads/pthread_kill/GNUmakefile b/testcases/open_posix_testsuite/stress/threads/pthread_kill/GNUmakefile deleted file mode 100644 index 300acbc..0000000 --- a/testcases/open_posix_testsuite/stress/threads/pthread_kill/GNUmakefile +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (c) 2004, Intel Corporation. All rights reserved. -# Created by: ad...@in... -# This file is licensed under the GPL license. For the full content -# of this license, see the COPYING file at the top level of this -# source tree. - -CFLAGS := -Wall -I../../../include -O2 -LDFLAGS := -lpthread -lrt - -TARGETS := stress - -all: $(TARGETS) - -clean: - rm -f $(TARGETS) diff --git a/testcases/open_posix_testsuite/stress/threads/pthread_mutex_init/GNUmakefile b/testcases/open_posix_testsuite/stress/threads/pthread_mutex_init/GNUmakefile deleted file mode 100644 index 66e0124..0000000 --- a/testcases/open_posix_testsuite/stress/threads/pthread_mutex_init/GNUmakefile +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (c) 2004, Intel Corporation. All rights reserved. -# Created by: ad...@in... -# This file is licensed under the GPL license. For the full content -# of this license, see the COPYING file at the top level of this -# source tree. - -CFLAGS := -Wall -I../../../include -O2 -LDFLAGS := -lpthread -lrt - -TARGETS := s-c stress - -all: $(TARGETS) - -clean: - rm -f $(TARGETS) diff --git a/testcases/open_posix_testsuite/stress/threads/pthread_mutex_lock/GNUmakefile b/testcases/open_posix_testsuite/stress/threads/pthread_mutex_lock/GNUmakefile deleted file mode 100644 index d40bd83..0000000 --- a/testcases/open_posix_testsuite/stress/threads/pthread_mutex_lock/GNUmakefile +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (c) 2004, Intel Corporation. All rights reserved. -# Created by: ad...@in... -# This file is licensed under the GPL license. For the full content -# of this license, see the COPYING file at the top level of this -# source tree. - -CFLAGS := -Wall -I../../../include -O2 -LDFLAGS := -lpthread -lrt - -TARGETS := s-c1 s-c2 stress - -all: $(TARGETS) - -clean: - rm -f $(TARGETS) diff --git a/testcases/open_posix_testsuite/stress/threads/pthread_mutex_trylock/GNUmakefile b/testcases/open_posix_testsuite/stress/threads/pthread_mutex_trylock/GNUmakefile deleted file mode 100644 index 300acbc..0000000 --- a/testcases/open_posix_testsuite/stress/threads/pthread_mutex_trylock/GNUmakefile +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (c) 2004, Intel Corporation. All rights reserved. -# Created by: ad...@in... -# This file is licensed under the GPL license. For the full content -# of this license, see the COPYING file at the top level of this -# source tree. - -CFLAGS := -Wall -I../../../include -O2 -LDFLAGS := -lpthread -lrt - -TARGETS := stress - -all: $(TARGETS) - -clean: - rm -f $(TARGETS) diff --git a/testcases/open_posix_testsuite/stress/threads/pthread_once/GNUmakefile b/testcases/open_posix_testsuite/stress/threads/pthread_once/GNUmakefile deleted file mode 100644 index 300acbc..0000000 --- a/testcases/open_posix_testsuite/stress/threads/pthread_once/GNUmakefile +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (c) 2004, Intel Corporation. All rights reserved. -# Created by: ad...@in... -# This file is licensed under the GPL license. For the full content -# of this license, see the COPYING file at the top level of this -# source tree. - -CFLAGS := -Wall -I../../../include -O2 -LDFLAGS := -lpthread -lrt - -TARGETS := stress - -all: $(TARGETS) - -clean: - rm -f $(TARGETS) diff --git a/testcases/open_posix_testsuite/stress/threads/pthread_self/GNUmakefile b/testcases/open_posix_testsuite/stress/threads/pthread_self/GNUmakefile deleted file mode 100644 index 300acbc..0000000 --- a/testcases/open_posix_testsuite/stress/threads/pthread_self/GNUmakefile +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (c) 2004, Intel Corporation. All rights reserved. -# Created by: ad...@in... -# This file is licensed under the GPL license. For the full content -# of this license, see the COPYING file at the top level of this -# source tree. - -CFLAGS := -Wall -I../../../include -O2 -LDFLAGS := -lpthread -lrt - -TARGETS := stress - -all: $(TARGETS) - -clean: - rm -f $(TARGETS) diff --git a/testcases/open_posix_testsuite/stress/threads/sem_getvalue/GNUmakefile b/testcases/open_posix_testsuite/stress/threads/sem_getvalue/GNUmakefile deleted file mode 100644 index 300acbc..0000000 --- a/testcases/open_posix_testsuite/stress/threads/sem_getvalue/GNUmakefile +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (c) 2004, Intel Corporation. All rights reserved. -# Created by: ad...@in... -# This file is licensed under the GPL license. For the full content -# of this license, see the COPYING file at the top level of this -# source tree. - -CFLAGS := -Wall -I../../../include -O2 -LDFLAGS := -lpthread -lrt - -TARGETS := stress - -all: $(TARGETS) - -clean: - rm -f $(TARGETS) diff --git a/testcases/open_posix_testsuite/stress/threads/sem_init/GNUmakefile b/testcases/open_posix_testsuite/stress/threads/sem_init/GNUmakefile deleted file mode 100644 index e75b8b9..0000000 --- a/testcases/open_posix_testsuite/stress/threads/sem_init/GNUmakefile +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (c) 2004, Intel Corporation. All rights reserved. -# Created by: ad...@in... -# This file is licensed under the GPL license. For the full content -# of this license, see the COPYING file at the top level of this -# source tree. - -CFLAGS := -Wall -I../../../include -O2 -LDFLAGS := -lpthread -lrt -lm - -TARGETS := s-c1 - -all: $(TARGETS) - -clean: - rm -f $(TARGETS) diff --git a/testcases/open_posix_testsuite/stress/threads/sem_open/GNUmakefile b/testcases/open_posix_testsuite/stress/threads/sem_open/GNUmakefile deleted file mode 100644 index e75b8b9..0000000 --- a/testcases/open_posix_testsuite/stress/threads/sem_open/GNUmakefile +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (c) 2004, Intel Corporation. All rights reserved. -# Created by: ad...@in... -# This file is licensed under the GPL license. For the full content -# of this license, see the COPYING file at the top level of this -# source tree. - -CFLAGS := -Wall -I../../../include -O2 -LDFLAGS := -lpthread -lrt -lm - -TARGETS := s-c1 - -all: $(TARGETS) - -clean: - rm -f $(TARGETS) hooks/post-receive -- ltp |