debian/0000755000000000000000000000000011572104417007170 5ustar debian/dirs0000644000000000000000000000003611572073263010057 0ustar /usr/share/doc/posixtestsuite debian/watch0000644000000000000000000000011711174214577010227 0ustar version=3 http://sf.net/posixtest/ posixtestsuite-(.*)\.tar\.gz debian uupdate debian/patches/0000755000000000000000000000000011572104417010617 5ustar debian/patches/series0000644000000000000000000000012011572102514012021 0ustar 01_gnu.patch 02_timeout.patch build_Werror_fixes.patch restrict-test-find.patch debian/patches/02_timeout.patch0000644000000000000000000001142411572066640013636 0ustar Author: Robert Millan , Guillem Jover Status: not-sent-upstream Description: Use coreutils' timeout to set a timeout on tests, to avoid them hanging indefinitely. The t0 timeout program in the upstream project does not seem to correctly handle the childs which keep running even after the process timesout. --- Makefile | 19 +++++++------------ execute.sh | 7 +++---- functional/mqueues/run.sh | 2 +- functional/semaphores/run.sh | 2 +- functional/threads/pi_test/run.sh | 2 +- functional/threads/robust_test/run.sh | 2 +- stress/mqueues/run.sh | 2 +- stress/semaphores/run.sh | 2 +- 8 files changed, 16 insertions(+), 22 deletions(-) --- a/functional/mqueues/run.sh +++ b/functional/mqueues/run.sh @@ -12,7 +12,7 @@ RunTest() { echo "TEST: " $1 TOTAL=$TOTAL+1 - ./$1 + timeout 120 ./$1 if [ $? == 0 ]; then PASS=$PASS+1 echo -ne "\t\t\t***TEST PASSED***\n\n" --- a/functional/semaphores/run.sh +++ b/functional/semaphores/run.sh @@ -12,7 +12,7 @@ RunTest() { echo "TEST: " $1 TOTAL=$TOTAL+1 - ./$1 + timeout 120 ./$1 if [ $? == 0 ]; then PASS=$PASS+1 echo -ne "\t\t\t***TEST PASSED***\n\n" --- a/functional/threads/pi_test/run.sh +++ b/functional/threads/pi_test/run.sh @@ -21,7 +21,7 @@ Run() { echo "TEST: " $1 TOTAL=$TOTAL+1 - ./$1 > output.$1 + timeout 120 ./$1 > output.$1 if [ $? == 0 ]; then PASS=$PASS+1 echo -ne "\t\t\t***TEST PASSED***\n\n" --- a/functional/threads/robust_test/run.sh +++ b/functional/threads/robust_test/run.sh @@ -7,7 +7,7 @@ Run() { echo "TEST: " $1 TOTAL=$TOTAL+1 - ./$1 + timeout 120 ./$1 if [ $? == 0 ]; then PASS=$PASS+1 echo -ne "\t\t\t***TEST PASSED***\n\n" --- a/stress/mqueues/run.sh +++ b/stress/mqueues/run.sh @@ -12,7 +12,7 @@ RunTest() { echo "TEST: " $1 $2 TOTAL=$TOTAL+1 - ./$1 $2 + timeout 120 ./$1 $2 if [ $? == 0 ]; then PASS=$PASS+1 echo -ne "\t\t\t***TEST PASSED***\n\n" --- a/stress/semaphores/run.sh +++ b/stress/semaphores/run.sh @@ -12,7 +12,7 @@ RunTest() { echo "TEST: " $1 $2 TOTAL=$TOTAL+1 - ./$1 $2 + timeout 120 ./$1 $2 if [ $? == 0 ]; then PASS=$PASS+1 echo -ne "\t\t\t***TEST PASSED***\n\n" --- a/execute.sh +++ b/execute.sh @@ -166,9 +166,8 @@ declare -i OTH=0 # Maximum Two minutes waiting time period to execute a test. If it exceeds, the test case will go into the 'HUNG' category. TIMEOUT_VAL=120 -# if gcc available then remove the below line comment else put the t0 in posixtestsuite directory. -#gcc -o t0 t0.c -./t0 0 > /dev/null 2>&1 +# Find dynamically the return value on timeout +timeout 1 sleep 2 > /dev/null 2>&1 TIMEVAL_RET=$? # Find executable files from the conformance directory @@ -233,7 +232,7 @@ fi then FILEcut=`echo $FILE | cut -b3-80` TOTAL=$TOTAL+1 - ./t0 $TIMEOUT_VAL $FILE > /dev/null 2>&1 + timeout $TIMEOUT_VAL $FILE > /dev/null 2>&1 RET_VAL=$? --- a/Makefile +++ b/Makefile @@ -21,8 +21,7 @@ # 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. +# With coreutils' timeout, the ret val of a killed application is 124 TIMEOUT_RET = $(shell cat $(top_builddir)/t0.val) top_builddir = . @@ -40,7 +39,7 @@ FUNCTIONAL_RUN := $(shell $(top_builddir STRESS_MAKE := $(shell $(top_builddir)/locate-test --smake) STRESS_RUN := $(shell $(top_builddir)/locate-test --srun) PWD := $(shell pwd) -TIMEOUT = $(top_builddir)/t0 $(TIMEOUT_VAL) +TIMEOUT = timeout $(TIMEOUT_VAL) all: build-tests run-tests @@ -96,7 +95,7 @@ clean: # 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 $(top_builddir)/t0.val +%.run-test: %.test $(top_builddir)/t0.val @COMPLOG=$(LOGFILE).$$$$; \ [ -f $< ] || exit 0; \ $(TIMEOUT) $< > $$COMPLOG 2>&1; \ @@ -137,14 +136,10 @@ clean: 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 $(top_builddir)/t0.val +$(top_builddir)/t0.val: + echo `timeout 1 sleep 2; echo $$?` > $(top_builddir)/t0.val + +%.run-test: %.sh $(top_builddir)/t0.val @COMPLOG=$(LOGFILE).$$$$; \ chmod +x $<; \ $(TIMEOUT) $< > $$COMPLOG 2>&1; \ debian/patches/restrict-test-find.patch0000644000000000000000000000103211572104306015363 0ustar --- locate-test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/locate-test +++ b/locate-test @@ -99,13 +99,13 @@ then fi # Simple version right now, just locate all: -WHERE="$1" +WHERE="conformance/ functional/ stress/" # Force something .c or .sh # Avoid .o, backups # IF --execs, force it has no "-buildonly" # If --buildable, remove the .sh files -find "$WHERE" -type f \ +find $WHERE -type f \ \( \ \( -name "[0-9]*-*.c" -o -name "[0-9]*-[0-9]*.sh" \) \ ! -name \*.o ! -name \*~ \ debian/patches/build_Werror_fixes.patch0000644000000000000000000002023411572070745015504 0ustar --- conformance/interfaces/aio_fsync/1-1.c | 1 + conformance/interfaces/aio_fsync/10-1.c | 1 + conformance/interfaces/aio_fsync/11-1.c | 1 + conformance/interfaces/aio_fsync/13-1.c | 1 + conformance/interfaces/aio_fsync/6-1.c | 1 + conformance/interfaces/aio_fsync/7-1.c | 1 + conformance/interfaces/aio_read/12-1.c | 1 + conformance/interfaces/aio_read/13-1.c | 1 + conformance/interfaces/aio_read/14-1.c | 1 + conformance/interfaces/aio_read/15-1.c | 3 +++ conformance/interfaces/aio_read/6-1.c | 1 + conformance/interfaces/aio_suspend/2-1.c | 1 + conformance/interfaces/aio_write/10-1.c | 1 + conformance/interfaces/aio_write/11-1.c | 1 + conformance/interfaces/aio_write/12-1.c | 1 + conformance/interfaces/aio_write/13-1.c | 1 + conformance/interfaces/aio_write/4-1.c | 1 + conformance/interfaces/lio_listio/16-1.c | 1 + conformance/interfaces/lio_listio/17-1.c | 1 + conformance/interfaces/lio_listio/19-1.c | 1 + conformance/interfaces/lio_listio/20-1.c | 1 + conformance/interfaces/lio_listio/21-1.c | 1 + conformance/interfaces/lio_listio/22-1.c | 1 + conformance/interfaces/lio_listio/23-1.c | 1 + conformance/interfaces/lio_listio/24-1.c | 1 + conformance/interfaces/lio_listio/25-1.c | 1 + conformance/interfaces/pthread_sigmask/18-1.c | 1 + conformance/interfaces/sched_yield/1-1.c | 2 ++ conformance/interfaces/sem_open/1-2.c | 2 +- 29 files changed, 32 insertions(+), 1 deletion(-) --- a/conformance/interfaces/aio_fsync/10-1.c +++ b/conformance/interfaces/aio_fsync/10-1.c @@ -22,6 +22,7 @@ #define _XOPEN_SOURCE 600 #include +#include #include #include --- a/conformance/interfaces/aio_fsync/11-1.c +++ b/conformance/interfaces/aio_fsync/11-1.c @@ -8,6 +8,7 @@ #define _XOPEN_SOURCE 600 #include +#include #include #include --- a/conformance/interfaces/aio_fsync/1-1.c +++ b/conformance/interfaces/aio_fsync/1-1.c @@ -8,6 +8,7 @@ #define _XOPEN_SOURCE 600 #include +#include #include #include --- a/conformance/interfaces/aio_fsync/13-1.c +++ b/conformance/interfaces/aio_fsync/13-1.c @@ -8,6 +8,7 @@ #define _XOPEN_SOURCE 600 #include +#include #include #include --- a/conformance/interfaces/aio_fsync/6-1.c +++ b/conformance/interfaces/aio_fsync/6-1.c @@ -8,6 +8,7 @@ #define _XOPEN_SOURCE 600 #include +#include #include #include --- a/conformance/interfaces/aio_fsync/7-1.c +++ b/conformance/interfaces/aio_fsync/7-1.c @@ -8,6 +8,7 @@ #define _XOPEN_SOURCE 600 #include +#include #include #include --- a/conformance/interfaces/aio_read/12-1.c +++ b/conformance/interfaces/aio_read/12-1.c @@ -21,6 +21,7 @@ #define _XOPEN_SOURCE 600 #include +#include #include #include --- a/conformance/interfaces/aio_read/13-1.c +++ b/conformance/interfaces/aio_read/13-1.c @@ -20,6 +20,7 @@ #define _XOPEN_SOURCE 600 #include +#include #include #include --- a/conformance/interfaces/aio_read/14-1.c +++ b/conformance/interfaces/aio_read/14-1.c @@ -21,6 +21,7 @@ #define _XOPEN_SOURCE 600 #include +#include #include #include --- a/conformance/interfaces/aio_read/15-1.c +++ b/conformance/interfaces/aio_read/15-1.c @@ -20,7 +20,10 @@ */ #define _XOPEN_SOURCE 600 +#include +#include #include +#include #include #include --- a/conformance/interfaces/aio_read/6-1.c +++ b/conformance/interfaces/aio_read/6-1.c @@ -21,6 +21,7 @@ #define _XOPEN_SOURCE 600 #include +#include #include #include --- a/conformance/interfaces/aio_suspend/2-1.c +++ b/conformance/interfaces/aio_suspend/2-1.c @@ -20,6 +20,7 @@ #define _XOPEN_SOURCE 600 #include +#include #include #include --- a/conformance/interfaces/aio_write/10-1.c +++ b/conformance/interfaces/aio_write/10-1.c @@ -21,6 +21,7 @@ #define _XOPEN_SOURCE 600 #include +#include #include #include --- a/conformance/interfaces/aio_write/11-1.c +++ b/conformance/interfaces/aio_write/11-1.c @@ -21,6 +21,7 @@ #define _XOPEN_SOURCE 600 #include +#include #include #include --- a/conformance/interfaces/aio_write/12-1.c +++ b/conformance/interfaces/aio_write/12-1.c @@ -20,6 +20,7 @@ #define _XOPEN_SOURCE 600 #include +#include #include #include --- a/conformance/interfaces/aio_write/13-1.c +++ b/conformance/interfaces/aio_write/13-1.c @@ -21,6 +21,7 @@ #define _XOPEN_SOURCE 600 #include +#include #include #include --- a/conformance/interfaces/aio_write/4-1.c +++ b/conformance/interfaces/aio_write/4-1.c @@ -21,6 +21,7 @@ #define _XOPEN_SOURCE 600 #include +#include #include #include --- a/conformance/interfaces/lio_listio/16-1.c +++ b/conformance/interfaces/lio_listio/16-1.c @@ -21,6 +21,7 @@ #define _XOPEN_SOURCE 600 #include +#include #include #include --- a/conformance/interfaces/lio_listio/17-1.c +++ b/conformance/interfaces/lio_listio/17-1.c @@ -8,6 +8,7 @@ #define _XOPEN_SOURCE 600 #include +#include #include #include --- a/conformance/interfaces/lio_listio/19-1.c +++ b/conformance/interfaces/lio_listio/19-1.c @@ -8,6 +8,7 @@ #define _XOPEN_SOURCE 600 #include +#include #include #include --- a/conformance/interfaces/lio_listio/20-1.c +++ b/conformance/interfaces/lio_listio/20-1.c @@ -8,6 +8,7 @@ #define _XOPEN_SOURCE 600 #include +#include #include #include --- a/conformance/interfaces/lio_listio/21-1.c +++ b/conformance/interfaces/lio_listio/21-1.c @@ -8,6 +8,7 @@ #define _XOPEN_SOURCE 600 #include +#include #include #include --- a/conformance/interfaces/lio_listio/22-1.c +++ b/conformance/interfaces/lio_listio/22-1.c @@ -8,6 +8,7 @@ #define _XOPEN_SOURCE 600 #include +#include #include #include --- a/conformance/interfaces/lio_listio/23-1.c +++ b/conformance/interfaces/lio_listio/23-1.c @@ -8,6 +8,7 @@ #define _XOPEN_SOURCE 600 #include +#include #include #include --- a/conformance/interfaces/lio_listio/24-1.c +++ b/conformance/interfaces/lio_listio/24-1.c @@ -8,6 +8,7 @@ #define _XOPEN_SOURCE 600 #include +#include #include #include --- a/conformance/interfaces/lio_listio/25-1.c +++ b/conformance/interfaces/lio_listio/25-1.c @@ -8,6 +8,7 @@ #define _XOPEN_SOURCE 600 #include +#include #include #include --- a/conformance/interfaces/pthread_sigmask/18-1.c +++ b/conformance/interfaces/pthread_sigmask/18-1.c @@ -184,6 +184,7 @@ void * test( void * arg ) sigset_t set; int i, j=0; int signals[] = { SIGBUS, SIGKILL, SIGABRT, SIGCHLD, SIGHUP }; +#undef NSIG #define NSIG (sizeof(signals)/sizeof(int)) int operation[] = {SIG_SETMASK, SIG_BLOCK, SIG_UNBLOCK}; --- a/conformance/interfaces/sched_yield/1-1.c +++ b/conformance/interfaces/sched_yield/1-1.c @@ -22,8 +22,10 @@ #define LINUX #ifdef LINUX +#ifndef _GNU_SOURCE #define _GNU_SOURCE #endif +#endif #include #include --- a/conformance/interfaces/sem_open/1-2.c +++ b/conformance/interfaces/sem_open/1-2.c @@ -36,7 +36,7 @@ int main() /* Checking if mysemp has a value returned. From sem_open */ - if ( &mysemp != NULL) + if (mysemp != NULL) { puts("TEST PASSED"); sem_close(mysemp); debian/patches/01_gnu.patch0000644000000000000000000000133211174214576012736 0ustar Author: Robert Millan Status: not-set-upstream Description: Set needed LDFLAGS for a GNU system. Index: b/LDFLAGS =================================================================== --- a/LDFLAGS +++ b/LDFLAGS @@ -4,9 +4,6 @@ #Place the -l, -L, or -D piece before the item to link. #Lines beginning with # are comments. # -#For example, -#-lpthread -D_GNU_SOURCE -# #Recommended flags: #-D_XOPEN_SOURCE=600 -lpthread -lrt -lm # @@ -14,3 +11,5 @@ # allow for the NPTL-specific compilation (used in some test cases) # Note: this sometimes require the package nptl-devel.*.rpm to be installed. #-I /usr/include/nptl -L /usr/lib/nptl -D_XOPEN_SOURCE=600 -lpthread -lrt -lm + +-D_GNU_SOURCE -lpthread -lrt debian/control0000644000000000000000000000175111572074123010577 0ustar Source: posixtestsuite Section: devel Priority: optional Maintainer: GNU/kFreeBSD Maintainers Uploaders: Guillem Jover , Aurelien Jarno Build-Depends: debhelper (>= 7) Standards-Version: 3.9.2 Homepage: http://posixtest.sourceforge.net/ Vcs-Browser: http://svn.debian.org/viewsvn/glibc-bsd/trunk/posixtestsuite/ Vcs-Svn: svn://svn.debian.org/svn/glibc-bsd/trunk/posixtestsuite/ Package: posixtestsuite Architecture: any Depends: ${misc:Depends} Description: POSIX conformance test suite report log The POSIX Test Suite is a free (as in speech) test suite with the goal of performing conformance, functional, and stress testing of the IEEE 1003.1-2001 System Interfaces specification in a manner that is agnostic to any given implementation. . This package only provides the test suite results in a log file. If you want to run the testsuite, use the source package of the same name (e.g. apt-get source posixtestsuite). debian/source/0000755000000000000000000000000011572104417010470 5ustar debian/source/format0000644000000000000000000000001411277610772011706 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000211174214577010375 0ustar 7 debian/rules0000755000000000000000000000173311572103746010260 0ustar #!/usr/bin/make -f DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) REPORT := /usr/share/doc/posixtestsuite/report.$(DEB_HOST_GNU_TYPE).log build-indep: # We need a stamp file to avoid running the test suite twice. build-arch: build-arch-stamp build-arch-stamp: dh_testdir $(MAKE) touch $@ build: build-indep build-arch clean: dh_testdir dh_testroot $(MAKE) clean $(RM) *-stamp dh_clean install-arch: build-arch dh_testdir dh_testroot dh_prep dh_installdirs gzip -c9 logfile >$(CURDIR)/debian/posixtestsuite/$(REPORT).gz binary-indep: # Nothing to do. binary-arch: install-arch dh_testdir dh_testroot dh_installdocs # dh_installexamples dh_installman # dh_installinfo dh_installchangelogs dh_link dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: clean install-arch .PHONY: build build-indep build-arch binary-indep binary-arch binary debian/changelog0000644000000000000000000000775411572104351011054 0ustar posixtestsuite (1.5.2-4) unstable; urgency=low * Switch to debhelper compatibility level 7. * Use dh_prep instead of “dh_clean -k”. * Switch to source format “3.0 (quilt)”: - Remove quilt from Build-Depends. - Remove quilt.make include from debian/rules. - Remove patch and unpatch targets from debian/rules. - Remove now unneeded debian/README.source. * Now using Standards-Version 3.9.2 (no changes needed). * Use coreutils' timeout instead of expect's timeout, as the latter was mangling and causing the output to not be written to the logfile. * Fix some test case compilation errors due to -Werror. * Switch the binary package to be arch:any and ship the test suite report in /usr/share/doc/posixtestsuite/report.GNU-TYPE.log.gz. This will make the test suite run on all build daemons, so that we can easily see how all architectures conform to the standard. * Do not try to build test cases from the quilt state directory. * Use a stamp file to not run the test suite twice. -- Guillem Jover Fri, 03 Jun 2011 09:10:32 +0200 posixtestsuite (1.5.2-3) unstable; urgency=low * Add a README.source. * Now using Standards-Version 3.8.0. * Refresh patches with -pab. (Closes: #485358) * Refer to GPL-2 from common-licenses instead of just GPL. -- Guillem Jover Sun, 22 Jun 2008 06:23:45 +0300 posixtestsuite (1.5.2-2) unstable; urgency=low * Do not directly use the QA watch redirector, use the sf.net URL instead. (Closes: #453608) * List in debian/copyright the actual copyright holders, not the authors. * Add status fields to the patches. -- Guillem Jover Wed, 28 May 2008 00:17:11 +0300 posixtestsuite (1.5.2-1) unstable; urgency=low * New upstream release. - debian/patches/00_find_warnings.patch: Remove, merged upstream. - debian/patches/02_expect.diff: Rename to ... - debian/patches/02_timeout.patch: ... this. Make all run.sh scripts use the provided timeout script. * Fix license statement in debian/copyright: - Update FSF's copyright address. - Change 'program' to 'package'. * Remove shlibs:Depends substvar from the Depends. * Switch to quilt: - Add new debian/patches/series file. - Add Build-Depends on 'quilt (>= 0.40)'. - Include quilt.make from debian/rules. - Make clean a single colon target and depend on unpatch in debian/rules. - Remove now unused debian/patch.mk. * Add build-indep and build-arch targets, and build depending on both. * Rename install to install-indep, and make it depend on build-indep. * Make binary-indep depend only on install-indep. * Add Homepage, Vcs-Browser and Vcs-Svn fields in debian/control. * Do not ignore make errors on 'debian/rules clean'. * Bump Standards-Version to 3.7.3 (no changes needed). * Move debhelper and quilt from Build-Depends-Indep to Build-Depends, as they are used during clean. -- Guillem Jover Sat, 02 Feb 2008 22:21:08 +0200 posixtestsuite (1.5.1-1) unstable; urgency=low * New upstream release. - debian/patches/01_linux-gnu.diff: Rename to ... - debian/patches/01_gnu.patch: ... this. Rediff. - debian/patches/00_find_warnings.patch: Make find POSIX compliant. - Do not leave "sigpause/4.1.test" process running after finishing. (Closes: #303365) * Upgrade to debhelper compat version 5. * Switch from cdbs to debhelper. * Bump Standards-Version to 3.7.2 (no changes needed). * Reindent debian/copyright. * Added a watch file. -- Guillem Jover Wed, 14 Jun 2006 09:15:32 +0300 posixtestsuite (1.4.3-2) unstable; urgency=low * New Maintainer Team. (Closes: #314668) * Clean debian/copyright. * Bump Standards-Version to 3.6.2 (no changes needed). -- Guillem Jover Sun, 5 Jun 2005 17:03:47 +0300 posixtestsuite (1.4.3-1) unstable; urgency=low * Initial Release. (Closes: #269483) -- Robert Millan Wed, 1 Sep 2004 14:20:24 +0200 debian/copyright0000644000000000000000000000265011567352621011134 0ustar This package was debianized by Robert Millan on Wed, 1 Sep 2004 14:20:24 +0200. Now Maintained by Guillem Jover and Aurelien Jarno . It was downloaded from: Copyright Holders: Copyright © 2002, Jim Houston. All rights reserved. Copyright © 2002-2004, Intel Corporation. All rights reserved. Copyright © 2004, 2005, Bull S.A.. All rights reserved. Copyright © 2004, QUALCOMM Inc. All rights reserved. Copyright © 2005, Wipro Technologies Ltd. All rights reserved. License: This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU General Public License can be found in '/usr/share/common-licenses/GPL-2'.