You can subscribe to this list here.
2010 |
Jan
|
Feb
|
Mar
(16) |
Apr
(25) |
May
(8) |
Jun
(22) |
Jul
(71) |
Aug
(36) |
Sep
(22) |
Oct
(31) |
Nov
(88) |
Dec
(40) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2011 |
Jan
(128) |
Feb
(35) |
Mar
(28) |
Apr
(33) |
May
(18) |
Jun
(8) |
Jul
(21) |
Aug
(18) |
Sep
(6) |
Oct
(19) |
Nov
(12) |
Dec
(44) |
2012 |
Jan
(31) |
Feb
(48) |
Mar
(31) |
Apr
(11) |
May
(13) |
Jun
(15) |
Jul
(13) |
Aug
(18) |
Sep
(7) |
Oct
(25) |
Nov
(21) |
Dec
(13) |
2013 |
Jan
(17) |
Feb
(18) |
Mar
(21) |
Apr
(35) |
May
(30) |
Jun
(4) |
Jul
|
Aug
(1) |
Sep
(8) |
Oct
(30) |
Nov
(13) |
Dec
|
From: Garrett C. <ris...@li...> - 2010-07-06 02:21:24
|
The branch, pu, has been updated via 3b6aeead1a65de3729c147ca41e66683b74ae54c (commit) via d680c877f41da1ccc5731c069b8fae81a0a189f2 (commit) via 515be5888ee07d87c4194afbf6ca69826cf2adfa (commit) via 2aec45df627cad013f17b7ab2fcad00dd069a4e5 (commit) via f8e6d24ced9584afeaee458e7872ff50aab6769b (commit) from 8ddfef16230888ae507540c9137a6b396dacba18 (commit) - Log ----------------------------------------------------------------- commit 3b6aeead1a65de3729c147ca41e66683b74ae54c Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 19:18:19 2010 -0700 Apply test make environment to make test. Signed-off-by: Garrett Cooper <yan...@gm...> commit d680c877f41da1ccc5731c069b8fae81a0a189f2 Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 19:16:51 2010 -0700 Fix up run-test.sh further. There were some missing args, a missing step to produce t0.val, a typo, etc. Signed-off-by: Garrett Cooper <yan...@gm...> commit 515be5888ee07d87c4194afbf6ca69826cf2adfa Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 19:16:27 2010 -0700 Quiet down make test. Signed-off-by: Garrett Cooper <yan...@gm...> commit 2aec45df627cad013f17b7ab2fcad00dd069a4e5 Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 18:34:42 2010 -0700 Correct script location; improve harness. Signed-off-by: Garrett Cooper <yan...@gm...> commit f8e6d24ced9584afeaee458e7872ff50aab6769b Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 18:29:09 2010 -0700 Add missing target. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: testcases/open_posix_testsuite/Makefile | 19 ++-- testcases/open_posix_testsuite/bin/run-test.sh | 113 ++++++++++++++++++++ .../scripts/generate-makefiles.sh | 2 +- testcases/open_posix_testsuite/tools/Makefile | 2 + 4 files changed, 128 insertions(+), 8 deletions(-) create mode 100755 testcases/open_posix_testsuite/bin/run-test.sh diff --git a/testcases/open_posix_testsuite/Makefile b/testcases/open_posix_testsuite/Makefile index edf3fcc..172226b 100644 --- a/testcases/open_posix_testsuite/Makefile +++ b/testcases/open_posix_testsuite/Makefile @@ -21,11 +21,16 @@ LOGFILE?= logfile # Subdirectories to traverse down. SUBDIRS= conformance functional stress -MAKE_ENV= "CFLAGS=$(CFLAGS)" "LDFLAGS=$(LDFLAGS)" -MAKE_ENV+= "LDLIBS=$(LDLIBS)" -MAKE_ENV+= LOGFILE=`if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ +MAKE_ENV= LOGFILE=`if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ -BUILD_MAKE= env $(MAKE_ENV) $(MAKE) +BUILD_MAKE_ENV= "CFLAGS=$(CFLAGS)" "LDFLAGS=$(LDFLAGS)" +BUILD_MAKE_ENV+= "LDLIBS=$(LDLIBS)" $(MAKE_ENV) + +TEST_MAKE_ENV= $(MAKE_ENV) + +BUILD_MAKE= env $(BUILD_MAKE_ENV) $(MAKE) + +TEST_MAKE= env $(TEST_MAKE_ENV) $(MAKE) top_srcdir?= . @@ -63,7 +68,7 @@ conformance-install: @$(MAKE) -C conformance install conformance-test: - @$(MAKE) -C conformance test + @$(TEST_MAKE) -C conformance test functional-all: $(CRITICAL_FUNCTIONAL_MAKEFILE) @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ @@ -73,7 +78,7 @@ functional-install: @$(MAKE) -C functional install functional-test: - @$(MAKE) -C functional test + @$(TEST_MAKE) -C functional test stress-all: $(CRITICAL_STRESS_MAKEFILE) @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ @@ -83,7 +88,7 @@ stress-install: @$(MAKE) -C stress install stress-test: - @$(MAKE) -C stress test + @$(TEST_MAKE) -C stress test tools-all: @$(MAKE) -C tools all diff --git a/testcases/open_posix_testsuite/bin/run-test.sh b/testcases/open_posix_testsuite/bin/run-test.sh new file mode 100755 index 0000000..e3b676e --- /dev/null +++ b/testcases/open_posix_testsuite/bin/run-test.sh @@ -0,0 +1,113 @@ +#!/bin/sh +# +# A simple wrapper for pre- and post-execution activities for any given +# openposix test. +# +# run_test contains logic moved out of Makefile. +# +# Garrett Cooper, June 2010 +# + +LOGFILE=${LOGFILE:=logfile} + +NUM_FAIL=0 +NUM_PASS=0 +NUM_TESTS=0 + +run_test_loop() { + + for t in "$@"; do + + if run_test "$t"; then + NUM_PASS=`expr $NUM_PASS + 1` + else + NUM_FAIL=`expr $NUM_FAIL + 1` + fi + NUM_TESTS=`expr $NUM_TESTS + 1` + + done + + cat <<EOF +***************** +SUMMARY +***************** +PASS $NUM_PASS +FAIL $NUM_FAIL +***************** +TOTAL $NUM_TESTS +***************** +EOF + +} + +run_test() { + + testname=`echo "$1" | sed -e 's,.run-test$,,'` + + complog=$testname.log.$$ + + $SHELL -c "$SCRIPT_DIR/t0 $TIMEOUT_VAL ./$1" > $complog 2>&1 + + ret_code=$? + + if [ "$ret_code" = "0" ]; then + echo "$testname: execution: PASS" >> "${LOGFILE}" + else + case "$ret_code" in + 1) + msg="FAILED" + ;; + 2) + msg="UNRESOLVED" + ;; + 4) + msg="UNSUPPORTED" + ;; + 5) + msg="UNTESTED" + ;; + $TIMEOUT_RET) + msg="HUNG" + ;; + *) + msg="SIGNALED" + esac + (echo "$testname: execution: $msg: Output: "; cat $complog) >> \ + "${LOGFILE}" + echo "$testname: execution: $msg " + fi + + rm -f $complog + + return $ret_code + +} + +# SETUP +if ! echo > "$LOGFILE"; then + echo >&2 "ERROR: $LOGFILE not writable" + exit 1 +fi + +SCRIPT_DIR=`dirname "$0"` +T0_VAL=$SCRIPT_DIR/t0.val + +if [ ! -f "$T0_VAL" ]; then + $SCRIPT_DIR/t0 0 + echo $? > "$T0_VAL" +fi +if TIMEOUT_RET=$(cat "$T0_VAL"); then + + TIMEOUT_VAL=${TIMEOUT_VAL:=240} + if [ -f test_defs ] ; then + . ./test_defs || exit $? + fi + trap '' INT + + # RUN + run_test_loop "$@" + exit $NUM_FAIL + +else + exit $? +fi diff --git a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh index 46c4838..6671941 100755 --- a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh +++ b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh @@ -126,7 +126,7 @@ install: \$(INSTALL_DIR) run.sh done test: all run.sh - \$(SHELL) ./run.sh + @\$(SHELL) ./run.sh \$(INSTALL_DIR): mkdir -p \$@ diff --git a/testcases/open_posix_testsuite/tools/Makefile b/testcases/open_posix_testsuite/tools/Makefile index 0550534..b09903d 100644 --- a/testcases/open_posix_testsuite/tools/Makefile +++ b/testcases/open_posix_testsuite/tools/Makefile @@ -6,6 +6,8 @@ srcdir?= . +all: t0 + clean: @rm -f t0 hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-06 01:28:26
|
The branch, pu, has been updated via 8ddfef16230888ae507540c9137a6b396dacba18 (commit) via 59cfa75ca85b14396bb524d6a586b03aa45d4c09 (commit) from 7da13d4fc396f5c2e0afa4cd37ab2a9236607c12 (commit) - Log ----------------------------------------------------------------- commit 8ddfef16230888ae507540c9137a6b396dacba18 Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 18:24:57 2010 -0700 Push -j1 down in targets, remove obsolete comment. Signed-off-by: Garrett Cooper <yan...@gm...> commit 59cfa75ca85b14396bb524d6a586b03aa45d4c09 Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 18:24:10 2010 -0700 Update run.sh when Makefile changes, and fix path. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: testcases/open_posix_testsuite/Makefile | 46 +++++---- .../scripts/generate-makefiles.sh | 4 +- testcases/open_posix_testsuite/scripts/run-test.sh | 105 -------------------- 3 files changed, 26 insertions(+), 129 deletions(-) delete mode 100755 testcases/open_posix_testsuite/scripts/run-test.sh diff --git a/testcases/open_posix_testsuite/Makefile b/testcases/open_posix_testsuite/Makefile index 1c08bae..edf3fcc 100644 --- a/testcases/open_posix_testsuite/Makefile +++ b/testcases/open_posix_testsuite/Makefile @@ -21,8 +21,6 @@ LOGFILE?= logfile # Subdirectories to traverse down. SUBDIRS= conformance functional stress -# Force to -j1 so the output in the logfile won't be wonky. -MAKE+= -j1 MAKE_ENV= "CFLAGS=$(CFLAGS)" "LDFLAGS=$(LDFLAGS)" MAKE_ENV+= "LDLIBS=$(LDLIBS)" MAKE_ENV+= LOGFILE=`if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ @@ -31,7 +29,7 @@ BUILD_MAKE= env $(MAKE_ENV) $(MAKE) top_srcdir?= . -all: conformance-all functional-all stress-all tools +all: conformance-all functional-all stress-all tools-all clean: $(CRITICAL_MAKEFILES) @rm -f $(LOGFILE)* @@ -39,62 +37,66 @@ clean: $(CRITICAL_MAKEFILES) $(MAKE) -C $$dir clean >/dev/null; \ done -# Clean out all of the generated Makefiles; this is done this way to ensure -# there won't be an argument overflow, and to remain POSIXly correct (POSIX -# find(1) doesn't support -mindepth like BSD and GNU find do...). +# Clean out all of the generated Makefiles. distclean-makefiles: - for dir in $(SUBDIRS); do \ + @for dir in $(SUBDIRS); do \ $(MAKE) -C $$dir $@; \ done generate-makefiles: distclean-makefiles - @export top_srcdir=$(top_srcdir); \ - $(top_srcdir)/scripts/generate-makefiles.sh + @env top_srcdir=$(top_srcdir) \ + $(top_srcdir)/scripts/generate-makefiles.sh install: conformance-install functional-install stress-install - install -m 0755 scripts/run-test.sh \ + @install -m 0755 scripts/run-test.sh \ $(DESTDIR)/`$(SHELL) $(top_srcdir)/scripts/print-prefix.sh`/. -tools: - $(MAKE) -C tools all +test: conformance-test functional-test stress-test + @ln tools/t0 bin/t0 # Test build and execution targets. conformance-all: $(CRITICAL_CONFORMANCE_MAKEFILE) @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ - @$(BUILD_MAKE) -C conformance all + @$(BUILD_MAKE) -C conformance -j1 all conformance-install: - $(MAKE) -C conformance install + @$(MAKE) -C conformance install conformance-test: - $(MAKE) -C conformance test + @$(MAKE) -C conformance test functional-all: $(CRITICAL_FUNCTIONAL_MAKEFILE) @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ - @$(BUILD_MAKE) -C functional all + @$(BUILD_MAKE) -C functional -j1 all functional-install: - $(MAKE) -C functional install + @$(MAKE) -C functional install functional-test: - $(MAKE) -C functional test + @$(MAKE) -C functional test stress-all: $(CRITICAL_STRESS_MAKEFILE) @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ - @$(BUILD_MAKE) -C stress all + @$(BUILD_MAKE) -C stress -j1 all stress-install: - $(MAKE) -C stress install + @$(MAKE) -C stress install stress-test: - $(MAKE) -C stress test + @$(MAKE) -C stress test + +tools-all: + @$(MAKE) -C tools all + +tools-install: + @$(MAKE) -C tools install $(CRITICAL_MAKEFILES): \ $(top_srcdir)/scripts/generate-makefiles.sh \ $(top_srcdir)/CFLAGS \ $(top_srcdir)/LDFLAGS \ $(top_srcdir)/LDLIBS - $(MAKE) generate-makefiles + @$(MAKE) generate-makefiles #tests-pretty: # $(MAKE) all | column -t -s: diff --git a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh index 925bfe4..46c4838 100755 --- a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh +++ b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh @@ -131,9 +131,9 @@ test: all run.sh \$(INSTALL_DIR): mkdir -p \$@ -run.sh: +run.sh: \$(srcdir)/Makefile @echo '#/bin/sh' > \$@ - @echo '\$(top_srcdir)/run-test.sh \$(INSTALL_TARGETS)' >> \$@ + @echo '\$(top_srcdir)/bin/run-test.sh \$(INSTALL_TARGETS)' >> \$@ EOF diff --git a/testcases/open_posix_testsuite/scripts/run-test.sh b/testcases/open_posix_testsuite/scripts/run-test.sh deleted file mode 100755 index 6c8720e..0000000 --- a/testcases/open_posix_testsuite/scripts/run-test.sh +++ /dev/null @@ -1,105 +0,0 @@ -#!/bin/sh -# -# A simple wrapper for pre- and post-execution activities for any given -# openposix test. -# -# run_test contains logic moved out of Makefile. -# -# Garrett Cooper, June 2010 -# - -LOGFILE=${LOGFILE:=logfile} - -NUM_FAIL=0 -NUM_PASS=0 -NUM_TESTS=0 - -run_test_loop() { - - for test in $*; do - - if run_test $test; then - : $(( NUM_PASS += 1 )) - else - : $(( NUM_FAIL += 1 )) - fi - : $(( NUM_TESTS += 1 )) - - done - - cat <<EOF -***************** -SUMMARY -***************** -PASS $NUM_PASS -FAIL $NUM_FAIL -***************** -TOTAL $NUM_TESTS -***************** -EOF - -} - -run_test() { - - testname=`echo "$1" | sed -e 's,.run-test$,,'` - - complog=$testname.log.$$ - - $SHELL -c "'$(dirname "$0")/t0' ./$1" > $complog 2>&1 - - ret_code=$? - - if [ "$ret_code" = "0" ]; then - echo "$testname: execution: PASS" >> $(LOGFILE) - else - case "$ret_code" in - 1) - msg="FAILED" - ;; - 2) - msg="UNRESOLVED" - ;; - 4) - msg="UNSUPPORTED" - ;; - 5) - msg="UNTESTED" - ;; - $TIMEOUT_RET) - msg="HUNG" - ;; - *) - msg="SIGNALED" - esac - (echo "$testname: execution: $msg: Output: "; cat $complog) >> \ - ${LOGFILE} - echo "$testname: execution: $msg " - fi - - rm -f $complog - - return $ret_code - -} - -# SETUP -if echo > "$LOGFILE"; then - : -else - echo >&2 "ERROR: $LOGFILE not writable" - exit 1 -fi -if TIMEOUT_RET=$(cat "$(dirname "$0")/t0.val"); then - TIMEOUT_VAL=${TIMEOUT_VAL:=240} - if [ -f test_defs ] ; then - . ./test_defs || exit $? - fi - trap '' INT - - # RUN - run_test_loop $@ - exit $NUM_FAIL -else - exit $? -fi hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-06 00:40:28
|
The branch, pu, has been updated via 7da13d4fc396f5c2e0afa4cd37ab2a9236607c12 (commit) via f993a1dcedee2b60bdb1731507b5c063af060490 (commit) via a6a5dba5a420896edf184669d871971e1cf52c56 (commit) via dd845c2f6209f370c89b28d34ff6d204fa32c0c7 (commit) via 84e052d5087dd3bc469f6a02de3b7abd774c4df5 (commit) via d8dd9700830563280c60dcabe5b9c13bc11763b0 (commit) via e7160e77fc728e7defab7574f60713d9e33a0d49 (commit) via 3b808b433b22516d2eecd95aa2ba67dbf057e975 (commit) via 0cc96ccac4c9ea57f7c64934af42c8cd43ad6da4 (commit) via a3acfa7e5751f5c93aff5685fb1c0997bd3d7311 (commit) from 070138c410944469346ff6823fc3df58a5e2da6f (commit) - Log ----------------------------------------------------------------- commit 7da13d4fc396f5c2e0afa4cd37ab2a9236607c12 Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 17:36:32 2010 -0700 Remove another [now] autogenerated file. Signed-off-by: Garrett Cooper <yan...@gm...> commit f993a1dcedee2b60bdb1731507b5c063af060490 Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 17:35:31 2010 -0700 Remove [now] autogenerated file. Signed-off-by: Garrett Cooper <yan...@gm...> commit a6a5dba5a420896edf184669d871971e1cf52c56 Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 17:31:21 2010 -0700 Improve usability in test harness script. Signed-off-by: Garrett Cooper <yan...@gm...> commit dd845c2f6209f370c89b28d34ff6d204fa32c0c7 Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 17:24:52 2010 -0700 You aren't needed anymore. Signed-off-by: Garrett Cooper <yan...@gm...> commit 84e052d5087dd3bc469f6a02de3b7abd774c4df5 Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 17:23:39 2010 -0700 Bye bye useless script... Signed-off-by: Garrett Cooper <yan...@gm...> commit d8dd9700830563280c60dcabe5b9c13bc11763b0 Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 17:23:07 2010 -0700 Clean up run.sh, fix shebang, whitespace. Signed-off-by: Garrett Cooper <yan...@gm...> commit e7160e77fc728e7defab7574f60713d9e33a0d49 Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 17:18:41 2010 -0700 Remove some run.sh scripts. Signed-off-by: Garrett Cooper <yan...@gm...> commit 3b808b433b22516d2eecd95aa2ba67dbf057e975 Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 17:02:52 2010 -0700 Add install target; shuffle around/cleanup code. Signed-off-by: Garrett Cooper <yan...@gm...> commit 0cc96ccac4c9ea57f7c64934af42c8cd43ad6da4 Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 17:02:00 2010 -0700 Use generated run.sh instead in Makefile for test. Signed-off-by: Garrett Cooper <yan...@gm...> commit a3acfa7e5751f5c93aff5685fb1c0997bd3d7311 Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 16:59:23 2010 -0700 Shuffle around code; generate run.sh for install. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: testcases/open_posix_testsuite/Makefile | 28 ++++++--- .../open_posix_testsuite/functional/mqueues/run.sh | 53 ----------------- .../functional/semaphores/run.sh | 53 ----------------- .../functional/threads/pi_test/run.sh | 49 --------------- .../functional/threads/robust_test/run.sh | 33 ---------- .../open_posix_testsuite/functional/timers/run.sh | 62 -------------------- .../open_posix_testsuite/scripts/exec-func.sh | 8 --- .../scripts/generate-makefiles.sh | 40 ++++++------- .../open_posix_testsuite/scripts/print-prefix.sh | 10 +++ testcases/open_posix_testsuite/scripts/run-test.sh | 61 +++++++++++++++----- .../open_posix_testsuite/stress/mqueues/run.sh | 50 ---------------- .../open_posix_testsuite/stress/semaphores/run.sh | 48 --------------- 12 files changed, 95 insertions(+), 400 deletions(-) delete mode 100755 testcases/open_posix_testsuite/functional/mqueues/run.sh delete mode 100755 testcases/open_posix_testsuite/functional/semaphores/run.sh delete mode 100755 testcases/open_posix_testsuite/functional/threads/pi_test/run.sh delete mode 100755 testcases/open_posix_testsuite/functional/threads/robust_test/run.sh delete mode 100755 testcases/open_posix_testsuite/functional/timers/run.sh delete mode 100644 testcases/open_posix_testsuite/scripts/exec-func.sh create mode 100755 testcases/open_posix_testsuite/scripts/print-prefix.sh mode change 100644 => 100755 testcases/open_posix_testsuite/scripts/run-test.sh delete mode 100755 testcases/open_posix_testsuite/stress/mqueues/run.sh delete mode 100755 testcases/open_posix_testsuite/stress/semaphores/run.sh diff --git a/testcases/open_posix_testsuite/Makefile b/testcases/open_posix_testsuite/Makefile index 5661d6a..1c08bae 100644 --- a/testcases/open_posix_testsuite/Makefile +++ b/testcases/open_posix_testsuite/Makefile @@ -51,12 +51,9 @@ generate-makefiles: distclean-makefiles @export top_srcdir=$(top_srcdir); \ $(top_srcdir)/scripts/generate-makefiles.sh -$(CRITICAL_MAKEFILES): \ - $(top_srcdir)/scripts/generate-makefiles.sh \ - $(top_srcdir)/CFLAGS \ - $(top_srcdir)/LDFLAGS \ - $(top_srcdir)/LDLIBS - $(MAKE) generate-makefiles +install: conformance-install functional-install stress-install + install -m 0755 scripts/run-test.sh \ + $(DESTDIR)/`$(SHELL) $(top_srcdir)/scripts/print-prefix.sh`/. tools: $(MAKE) -C tools all @@ -66,25 +63,38 @@ conformance-all: $(CRITICAL_CONFORMANCE_MAKEFILE) @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ @$(BUILD_MAKE) -C conformance all +conformance-install: + $(MAKE) -C conformance install + conformance-test: - @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ $(MAKE) -C conformance test functional-all: $(CRITICAL_FUNCTIONAL_MAKEFILE) @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ @$(BUILD_MAKE) -C functional all +functional-install: + $(MAKE) -C functional install + functional-test: - @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ $(MAKE) -C functional test stress-all: $(CRITICAL_STRESS_MAKEFILE) @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ @$(BUILD_MAKE) -C stress all +stress-install: + $(MAKE) -C stress install + stress-test: - @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ $(MAKE) -C stress test +$(CRITICAL_MAKEFILES): \ + $(top_srcdir)/scripts/generate-makefiles.sh \ + $(top_srcdir)/CFLAGS \ + $(top_srcdir)/LDFLAGS \ + $(top_srcdir)/LDLIBS + $(MAKE) generate-makefiles + #tests-pretty: # $(MAKE) all | column -t -s: diff --git a/testcases/open_posix_testsuite/functional/mqueues/run.sh b/testcases/open_posix_testsuite/functional/mqueues/run.sh deleted file mode 100755 index 95606df..0000000 --- a/testcases/open_posix_testsuite/functional/mqueues/run.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh -# Copyright (c) 2002, Intel Corporation. All rights reserved. -# Created by: crystal.xiong 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. -# -# Run all the tests in the message queues functional area. - -# Helper functions -RunTest() -{ - echo "TEST: " $1 - : $(( TOTAL += 1 )) - ./$1 - if [ $? -eq 0 ]; then - : $(( PASS += 1 )) - echo " ***TEST PASSED***" - echo "" - else - : $(( FAIL += 1 )) - echo " ***TEST FAILED***" - echo "" - fi -} - -# Main program - -TOTAL=0 -PASS=0 -FAIL=0 - -# Add lists of tests to these variables for execution -TESTS="notify.test send_rev_1.test send_rev_2.test" - -echo "Run the message queue functional tests" -echo "=====================" - -for test in $TESTS; do - RunTest $test -done - -cat <<EOF - **************** - * TOTAL: $TOTAL - * PASSED: $PASS - * FAILED: $FAIL - **************** -EOF - -exit 0 - - diff --git a/testcases/open_posix_testsuite/functional/semaphores/run.sh b/testcases/open_posix_testsuite/functional/semaphores/run.sh deleted file mode 100755 index 282c64e..0000000 --- a/testcases/open_posix_testsuite/functional/semaphores/run.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh -# Copyright (c) 2002, Intel Corporation. All rights reserved. -# Created by: crystal.xiong 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. -# -# Run all the tests in the semaphore functional area. - -# Helper functions -RunTest() -{ - echo "TEST: " $1 - : $(( TOTAL += 1 )) - ./$1 - if [ $? -eq 0 ]; then - : $(( PASS += 1 )) - echo " ***TEST PASSED***" - echo "" - else - : $(( FAIL += 1 )) - echo " ***TEST FAILED***" - echo "" - fi -} - -# Main program - -TOTAL=0 -PASS=0 -FAIL=0 - -# Add lists of tests to these variables for execution -TESTS="sem_conpro.test sem_lock.test sem_philosopher.test sem_readerwriter.test sem_sleepingbarber.test" - -echo "Run the semaphore functional tests" -echo "=====================" - -for test in $TESTS; do - RunTest $test -done - -cat <<EOF - **************** - * TOTAL: $TOTAL - * PASSED: $PASS - * FAILED: $FAIL - **************** -EOF - -exit 0 - - diff --git a/testcases/open_posix_testsuite/functional/threads/pi_test/run.sh b/testcases/open_posix_testsuite/functional/threads/pi_test/run.sh deleted file mode 100755 index 1f95c55..0000000 --- a/testcases/open_posix_testsuite/functional/threads/pi_test/run.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/sh -PRIORITY=20 -# If users run pi tests from sshd, they need to improve the priority -# sshd using the following command. - -# chrt -p -f $PRIORITY $PPID - -# If users run pi test from console, they need to add the prioirity -# of the shell using the following command. - -# chrt -p -f $PRIORITY $$ - -killall -9 watchdogtimer.sh -rm -rf output.* -../tools/watchdogtimer.sh & - -TOTAL=0 -FAIL=0 -PASS=0 - -Run() -{ - echo "TEST: " $1 - : $(( TOTAL += 1 )) - ./$1 > output.$1 - if [ $? -eq 0 ]; then - : $(( PASS += 1 )) - echo " ***TEST PASSED***" - echo "" - else - : $(( FAIL += 1 )) - echo " ***TEST FAILED***" - echo "" - fi -} - -TESTS="pitest-1 pitest-2 pitest-3 pitest-4 pitest-5 pitest-6" - -for test in $TESTS; do - Run $test -done - -cat <<EOF - ***************** - * TOTAL: $TOTAL * - * PASSED: $PASS * - * FAILED: $FAIL * - ***************** -EOF diff --git a/testcases/open_posix_testsuite/functional/threads/robust_test/run.sh b/testcases/open_posix_testsuite/functional/threads/robust_test/run.sh deleted file mode 100755 index bb04519..0000000 --- a/testcases/open_posix_testsuite/functional/threads/robust_test/run.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh - -TOTAL=0 -FAIL=0 -PASS=0 -Run() -{ - echo "TEST: " $1 - : $(( TOTAL += 1 )) - ./$1 - if [ $? -eq 0 ]; then - : $(( PASS += 1 )) - echo " ***TEST PASSED***" - echo "" - else - : $(( FAIL += 1 )) - echo " ***TEST FAILED***" - echo "" - fi -} -TESTS="robust1-sun robust2-sun robust1-mode2 robust2-mode2 robust3-mode2" - -for test in $TESTS; do - Run $test -done - -cat <<EOF - ***************** - * TOTAL: $TOTAL * - * PASSED: $PASS * - * FAILED: $FAIL * - ***************** -EOF diff --git a/testcases/open_posix_testsuite/functional/timers/run.sh b/testcases/open_posix_testsuite/functional/timers/run.sh deleted file mode 100755 index 8832eca..0000000 --- a/testcases/open_posix_testsuite/functional/timers/run.sh +++ /dev/null @@ -1,62 +0,0 @@ -#!/bin/sh -# 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. -# -# Run all the tests in the functional/timers area. - -# Helper functions -RunTest() -{ - echo "TEST: " $1 - : $(( TOTAL += 1 )) - $1 - if [ $? -eq 0 ]; then - : $(( PASS += 1 )) - echo " ***TEST PASSED***" - echo "" - else - : $(( FAIL += 1 )) - echo " ***TEST FAILED***" - echo "" - fi -} - -# Main program - -TOTAL=0 -PASS=0 -FAIL=0 - -# Add lists of tests to these variables for execution -CLOCKSTESTS="clocks/twopsetclock.test" -TIMERSTESTS="timers/twoevtimers.test timers/twoptimers.test" - -echo "Run the clocks and timers functional tests" -echo "=====================" - -echo "Run clocks tests" -echo "========" - -for test in $CLOCKSTESTS; do - RunTest $test -done - -echo "Run timers tests" -echo "========" - -for test in $TIMERSTESTS; do - RunTest $test -done - -cat <<EOF - **************** - * TOTAL: $TOTAL - * PASSED: $PASS - * FAILED: $FAIL - **************** -EOF - -exit 0 diff --git a/testcases/open_posix_testsuite/scripts/exec-func.sh b/testcases/open_posix_testsuite/scripts/exec-func.sh deleted file mode 100644 index 82c228e..0000000 --- a/testcases/open_posix_testsuite/scripts/exec-func.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash - -for d in $(./locate-test --frun); do - echo "Testing $d" - pushd $d >/dev/null - ./run.sh - popd >/dev/null -done diff --git a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh index 6127a2d..925bfe4 100755 --- a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh +++ b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh @@ -103,8 +103,8 @@ EOF fi cat >> "$makefile.2" <<EOF -INSTALL_TARGETS+= ${prereq_cache} +INSTALL_TARGETS+= ${prereq_cache} MAKE_TARGETS+= ${make_target_prereq_cache} EOF @@ -115,19 +115,26 @@ EOF all: \$(MAKE_TARGETS) clean: - rm -f \$(MAKE_TARGETS) logfile* *.core - -install: \$(INSTALL_DIR) - for i in \$(INSTALL_TARGETS); do \\ - install \$\$i \$(INSTALL_DIR)/\$\$i;\\ + rm -f \$(MAKE_TARGETS) logfile* run.sh *.core + +install: \$(INSTALL_DIR) run.sh + set -e; for file in \$(INSTALL_TARGETS); do \\ + if [ -f "\$\$file" ] ; then \\ + install -m 00755 \$\$file \\ + \$(INSTALL_DIR)/\$\$file; \\ + fi; \\ done -test: all - \$(top_srcdir)/scripts/run-test.sh \$(MAKE_TARGETS) +test: all run.sh + \$(SHELL) ./run.sh \$(INSTALL_DIR): mkdir -p \$@ +run.sh: + @echo '#/bin/sh' > \$@ + @echo '\$(top_srcdir)/run-test.sh \$(INSTALL_TARGETS)' >> \$@ + EOF fi @@ -135,7 +142,7 @@ EOF # Produce _awesome_ target rules for everything that needs it. for prereq in ${make_target_prereq_cache}; do - test_name=$(echo "$prereq" | sed -e "s,.$suffix,,") + test_name=`echo "$prereq" | sed -e "s,.$suffix,,"` c_file="$test_name.c" case "$suffix" in @@ -176,7 +183,7 @@ generate_makefiles() { while read filename; do - prereq_dir=$(dirname "$filename") + prereq_dir=`dirname "$filename"` # First run. if [ "$prereq_cache_dir" = "" ] ; then @@ -196,7 +203,7 @@ generate_makefiles() { if [ "$prereq_cache" != "" ] ; then prereq_cache="$prereq_cache " fi - prereq_cache="$prereq_cache$(basename "$filename" | sed "s,.c\$,.$suffix,g")" + prereq_cache="$prereq_cache"`basename "$filename" | sed "s,.c\$,.$suffix,g"` done < $make_gen_list @@ -205,19 +212,10 @@ generate_makefiles() { } -DEFAULT_PREFIX= - -if uname -a | grep -iq linux -then - DEFAULT_PREFIX=/opt -else - DEFAULT_PREFIX=/usr/local -fi - export PATH="$PATH:`dirname "$0"`" AUTHORDATE=`grep "Garrett Cooper" "$0" | head -n 1 | sed 's,# *,,'` -PREFIX=${PREFIX:=$DEFAULT_PREFIX/openposix_testsuite} +PREFIX=`print-prefix.sh` EXEC_PREFIX="${PREFIX}/bin" TOP_SRCDIR=${TOP_SRCDIR:=`dirname "$0"`/..} diff --git a/testcases/open_posix_testsuite/scripts/print-prefix.sh b/testcases/open_posix_testsuite/scripts/print-prefix.sh new file mode 100755 index 0000000..5a552b8 --- /dev/null +++ b/testcases/open_posix_testsuite/scripts/print-prefix.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +if uname -a | grep -iq linux +then + DEFAULT_PREFIX=/opt +else + DEFAULT_PREFIX=/usr/local +fi + +echo ${PREFIX:=$DEFAULT_PREFIX/openposix_testsuite} diff --git a/testcases/open_posix_testsuite/scripts/run-test.sh b/testcases/open_posix_testsuite/scripts/run-test.sh old mode 100644 new mode 100755 index 88416bb..6c8720e --- a/testcases/open_posix_testsuite/scripts/run-test.sh +++ b/testcases/open_posix_testsuite/scripts/run-test.sh @@ -6,9 +6,38 @@ # run_test contains logic moved out of Makefile. # # Garrett Cooper, June 2010 +# + +LOGFILE=${LOGFILE:=logfile} + +NUM_FAIL=0 +NUM_PASS=0 +NUM_TESTS=0 run_test_loop() { - for i in + + for test in $*; do + + if run_test $test; then + : $(( NUM_PASS += 1 )) + else + : $(( NUM_FAIL += 1 )) + fi + : $(( NUM_TESTS += 1 )) + + done + + cat <<EOF +***************** +SUMMARY +***************** +PASS $NUM_PASS +FAIL $NUM_FAIL +***************** +TOTAL $NUM_TESTS +***************** +EOF + } run_test() { @@ -17,7 +46,7 @@ run_test() { complog=$testname.log.$$ - "$(dirname "$0")/t0" ./$1 > $complog 2>&1 + $SHELL -c "'$(dirname "$0")/t0' ./$1" > $complog 2>&1 ret_code=$? @@ -55,18 +84,22 @@ run_test() { } # SETUP -if [ "x$1" = x ]; then - LOGFILE=/dev/stdout -elif echo > "$1"; then - echo >&2 "ERROR: $1 not readable" +if echo > "$LOGFILE"; then + : else - LOGFILE=$1 -fi -TIMEOUT_RET=$(cat "$(dirname "$0")/t0.val") -TIMEOUT_VAL=${TIMEOUT_VAL:=240} -if [ -f test_defs ] ; then - . ./test_defs || exit $? + echo >&2 "ERROR: $LOGFILE not writable" + exit 1 fi +if TIMEOUT_RET=$(cat "$(dirname "$0")/t0.val"); then + TIMEOUT_VAL=${TIMEOUT_VAL:=240} + if [ -f test_defs ] ; then + . ./test_defs || exit $? + fi + trap '' INT -# RUN -run_test "$@" + # RUN + run_test_loop $@ + exit $NUM_FAIL +else + exit $? +fi diff --git a/testcases/open_posix_testsuite/stress/mqueues/run.sh b/testcases/open_posix_testsuite/stress/mqueues/run.sh deleted file mode 100755 index 37f34d8..0000000 --- a/testcases/open_posix_testsuite/stress/mqueues/run.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/sh -# Copyright (c) 2002, Intel Corporation. All rights reserved. -# Created by: crystal.xiong 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. -# -# Run all the tests in the message queues stress area. - -# Helper functions -RunTest() -{ - echo "TEST: " $1 $2 - TOTAL=$TOTAL+1 - ./$1 $2 - if [ $? == 0 ]; then - PASS=$PASS+1 - echo -ne "\t\t\t***TEST PASSED***\n\n" - else - FAIL=$FAIL+1 - echo -ne "\t\t\t***TEST FAILED***\n\n" - fi -} - -# Main program - -declare -i TOTAL=0 -declare -i PASS=0 -declare -i FAIL=0 - -# Add lists of tests to these variables for execution -TESTS="multi_send_rev_1.test multi_send_rev_2.test" - -echo "Run the message queue stress tests" -echo "==========================================" - -RunTest multi_send_rev_1.test 10 -RunTest multi_send_rev_2.test 100 - - -echo -echo -ne "\t\t****************\n" -echo -ne "\t\t* TOTAL: " $TOTAL "\n" -echo -ne "\t\t* PASSED: " $PASS "\n" -echo -ne "\t\t* FAILED: " $FAIL "\n" -echo -ne "\t\t****************\n" - -exit 0 - - diff --git a/testcases/open_posix_testsuite/stress/semaphores/run.sh b/testcases/open_posix_testsuite/stress/semaphores/run.sh deleted file mode 100755 index 8812b56..0000000 --- a/testcases/open_posix_testsuite/stress/semaphores/run.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/sh -# Copyright (c) 2002, Intel Corporation. All rights reserved. -# Created by: crystal.xiong 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. -# -# Run all the tests in the semaphore stress area. - -# Helper functions -RunTest() -{ - echo "TEST: " $1 $2 - TOTAL=$TOTAL+1 - ./$1 $2 - if [ $? == 0 ]; then - PASS=$PASS+1 - echo -ne "\t\t\t***TEST PASSED***\n\n" - else - FAIL=$FAIL+1 - echo -ne "\t\t\t***TEST FAILED***\n\n" - fi -} - -# Main program - -declare -i TOTAL=0 -declare -i PASS=0 -declare -i FAIL=0 - -# Add lists of tests to these variables for execution -TESTS="multi_con_pro.test" - -echo "Run the semaphore stress tests" -echo "==========================================" - -RunTest $TESTS 100 - -echo -echo -ne "\t\t****************\n" -echo -ne "\t\t* TOTAL: " $TOTAL "\n" -echo -ne "\t\t* PASSED: " $PASS "\n" -echo -ne "\t\t* FAILED: " $FAIL "\n" -echo -ne "\t\t****************\n" - -exit 0 - - hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-05 22:45:54
|
The branch, pu, has been updated via 070138c410944469346ff6823fc3df58a5e2da6f (commit) via d212516229b8a41d4302620da4a3511b333ed2e5 (commit) via 096c450506ad0f50352a3c8b43de9c1538295d82 (commit) via 85d7f26c7eb5994d4dabdb05998c90d86d7baa46 (commit) via 0414c8fbabd00c4e1df589aa13d995c91c8736ec (commit) from 0894865a51d30399e62a20349061112deaa4b4f6 (commit) - Log ----------------------------------------------------------------- commit 070138c410944469346ff6823fc3df58a5e2da6f Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 14:46:38 2010 -0700 Improve wording. Signed-off-by: Garrett Cooper <yan...@gm...> commit d212516229b8a41d4302620da4a3511b333ed2e5 Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 14:45:01 2010 -0700 Get the compile to pass. The run will fail, but that's ok. Signed-off-by: Garrett Cooper <yan...@gm...> commit 096c450506ad0f50352a3c8b43de9c1538295d82 Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 14:24:59 2010 -0700 Remove dead code. Signed-off-by: Garrett Cooper <yan...@gm...> commit 85d7f26c7eb5994d4dabdb05998c90d86d7baa46 Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 14:21:03 2010 -0700 Make 2-2-buildonly less strict on #defines. Signed-off-by: Garrett Cooper <yan...@gm...> commit 0414c8fbabd00c4e1df589aa13d995c91c8736ec Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 14:09:03 2010 -0700 Properly conditionalize XSR constants. These are optional as per POSIX spec. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: .../definitions/errno_h/3-1-buildonly.c | 16 +++++- .../conformance/definitions/errno_h/3-2.c | 12 +++- .../conformance/definitions/errno_h/4-1.c | 12 +++- .../conformance/definitions/errno_h/assertions.xml | 4 + .../definitions/pthread_h/2-2-buildonly.c | 61 ++++++------------- .../conformance/interfaces/aio_fsync/2-1.c | 15 ++++- .../stress/threads/fork/s-c1.c | 1 - 7 files changed, 69 insertions(+), 52 deletions(-) diff --git a/testcases/open_posix_testsuite/conformance/definitions/errno_h/3-1-buildonly.c b/testcases/open_posix_testsuite/conformance/definitions/errno_h/3-1-buildonly.c index ed1c519..7d9cb9c 100644 --- a/testcases/open_posix_testsuite/conformance/definitions/errno_h/3-1-buildonly.c +++ b/testcases/open_posix_testsuite/conformance/definitions/errno_h/3-1-buildonly.c @@ -1,6 +1,8 @@ /* - *Following symbols need to be defined in errno.h - *author:ys...@ln... + * Following symbols need to be defined in errno.h + * author:ys...@ln... + * + * All #ifdef'ed constants are optional, depending on the spec definition. */ #include <errno.h> @@ -13,7 +15,9 @@ int dummy5 = EAFNOSUPPORT; int dummy6 = EAGAIN; int dummy7 = EALREADY; int dummy8 = EBADF; +#ifdef EBADMSG int dummy9 = EBADMSG; +#endif int dummy10 = EBUSY; int dummy11 = ECANCELED; int dummy12 = ECHILD; @@ -47,7 +51,9 @@ int dummy39 = ENETRESET; int dummy40 = ENETUNREACH; int dummy41 = ENFILE; int dummy42 = ENOBUFS; +#ifdef ENODATA int dummy43 = ENODATA; +#endif int dummy44 = ENODEV; int dummy45 = ENOENT; int dummy46 = ENOEXEC; @@ -57,8 +63,12 @@ int dummy49 = ENOMEM; int dummy50 = ENOMSG; int dummy51 = ENOPROTOOPT; int dummy52 = ENOSPC; +#ifdef ENOSR int dummy53 = ENOSR; +#endif +#ifdef ENOSTR int dummy54 = ENOSTR; +#endif int dummy55 = ENOSYS; int dummy56 = ENOTCONN; int dummy57 = ENOTDIR; @@ -79,7 +89,9 @@ int dummy71 = EROFS; int dummy72 = ESPIPE; int dummy73 = ESRCH; int dummy74 = ESTALE; +#ifdef ETIME int dummy75 = ETIME; +#endif int dummy76 = ETIMEDOUT; int dummy77 = ETXTBSY; int dummy78 = EWOULDBLOCK; diff --git a/testcases/open_posix_testsuite/conformance/definitions/errno_h/3-2.c b/testcases/open_posix_testsuite/conformance/definitions/errno_h/3-2.c index 35d056d..cfacaa1 100644 --- a/testcases/open_posix_testsuite/conformance/definitions/errno_h/3-2.c +++ b/testcases/open_posix_testsuite/conformance/definitions/errno_h/3-2.c @@ -49,12 +49,20 @@ struct unique { {ENETDOWN,"ENETDOWN",ENETDOWN}, {ENETRESET,"ENETRESET",ENETRESET},{ENETUNREACH,"ENETUNREACH",ENETUNREACH}, {ENFILE,"ENFILE",ENFILE},{ENOBUFS,"ENOBUFS",ENOBUFS}, - {ENODATA,"ENODATA",ENODATA},{ENODEV,"ENODEV",ENODEV}, +#ifdef ENODATA + {ENODATA,"ENODATA",ENODATA}, +#endif + {ENODEV,"ENODEV",ENODEV}, {ENOENT,"ENOENT",ENOENT},{ENOEXEC,"ENOEXEC",ENOEXEC}, {ENOLCK,"ENOLCK",ENOLCK},{ENOLINK,"ENOLINK",ENOLINK}, {ENOMEM,"ENOMEM",ENOMEM},{ENOMSG,"ENOMSG",ENOMSG}, {ENOPROTOOPT,"ENOPROTOOPT",ENOPROTOOPT},{ENOSPC,"ENOSPC",ENOSPC}, - {ENOSR,"ENOSR",ENOSR},{ENOSTR,"ENOSTR",ENOSTR}, +#ifdef ENOSR + {ENOSR,"ENOSR",ENOSR}, +#endif +#ifdef ENOSTR + {ENOSTR,"ENOSTR",ENOSTR}, +#endif {ENOSYS,"ENOSYS",ENOSYS},{ENOTCONN,"ENOTCONN",ENOTCONN}, {ENOTDIR,"ENOTDIR",ENOTDIR},{ENOTEMPTY,"ENOTEMPTY",ENOTEMPTY}, {ENOTSOCK,"ENOTSOCK",ENOTSOCK},{ENOTSUP,"ENOTSUP",ENOTSUP}, diff --git a/testcases/open_posix_testsuite/conformance/definitions/errno_h/4-1.c b/testcases/open_posix_testsuite/conformance/definitions/errno_h/4-1.c index 017f600..7cc2fb5 100644 --- a/testcases/open_posix_testsuite/conformance/definitions/errno_h/4-1.c +++ b/testcases/open_posix_testsuite/conformance/definitions/errno_h/4-1.c @@ -45,12 +45,20 @@ struct unique { {ENETDOWN,"ENETDOWN"}, {ENETRESET,"ENETRESET"},{ENETUNREACH,"ENETUNREACH"}, {ENFILE,"ENFILE"},{ENOBUFS,"ENOBUFS"}, - {ENODATA,"ENODATA"},{ENODEV,"ENODEV"}, +#ifdef ENODATA + {ENODATA,"ENODATA"}, +#endif + {ENODEV,"ENODEV"}, {ENOENT,"ENOENT"},{ENOEXEC,"ENOEXEC"}, {ENOLCK,"ENOLCK"},{ENOLINK,"ENOLINK"}, {ENOMEM,"ENOMEM"},{ENOMSG,"ENOMSG"}, {ENOPROTOOPT,"ENOPROTOOPT"},{ENOSPC,"ENOSPC"}, - {ENOSR,"ENOSR"},{ENOSTR,"ENOSTR"}, +#ifdef ENOSR + {ENOSR,"ENOSR"}, +#endif +#ifdef ENOSTR + {ENOSTR,"ENOSTR"}, +#endif {ENOSYS,"ENOSYS"},{ENOTCONN,"ENOTCONN"}, {ENOTDIR,"ENOTDIR"},{ENOTEMPTY,"ENOTEMPTY"}, {ENOTSOCK,"ENOTSOCK"},{ENOTSUP,"ENOTSUP"}, diff --git a/testcases/open_posix_testsuite/conformance/definitions/errno_h/assertions.xml b/testcases/open_posix_testsuite/conformance/definitions/errno_h/assertions.xml index 55c6a9f..08b7934 100644 --- a/testcases/open_posix_testsuite/conformance/definitions/errno_h/assertions.xml +++ b/testcases/open_posix_testsuite/conformance/definitions/errno_h/assertions.xml @@ -88,6 +88,8 @@ [ETXTBSY] [EWOULDBLOCK] [EXDEV] + NOTE: The constants, [EBADMSG], [ENODATA], [ENOSR], [ENOSTR] are + optional as per the XSR specification. </assertion> <assertion id="4" tag="ref:BD:{headers:error.h:DESCRIPTION}"> errno.h shall give positive values for the following symbolic constants @@ -170,5 +172,7 @@ [ETXTBSY] [EWOULDBLOCK] [EXDEV] + NOTE: The constants, [EBADMSG], [ENODATA], [ENOSR], [ENOSTR] are + optional as per the XSR specification. </assertion> </assertions> diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/2-2-buildonly.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/2-2-buildonly.c index 0dd5ff8..1434be8 100644 --- a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/2-2-buildonly.c +++ b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/2-2-buildonly.c @@ -5,68 +5,45 @@ * 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. - - Test the following symbols are defined by pthread.h - */ + * + * Test the following symbols are defined by pthread.h + * + * This is done with functions, not #ifdefs because the spec doesn't state + * that they have to be #define's, and instead can be values in an enum, like + * on FreeBSD. + */ #include <pthread.h> -/* - * XXX (garrcoop): the following #ifndef checks are invalid on many platforms; POSIX - * doesn't state whether or not these these can or cannot be either global variables - * or indices in enums (FreeBSD does the latter with - * PTHREAD_MUTEX_{ERRORCHECK,NORMAL.RECURSIVE} - * - * These tests need to be sorted out into proper functional tests. - */ +#define TEST_MACRO(CONSTANT) \ + void test_ ## CONSTANT(void) { int dummy = #CONSTANT; } /* BAR */ -#ifndef PTHREAD_BARRIER_SERIAL_THREAD -#error PTHREAD_BARRIER_SERIAL_THREAD not defined -#endif +TEST_MACRO(PTHREAD_BARRIER_SERIAL_THREAD) /* XSI */ -#ifndef PTHREAD_MUTEX_DEFAULT -#error PTHREAD_MUTEX_DEFAULT not defined -#endif +TEST_MACRO(PTHREAD_MUTEX_DEFAULT) /* XSI */ -#ifndef PTHREAD_MUTEX_ERRORCHECK -#error PTHREAD_MUTEX_ERRORCHECK not defined -#endif +TEST_MACRO(PTHREAD_MUTEX_ERRORCHECK) /* XSI */ -#ifndef PTHREAD_MUTEX_NORMAL -#error PTHREAD_MUTEX_NORMAL not defined -#endif +TEST_MACRO(PTHREAD_MUTEX_NORMAL) /* XSI */ -#ifndef PTHREAD_MUTEX_RECURSIVE -#error PTHREAD_MUTEX_RECURSIVE not defined -#endif +TEST_MACRO(PTHREAD_MUTEX_RECURSIVE) /* TPP|TPI */ -#ifndef PTHREAD_PRIO_INHERIT -#error PTHREAD_PRIO_INHERIT not defined -#endif +TEST_MACRO(PTHREAD_PRIO_INHERIT) /* TPP|TPI */ -#ifndef PTHREAD_PRIO_NONE -#error PTHREAD_PRIO_NONE not defined -#endif +TEST_MACRO(PTHREAD_PRIO_NONE) /* TPP|TPI */ -#ifndef PTHREAD_PRIO_PROTECT -#error PTHREAD_PRIO_PROTECT not defined -#endif +TEST_MACRO(PTHREAD_PRIO_PROTECT) /* TPS */ -#ifndef PTHREAD_SCOPE_PROCESS -#error PTHREAD_SCOPE_PROCESS not defined -#endif +TEST_MACRO(PTHREAD_SCOPE_PROCESS) /* TPS */ -#ifndef PTHREAD_SCOPE_SYSTEM -#error PTHREAD_SCOPE_SYSTEM not defined -#endif - +TEST_MACRO(PTHREAD_SCOPE_SYSTEM) diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/2-1.c index 32e6dce..5088d84 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/2-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/2-1.c @@ -23,7 +23,9 @@ #define BUF_SIZE 1024 -int main() +#if defined(_POSIX_ASYNCHRONOUS_IO) && 200112L <= _POSIX_ASYNCHRONOUS_IO +int +main (void) { char tmpfname[256]; char buf[BUF_SIZE]; @@ -31,9 +33,7 @@ int main() struct aiocb aiocb_write; struct aiocb aiocb_fsync; -#if _POSIX_ASYNCHRONOUS_IO != 200112L exit(PTS_UNSUPPORTED); -#endif snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_fsync_2_1_%d", getpid()); @@ -76,3 +76,12 @@ int main() return PTS_UNTESTED; } +#else +int +main (void) +{ + printf(TNAME " required _POSIX_ASYNCHRONOUS_IO support isn't " + "available\n"); + exit(PTS_UNSUPPORTED); +} +#endif diff --git a/testcases/open_posix_testsuite/stress/threads/fork/s-c1.c b/testcases/open_posix_testsuite/stress/threads/fork/s-c1.c index ba257fd..d4377c9 100644 --- a/testcases/open_posix_testsuite/stress/threads/fork/s-c1.c +++ b/testcases/open_posix_testsuite/stress/threads/fork/s-c1.c @@ -50,7 +50,6 @@ #include <time.h> #include <semaphore.h> #include <fcntl.h> -//#include <assert.h> #include <math.h> /********************************************************************************************/ hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-05 20:19:43
|
The branch, pu, has been updated via 0894865a51d30399e62a20349061112deaa4b4f6 (commit) from 446cd01c811977e2866006259423f7c7fff0d863 (commit) - Log ----------------------------------------------------------------- commit 0894865a51d30399e62a20349061112deaa4b4f6 Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 13:19:24 2010 -0700 Mute grep output checking for Linux. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: .../scripts/generate-makefiles.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh index 16ae0f7..6127a2d 100755 --- a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh +++ b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh @@ -207,7 +207,7 @@ generate_makefiles() { DEFAULT_PREFIX= -if uname -a | grep -i linux +if uname -a | grep -iq linux then DEFAULT_PREFIX=/opt else hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-05 20:17:52
|
The branch, pu, has been updated via 446cd01c811977e2866006259423f7c7fff0d863 (commit) from 8d295e3c1f7e48ec1793ea6bc59ccf07d39bd55d (commit) - Log ----------------------------------------------------------------- commit 446cd01c811977e2866006259423f7c7fff0d863 Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 13:17:27 2010 -0700 Mute noise. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: .../scripts/generate-makefiles.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh index 35e69d0..16ae0f7 100755 --- a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh +++ b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh @@ -152,7 +152,7 @@ EOF cat >> "$makefile.3" <<EOF $prereq: \$(srcdir)/$c_file - if $COMPILE_STR >logfile.\$\$\$\$ 2>&1; then \\ + @if $COMPILE_STR >logfile.\$\$\$\$ 2>&1; then \\ echo "$prereq_dir/$test_name compile PASSED"; \\ echo "$prereq_dir/$test_name compile PASSED" >> \$(LOGFILE); \\ else \\ hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-05 20:13:53
|
The branch, pu, has been updated via 8d295e3c1f7e48ec1793ea6bc59ccf07d39bd55d (commit) via d8140e2c68a3eb77db15e74f6621af6441e19527 (commit) via 8b376ab38ab090763bf0552580374b864e1afea6 (commit) via 393822aa72d8652550d8c88c17240ed19b86593c (commit) from 1510cbb78e7eb882d885b5253fbfd92b6fd38ac0 (commit) - Log ----------------------------------------------------------------- commit 8d295e3c1f7e48ec1793ea6bc59ccf07d39bd55d Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 13:11:22 2010 -0700 Make Makefile generation static again; add needed includes. Dynamic Makefile generation turns into a royal mess -- how does one expand variables, evaluate expressions, etc? Just make things more simplified again by using static definitions in the Makefiles, at the cost of it being more of a PITA to handle. Signed-off-by: Garrett Cooper <yan...@gm...> commit d8140e2c68a3eb77db15e74f6621af6441e19527 Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 12:51:21 2010 -0700 Make Makefile gen. depend on the global var defs. Things are going back to being static for simplicity. Signed-off-by: Garrett Cooper <yan...@gm...> commit 8b376ab38ab090763bf0552580374b864e1afea6 Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 12:50:54 2010 -0700 Commit dummy files. Signed-off-by: Garrett Cooper <yan...@gm...> commit 393822aa72d8652550d8c88c17240ed19b86593c Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 10:42:30 2010 -0700 Make the _POSIX_SPORADIC_SERVER checks uniform. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: .../errorLog => open_posix_testsuite/LDFLAGS} | 0 .../errorLog => open_posix_testsuite/LDLIBS} | 0 testcases/open_posix_testsuite/Makefile | 6 ++- .../conformance/interfaces/sched_setparam/25-2.c | 9 ++- .../conformance/interfaces/sched_setparam/25-3.c | 5 +- .../conformance/interfaces/sched_setparam/25-4.c | 9 +++ .../functional/threads/pi_test/CFLAGS | 2 +- .../functional/threads/robust_test/CFLAGS | 1 + .../threads/robust_test}/LDLIBS | 0 .../scripts/generate-makefiles.sh | 52 ++++++++++++++----- 10 files changed, 63 insertions(+), 21 deletions(-) copy testcases/{ballista/ballista/compile/errorLog => open_posix_testsuite/LDFLAGS} (100%) copy testcases/{ballista/ballista/compile/errorLog => open_posix_testsuite/LDLIBS} (100%) create mode 100644 testcases/open_posix_testsuite/functional/threads/robust_test/CFLAGS copy testcases/open_posix_testsuite/{conformance/interfaces/getpid => functional/threads/robust_test}/LDLIBS (100%) diff --git a/testcases/ballista/ballista/compile/errorLog b/testcases/open_posix_testsuite/LDFLAGS similarity index 100% copy from testcases/ballista/ballista/compile/errorLog copy to testcases/open_posix_testsuite/LDFLAGS diff --git a/testcases/ballista/ballista/compile/errorLog b/testcases/open_posix_testsuite/LDLIBS similarity index 100% copy from testcases/ballista/ballista/compile/errorLog copy to testcases/open_posix_testsuite/LDLIBS diff --git a/testcases/open_posix_testsuite/Makefile b/testcases/open_posix_testsuite/Makefile index 50f1c5c..5661d6a 100644 --- a/testcases/open_posix_testsuite/Makefile +++ b/testcases/open_posix_testsuite/Makefile @@ -51,7 +51,11 @@ generate-makefiles: distclean-makefiles @export top_srcdir=$(top_srcdir); \ $(top_srcdir)/scripts/generate-makefiles.sh -$(CRITICAL_MAKEFILES): $(top_srcdir)/scripts/generate-makefiles.sh +$(CRITICAL_MAKEFILES): \ + $(top_srcdir)/scripts/generate-makefiles.sh \ + $(top_srcdir)/CFLAGS \ + $(top_srcdir)/LDFLAGS \ + $(top_srcdir)/LDLIBS $(MAKE) generate-makefiles tools: diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/25-2.c b/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/25-2.c index 7adfd28..1ba6fce 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/25-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/25-2.c @@ -74,11 +74,14 @@ int main(){ } } -#else -int main() +#elif _POSIX_SPORADIC_SERVER == -1 +int +main (void) { - printf("Does not support SS (SPORADIC SERVER)\n"); + printf("_POSIX_SPORADIC_SERVER support not available\n"); return PTS_UNSUPPORTED; } +#else +#error "_POSIX_SPORADIC_SERVER support not defined" #endif diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/25-3.c b/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/25-3.c index 4415c03..fd4c6ca 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/25-3.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/25-3.c @@ -58,9 +58,10 @@ int main(){ #elif _POSIX_SPORADIC_SERVER == -1 int -main(void) { +main (void) +{ printf("_POSIX_SPORADIC_SERVER support not available\n"); - return PTS_UNRESOLVED; + return PTS_UNSUPPORTED; } #else diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/25-4.c b/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/25-4.c index a0d626a..c97bdd7 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/25-4.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/25-4.c @@ -73,4 +73,13 @@ int main(){ } +#elif _POSIX_SPORADIC_SERVER == -1 +int +main (void) +{ + printf("_POSIX_SPORADIC_SERVER support not available\n"); + return PTS_UNSUPPORTED; +} +#else +#error "_POSIX_SPORADIC_SERVER not defined properly" #endif diff --git a/testcases/open_posix_testsuite/functional/threads/pi_test/CFLAGS b/testcases/open_posix_testsuite/functional/threads/pi_test/CFLAGS index c837c79..a1e2b5c 100644 --- a/testcases/open_posix_testsuite/functional/threads/pi_test/CFLAGS +++ b/testcases/open_posix_testsuite/functional/threads/pi_test/CFLAGS @@ -1 +1 @@ --I../includes +-I"$(srcdir)/../include" diff --git a/testcases/open_posix_testsuite/functional/threads/robust_test/CFLAGS b/testcases/open_posix_testsuite/functional/threads/robust_test/CFLAGS new file mode 100644 index 0000000..a1e2b5c --- /dev/null +++ b/testcases/open_posix_testsuite/functional/threads/robust_test/CFLAGS @@ -0,0 +1 @@ +-I"$(srcdir)/../include" diff --git a/testcases/open_posix_testsuite/conformance/interfaces/getpid/LDLIBS b/testcases/open_posix_testsuite/functional/threads/robust_test/LDLIBS similarity index 100% copy from testcases/open_posix_testsuite/conformance/interfaces/getpid/LDLIBS copy to testcases/open_posix_testsuite/functional/threads/robust_test/LDLIBS diff --git a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh index 6d79d58..35e69d0 100755 --- a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh +++ b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh @@ -16,9 +16,6 @@ # Garrett Cooper, June 2010 # -AUTHORDATE=$(grep "Garrett Cooper" "$0" | head -n 1 | sed 's,# *,,') -export PATH="$PATH:$(dirname "$0")" - generate_locate_test_makefile() { local maketype=$1; shift @@ -59,16 +56,16 @@ generate_makefile() { cat > "$makefile.1" <<EOF # -# Automatically generated by $(basename "$0") -- DO NOT EDIT. +# Automatically generated by `basename "$0"` -- DO NOT EDIT. # -# Restrictions for $(basename "$0") apply to this file. See COPYING for more +# Restrictions for `basename "$0"` apply to this file. See COPYING for more # details. # # $AUTHORDATE # # Path variables. -top_srcdir?= $(echo "$prereq_dir" | sed -E -e 's,[^/]+,\.\.,g') +top_srcdir?= `echo "$prereq_dir" | sed -E -e 's,[^/]+,\.\.,g'` subdir= $prereq_cache_dir srcdir= \$(top_srcdir)/\$(subdir) @@ -82,17 +79,26 @@ CFLAGS+= -I\$(top_srcdir)/include # XXX: for testfrmw.c -- needs to be moved into a library. CFLAGS+= -I\$(srcdir) -# Include top-level make definitions and submake make definitions. -CFLAGS+= \`cat 2>/dev/null \$(top_srcdir)/CFLAGS\` -CFLAGS+= \`cat 2>/dev/null \$(srcdir)/CFLAGS\` +EOF -LDFLAGS+= \`cat 2>/dev/null \$(top_srcdir)/LDFLAGS\` -LDFLAGS+= \`cat 2>/dev/null \$(srcdir)/LDFLAGS\` + if [ -f "$GLOBAL_BOILERPLATE" ]; then + cat >> "$makefile.1" <<EOF +# Top-level make definitions +`cat $GLOBAL_BOILERPLATE` +EOF + fi -LDLIBS+= \`cat 2>/dev/null \$(top_srcdir)/LDLIBS\` -LDLIBS+= \`cat 2>/dev/null \$(srcdir)/LDLIBS\` + cat >> "$makefile.1" <<EOF +# Submake make definitions. +EOF + for var in CFLAGS LDFLAGS LDLIBS; do + if [ -f "${TOP_SRCDIR}/$var" ]; then + cat >> "$makefile.1" <<EOF +${var}+= `cat "${prereq_cache_dir}/${var}" 2>/dev/null` EOF + fi + done fi @@ -146,7 +152,7 @@ EOF cat >> "$makefile.3" <<EOF $prereq: \$(srcdir)/$c_file - @if $COMPILE_STR >logfile.\$\$\$\$ 2>&1; then \\ + if $COMPILE_STR >logfile.\$\$\$\$ 2>&1; then \\ echo "$prereq_dir/$test_name compile PASSED"; \\ echo "$prereq_dir/$test_name compile PASSED" >> \$(LOGFILE); \\ else \\ @@ -208,13 +214,31 @@ else DEFAULT_PREFIX=/usr/local fi +export PATH="$PATH:`dirname "$0"`" + +AUTHORDATE=`grep "Garrett Cooper" "$0" | head -n 1 | sed 's,# *,,'` PREFIX=${PREFIX:=$DEFAULT_PREFIX/openposix_testsuite} EXEC_PREFIX="${PREFIX}/bin" +TOP_SRCDIR=${TOP_SRCDIR:=`dirname "$0"`/..} + +GLOBAL_BOILERPLATE="${TOP_SRCDIR}/.global_boilerplate" + +rm -f "$GLOBAL_BOILERPLATE" + +for var in CFLAGS LDFLAGS LDLIBS; do + if [ -f "$TOP_SRCDIR/$var" ]; then + cat >> "$GLOBAL_BOILERPLATE" <<EOF +$var+= `cat "$TOP_SRCDIR/$var"` +EOF + fi +done # For the generic cases. generate_locate_test_makefile buildonly "test" -c generate_locate_test_makefile runnable "run-test" +rm -f "$GLOBAL_BOILERPLATE" + find . -name Makefile.1 -exec dirname {} \; | while read dir; do if [ -f "$dir/Makefile.2" ]; then cat $dir/Makefile.1 $dir/Makefile.2 $dir/Makefile.3 > $dir/Makefile hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-05 17:27:02
|
The branch, pu, has been updated via 1510cbb78e7eb882d885b5253fbfd92b6fd38ac0 (commit) via 01680d51328b33cd26d71a689c0552ccca7e5015 (commit) via 8d78db8ede38c10e677ce5c227f194d378a099dc (commit) via 0b83e63a3164bf3119f85da0131b7a74c0833812 (commit) via 6da95a6582aa88341173994a2546d8695e450e9a (commit) via d98cc91cb29ede62323c94d70887d5c31c03d24b (commit) from ca761d624c016aa10385579b668774b65eea13de (commit) - Log ----------------------------------------------------------------- commit 1510cbb78e7eb882d885b5253fbfd92b6fd38ac0 Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 03:50:45 2010 -0700 Commit as many missing LDLIBS files as possible. Signed-off-by: Garrett Cooper <yan...@gm...> commit 01680d51328b33cd26d71a689c0552ccca7e5015 Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 03:32:11 2010 -0700 Remove _XOPEN_SOURCE. Signed-off-by: Garrett Cooper <yan...@gm...> commit 8d78db8ede38c10e677ce5c227f194d378a099dc Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 03:14:09 2010 -0700 Fix non-format based printf. Signed-off-by: Garrett Cooper <yan...@gm...> commit 0b83e63a3164bf3119f85da0131b7a74c0833812 Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 03:10:18 2010 -0700 Commit more missing LDLIBS files. More to come... Signed-off-by: Garrett Cooper <yan...@gm...> commit 6da95a6582aa88341173994a2546d8695e450e9a Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 02:45:19 2010 -0700 Commit another missing LDLIBS file. Signed-off-by: Garrett Cooper <yan...@gm...> commit d98cc91cb29ede62323c94d70887d5c31c03d24b Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 02:40:40 2010 -0700 Typo snuck in. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: .../{behavior/timers => definitions/aio_h}/LDLIBS | 0 .../timers => interfaces/aio_cancel}/LDLIBS | 0 .../clock_getcpuclockid}/LDLIBS | 0 .../timers => interfaces/clock_getres}/LDLIBS | 0 .../timers => interfaces/clock_gettime}/LDLIBS | 0 .../timers => interfaces/clock_nanosleep}/LDLIBS | 0 .../timers => interfaces/mlockall}/LDLIBS | 0 .../{behavior/timers => interfaces/mmap}/LDLIBS | 0 .../timers => interfaces/nanosleep}/LDLIBS | 0 .../pthread_barrierattr_getpshared/LDLIBS | 2 +- .../conformance/interfaces/pthread_cancel/LDLIBS | 2 +- .../interfaces/pthread_cond_broadcast/LDLIBS | 2 +- .../interfaces/pthread_cond_broadcast/testfrmw.c | 2 +- .../interfaces/pthread_cond_destroy/LDLIBS | 2 +- .../interfaces/pthread_cond_destroy/testfrmw.c | 2 +- .../interfaces/pthread_cond_init/LDLIBS | 2 +- .../interfaces/pthread_cond_signal/LDLIBS | 2 +- .../interfaces/pthread_cond_timedwait/LDLIBS | 2 +- .../interfaces/pthread_condattr_setclock/LDLIBS | 2 +- .../conformance/interfaces/pthread_create/LDLIBS | 2 +- .../interfaces/pthread_create/testfrmw.c | 2 +- .../conformance/interfaces/pthread_detach/LDLIBS | 2 +- .../conformance/interfaces/pthread_join/LDLIBS | 2 +- .../conformance/interfaces/pthread_join/testfrmw.c | 2 +- .../interfaces/pthread_mutex_timedlock/LDLIBS | 2 +- .../interfaces/pthread_rwlock_timedrdlock/LDLIBS | 2 +- .../interfaces/pthread_rwlock_timedwrlock/LDLIBS | 2 +- .../pthread_rwlockattr_getpshared/LDLIBS | 2 +- .../conformance/interfaces/pthread_spin_init/2-1.c | 1 - .../interfaces/pthread_spin_init/LDLIBS | 2 +- .../timers => interfaces/sem_close}/LDLIBS | 0 .../conformance/interfaces/sem_init/LDLIBS | 2 +- .../conformance/interfaces/sem_init/testfrmw.c | 2 +- .../timers => interfaces/sem_open}/LDLIBS | 0 .../timers => interfaces/sem_post}/LDLIBS | 0 .../timers => interfaces/sem_timedwait}/LDLIBS | 0 .../timers => interfaces/sem_wait}/LDLIBS | 0 .../timers => interfaces/shm_open}/LDLIBS | 0 .../timers => interfaces/shm_unlink}/LDLIBS | 0 .../functional/threads/condvar/LDLIBS | 2 +- .../functional/threads/pi_test/CFLAGS | 1 + .../functional/threads/schedule/LDLIBS | 2 +- .../scripts/generate-makefiles.sh | 2 +- 43 files changed, 26 insertions(+), 26 deletions(-) copy testcases/open_posix_testsuite/conformance/{behavior/timers => definitions/aio_h}/LDLIBS (100%) copy testcases/open_posix_testsuite/conformance/{behavior/timers => interfaces/aio_cancel}/LDLIBS (100%) copy testcases/open_posix_testsuite/conformance/{behavior/timers => interfaces/clock_getcpuclockid}/LDLIBS (100%) copy testcases/open_posix_testsuite/conformance/{behavior/timers => interfaces/clock_getres}/LDLIBS (100%) copy testcases/open_posix_testsuite/conformance/{behavior/timers => interfaces/clock_gettime}/LDLIBS (100%) copy testcases/open_posix_testsuite/conformance/{behavior/timers => interfaces/clock_nanosleep}/LDLIBS (100%) copy testcases/open_posix_testsuite/conformance/{behavior/timers => interfaces/mlockall}/LDLIBS (100%) copy testcases/open_posix_testsuite/conformance/{behavior/timers => interfaces/mmap}/LDLIBS (100%) copy testcases/open_posix_testsuite/conformance/{behavior/timers => interfaces/nanosleep}/LDLIBS (100%) copy testcases/open_posix_testsuite/conformance/{behavior/timers => interfaces/sem_close}/LDLIBS (100%) copy testcases/open_posix_testsuite/conformance/{behavior/timers => interfaces/sem_open}/LDLIBS (100%) copy testcases/open_posix_testsuite/conformance/{behavior/timers => interfaces/sem_post}/LDLIBS (100%) copy testcases/open_posix_testsuite/conformance/{behavior/timers => interfaces/sem_timedwait}/LDLIBS (100%) copy testcases/open_posix_testsuite/conformance/{behavior/timers => interfaces/sem_wait}/LDLIBS (100%) copy testcases/open_posix_testsuite/conformance/{behavior/timers => interfaces/shm_open}/LDLIBS (100%) copy testcases/open_posix_testsuite/conformance/{behavior/timers => interfaces/shm_unlink}/LDLIBS (100%) create mode 100644 testcases/open_posix_testsuite/functional/threads/pi_test/CFLAGS diff --git a/testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS b/testcases/open_posix_testsuite/conformance/definitions/aio_h/LDLIBS similarity index 100% copy from testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS copy to testcases/open_posix_testsuite/conformance/definitions/aio_h/LDLIBS diff --git a/testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/LDLIBS similarity index 100% copy from testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS copy to testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/LDLIBS diff --git a/testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/clock_getcpuclockid/LDLIBS similarity index 100% copy from testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS copy to testcases/open_posix_testsuite/conformance/interfaces/clock_getcpuclockid/LDLIBS diff --git a/testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/LDLIBS similarity index 100% copy from testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS copy to testcases/open_posix_testsuite/conformance/interfaces/clock_getres/LDLIBS diff --git a/testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/LDLIBS similarity index 100% copy from testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS copy to testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/LDLIBS diff --git a/testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/clock_nanosleep/LDLIBS similarity index 100% copy from testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS copy to testcases/open_posix_testsuite/conformance/interfaces/clock_nanosleep/LDLIBS diff --git a/testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/mlockall/LDLIBS similarity index 100% copy from testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS copy to testcases/open_posix_testsuite/conformance/interfaces/mlockall/LDLIBS diff --git a/testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/mmap/LDLIBS similarity index 100% copy from testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS copy to testcases/open_posix_testsuite/conformance/interfaces/mmap/LDLIBS diff --git a/testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/LDLIBS similarity index 100% copy from testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS copy to testcases/open_posix_testsuite/conformance/interfaces/nanosleep/LDLIBS diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_getpshared/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_getpshared/LDLIBS index 1d2c98f..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_getpshared/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_getpshared/LDLIBS @@ -1 +1 @@ --lpthread +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/LDLIBS index 1d2c98f..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/LDLIBS @@ -1 +1 @@ --lpthread +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/LDLIBS index 1d2c98f..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/LDLIBS @@ -1 +1 @@ --lpthread +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/testfrmw.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/testfrmw.c index 38adaa8..211e7d3 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/testfrmw.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/testfrmw.c @@ -54,7 +54,7 @@ void output( char * string, ... ) nw = time(NULL); now = localtime(&nw); if (now == NULL) - printf(ts); + printf("%s", ts); else printf("[%2.2d:%2.2d:%2.2d]", now->tm_hour, now->tm_min, now->tm_sec); va_start( ap, string); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/LDLIBS index 1d2c98f..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/LDLIBS @@ -1 +1 @@ --lpthread +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/testfrmw.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/testfrmw.c index 38adaa8..211e7d3 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/testfrmw.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/testfrmw.c @@ -54,7 +54,7 @@ void output( char * string, ... ) nw = time(NULL); now = localtime(&nw); if (now == NULL) - printf(ts); + printf("%s", ts); else printf("[%2.2d:%2.2d:%2.2d]", now->tm_hour, now->tm_min, now->tm_sec); va_start( ap, string); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_init/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_init/LDLIBS index 1d2c98f..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_init/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_init/LDLIBS @@ -1 +1 @@ --lpthread +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/LDLIBS index 1d2c98f..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/LDLIBS @@ -1 +1 @@ --lpthread +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/LDLIBS index 1d2c98f..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/LDLIBS @@ -1 +1 @@ --lpthread +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_setclock/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_setclock/LDLIBS index 1d2c98f..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_setclock/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_setclock/LDLIBS @@ -1 +1 @@ --lpthread +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/LDLIBS index 1d2c98f..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/LDLIBS @@ -1 +1 @@ --lpthread +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/testfrmw.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/testfrmw.c index 49ac749..4410afc 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/testfrmw.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/testfrmw.c @@ -56,7 +56,7 @@ void output( char * string, ... ) nw = time(NULL); now = localtime(&nw); if (now == NULL) - printf(ts); + printf("%s", ts); else printf("[%2.2d:%2.2d:%2.2d]", now->tm_hour, now->tm_min, now->tm_sec); va_start( ap, string); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/LDLIBS index 1d2c98f..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/LDLIBS @@ -1 +1 @@ --lpthread +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/LDLIBS index 1d2c98f..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/LDLIBS @@ -1 +1 @@ --lpthread +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/testfrmw.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/testfrmw.c index 38adaa8..211e7d3 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/testfrmw.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/testfrmw.c @@ -54,7 +54,7 @@ void output( char * string, ... ) nw = time(NULL); now = localtime(&nw); if (now == NULL) - printf(ts); + printf("%s", ts); else printf("[%2.2d:%2.2d:%2.2d]", now->tm_hour, now->tm_min, now->tm_sec); va_start( ap, string); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/LDLIBS index 1d2c98f..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/LDLIBS @@ -1 +1 @@ --lpthread +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/LDLIBS index 1d2c98f..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/LDLIBS @@ -1 +1 @@ --lpthread +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/LDLIBS index 1d2c98f..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/LDLIBS @@ -1 +1 @@ --lpthread +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_getpshared/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_getpshared/LDLIBS index 1d2c98f..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_getpshared/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_getpshared/LDLIBS @@ -1 +1 @@ --lpthread +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_init/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_init/2-1.c index 7db06c2..d3be36c 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_init/2-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_init/2-1.c @@ -23,7 +23,6 @@ */ -#define _XOPEN_SOURCE 600 #include <sys/mman.h> #include <sys/stat.h> #include <sys/wait.h> diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_init/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_init/LDLIBS index 1d2c98f..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_init/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_init/LDLIBS @@ -1 +1 @@ --lpthread +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/sem_close/LDLIBS similarity index 100% copy from testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS copy to testcases/open_posix_testsuite/conformance/interfaces/sem_close/LDLIBS diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sem_init/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/sem_init/LDLIBS index 1d2c98f..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sem_init/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/sem_init/LDLIBS @@ -1 +1 @@ --lpthread +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sem_init/testfrmw.c b/testcases/open_posix_testsuite/conformance/interfaces/sem_init/testfrmw.c index 729e2d6..0d82630 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sem_init/testfrmw.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sem_init/testfrmw.c @@ -54,7 +54,7 @@ void output( char * string, ... ) nw = time(NULL); now = localtime(&nw); if (now == NULL) - printf(ts); + printf("%s", ts); else printf("[%2.2d:%2.2d:%2.2d]", now->tm_hour, now->tm_min, now->tm_sec); va_start( ap, string); diff --git a/testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/sem_open/LDLIBS similarity index 100% copy from testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS copy to testcases/open_posix_testsuite/conformance/interfaces/sem_open/LDLIBS diff --git a/testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/sem_post/LDLIBS similarity index 100% copy from testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS copy to testcases/open_posix_testsuite/conformance/interfaces/sem_post/LDLIBS diff --git a/testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/LDLIBS similarity index 100% copy from testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS copy to testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/LDLIBS diff --git a/testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/sem_wait/LDLIBS similarity index 100% copy from testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS copy to testcases/open_posix_testsuite/conformance/interfaces/sem_wait/LDLIBS diff --git a/testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/shm_open/LDLIBS similarity index 100% copy from testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS copy to testcases/open_posix_testsuite/conformance/interfaces/shm_open/LDLIBS diff --git a/testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/LDLIBS similarity index 100% copy from testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS copy to testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/LDLIBS diff --git a/testcases/open_posix_testsuite/functional/threads/condvar/LDLIBS b/testcases/open_posix_testsuite/functional/threads/condvar/LDLIBS index 1d2c98f..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/functional/threads/condvar/LDLIBS +++ b/testcases/open_posix_testsuite/functional/threads/condvar/LDLIBS @@ -1 +1 @@ --lpthread +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/functional/threads/pi_test/CFLAGS b/testcases/open_posix_testsuite/functional/threads/pi_test/CFLAGS new file mode 100644 index 0000000..c837c79 --- /dev/null +++ b/testcases/open_posix_testsuite/functional/threads/pi_test/CFLAGS @@ -0,0 +1 @@ +-I../includes diff --git a/testcases/open_posix_testsuite/functional/threads/schedule/LDLIBS b/testcases/open_posix_testsuite/functional/threads/schedule/LDLIBS index 1d2c98f..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/functional/threads/schedule/LDLIBS +++ b/testcases/open_posix_testsuite/functional/threads/schedule/LDLIBS @@ -1 +1 @@ --lpthread +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh index e680805..6d79d58 100755 --- a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh +++ b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh @@ -31,7 +31,7 @@ generate_locate_test_makefile() { rm -f make-gen.$maketype -u +} generate_makefile() { hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-05 08:16:18
|
The branch, pu, has been updated via 617f4f5c35549bf644d1ad727b129234bc714d8e (commit) from 885f781a9ae9fa0273374312b0e172a2137d1d47 (commit) - Log ----------------------------------------------------------------- commit 617f4f5c35549bf644d1ad727b129234bc714d8e Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 01:14:03 2010 -0700 Tone down noise. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: .../conformance/behavior/Makefile | 2 +- .../conformance/definitions/Makefile | 2 +- .../conformance/interfaces/Makefile | 2 +- testcases/open_posix_testsuite/functional/Makefile | 2 +- testcases/open_posix_testsuite/stress/Makefile | 2 +- testcases/open_posix_testsuite/tools/Makefile | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/testcases/open_posix_testsuite/conformance/behavior/Makefile b/testcases/open_posix_testsuite/conformance/behavior/Makefile index 04e78cd..376afcd 100644 --- a/testcases/open_posix_testsuite/conformance/behavior/Makefile +++ b/testcases/open_posix_testsuite/conformance/behavior/Makefile @@ -10,4 +10,4 @@ all clean install test: done distclean-makefiles: - find */ -name 'Makefile*' | xargs rm -f + @find */ -name 'Makefile*' | xargs rm -f diff --git a/testcases/open_posix_testsuite/conformance/definitions/Makefile b/testcases/open_posix_testsuite/conformance/definitions/Makefile index 04e78cd..376afcd 100644 --- a/testcases/open_posix_testsuite/conformance/definitions/Makefile +++ b/testcases/open_posix_testsuite/conformance/definitions/Makefile @@ -10,4 +10,4 @@ all clean install test: done distclean-makefiles: - find */ -name 'Makefile*' | xargs rm -f + @find */ -name 'Makefile*' | xargs rm -f diff --git a/testcases/open_posix_testsuite/conformance/interfaces/Makefile b/testcases/open_posix_testsuite/conformance/interfaces/Makefile index 04e78cd..376afcd 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/Makefile +++ b/testcases/open_posix_testsuite/conformance/interfaces/Makefile @@ -10,4 +10,4 @@ all clean install test: done distclean-makefiles: - find */ -name 'Makefile*' | xargs rm -f + @find */ -name 'Makefile*' | xargs rm -f diff --git a/testcases/open_posix_testsuite/functional/Makefile b/testcases/open_posix_testsuite/functional/Makefile index 9de651a..9cbf16a 100644 --- a/testcases/open_posix_testsuite/functional/Makefile +++ b/testcases/open_posix_testsuite/functional/Makefile @@ -10,4 +10,4 @@ all clean install test: done distclean-makefiles: - find */ -name 'Makefile*' | grep -v threads/Makefile | xargs rm -f + @find */ -name 'Makefile*' | grep -v threads/Makefile | xargs rm -f diff --git a/testcases/open_posix_testsuite/stress/Makefile b/testcases/open_posix_testsuite/stress/Makefile index 04e78cd..376afcd 100644 --- a/testcases/open_posix_testsuite/stress/Makefile +++ b/testcases/open_posix_testsuite/stress/Makefile @@ -10,4 +10,4 @@ all clean install test: done distclean-makefiles: - find */ -name 'Makefile*' | xargs rm -f + @find */ -name 'Makefile*' | xargs rm -f diff --git a/testcases/open_posix_testsuite/tools/Makefile b/testcases/open_posix_testsuite/tools/Makefile index 127bfec..0550534 100644 --- a/testcases/open_posix_testsuite/tools/Makefile +++ b/testcases/open_posix_testsuite/tools/Makefile @@ -7,7 +7,7 @@ srcdir?= . clean: - rm -f t0 + @rm -f t0 t0: $(srcdir)/t0.c $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS) hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-05 06:58:50
|
The branch, pu, has been updated via 885f781a9ae9fa0273374312b0e172a2137d1d47 (commit) from da5651247bdf23c20a971b48614849ac942d7f20 (commit) - Log ----------------------------------------------------------------- commit 885f781a9ae9fa0273374312b0e172a2137d1d47 Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 23:56:28 2010 -0700 Weird... scenarii.c change didn't take effect. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: testcases/open_posix_testsuite/scripts/locate-test | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/testcases/open_posix_testsuite/scripts/locate-test b/testcases/open_posix_testsuite/scripts/locate-test index ba3af22..02adc56 100755 --- a/testcases/open_posix_testsuite/scripts/locate-test +++ b/testcases/open_posix_testsuite/scripts/locate-test @@ -90,6 +90,9 @@ runnable) # XXX (garrcoop): remove all testfrmw files because there're actually # used as includes in the make process; they really should be # functions in a library. - find "$WHERE" -type f -name '*.c' -o -name '[0-9]*-[0-9]*.sh' | grep -v buildonly | grep -v '^./tools' | grep -v testfrmw + # XXX (garrcoop): determine whether or not the *scenarii.c files can be + # moved out into a local library of some kind, or the compile can be + # improved at least... + find "$WHERE" -type f -name '*.c' -o -name '[0-9]*-[0-9]*.sh' | grep -v buildonly | grep -v '^./tools' | grep -v testfrmw | grep -v '_scenarii' ;; esac hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-05 06:56:33
|
The branch, pu, has been updated via da5651247bdf23c20a971b48614849ac942d7f20 (commit) via d309fa0607bf70af04be750e57e9346c6790fbc3 (commit) via 8f1b81c4da104171651fa9fe59c66c398b2fbfcd (commit) from 094d369f06607e37d76d697844f75272755cf969 (commit) - Log ----------------------------------------------------------------- commit da5651247bdf23c20a971b48614849ac942d7f20 Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 23:53:47 2010 -0700 Omit the *_scenarii.c files b/c they're #include'd Signed-off-by: Garrett Cooper <yan...@gm...> commit d309fa0607bf70af04be750e57e9346c6790fbc3 Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 23:53:33 2010 -0700 Mute noise again. Signed-off-by: Garrett Cooper <yan...@gm...> commit 8f1b81c4da104171651fa9fe59c66c398b2fbfcd Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 23:52:20 2010 -0700 Only produce Makefile.3 if it does not exist. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: testcases/open_posix_testsuite/Makefile | 8 ++++---- .../interfaces/{pthread_atfork => getpid}/LDLIBS | 0 .../scripts/generate-makefiles.sh | 6 +++++- 3 files changed, 9 insertions(+), 5 deletions(-) copy testcases/open_posix_testsuite/conformance/interfaces/{pthread_atfork => getpid}/LDLIBS (100%) diff --git a/testcases/open_posix_testsuite/Makefile b/testcases/open_posix_testsuite/Makefile index 55f5f1f..0816099 100644 --- a/testcases/open_posix_testsuite/Makefile +++ b/testcases/open_posix_testsuite/Makefile @@ -1,4 +1,4 @@ -# Copyright (c) 2002, Intel Corporation. All rights reserved. +# Copyright (c) 2003, 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 @@ -65,7 +65,7 @@ tools: # Test build and execution targets. conformance-all: $(CRITICAL_CONFORMANCE_MAKEFILE) @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ - $(BUILD_MAKE) -C conformance all + @$(BUILD_MAKE) -C conformance all conformance-test: @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ @@ -73,7 +73,7 @@ conformance-test: functional-all: $(CRITICAL_FUNCTIONAL_MAKEFILE) @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ - $(BUILD_MAKE) -C functional all + @$(BUILD_MAKE) -C functional all functional-test: @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ @@ -81,7 +81,7 @@ functional-test: stress-all: $(CRITICAL_STRESS_MAKEFILE) @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ - $(BUILD_MAKE) -C stress all + @$(BUILD_MAKE) -C stress all stress-test: @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/getpid/LDLIBS similarity index 100% copy from testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/LDLIBS copy to testcases/open_posix_testsuite/conformance/interfaces/getpid/LDLIBS diff --git a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh index 85cf00d..2e9ca76 100755 --- a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh +++ b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh @@ -103,7 +103,9 @@ MAKE_TARGETS+= ${make_target_prereq_cache} EOF - cat > "$makefile.3" <<EOF + if [ ! -f "$makefile.3" ]; then + + cat > "$makefile.3" <<EOF all: \$(MAKE_TARGETS) clean: @@ -122,6 +124,8 @@ test: all EOF + fi + # Produce _awesome_ target rules for everything that needs it. for prereq in ${make_target_prereq_cache}; do hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-05 06:35:40
|
The branch, pu, has been updated via 094d369f06607e37d76d697844f75272755cf969 (commit) via 0df8df0011e170d2644b4cdfef6216030dcb8c50 (commit) via 65d6a03b5ce17b934d1fd5a72e8c7519d637965b (commit) from e8d8303f301eb8fd6477346373b8ffe21aed4d09 (commit) - Log ----------------------------------------------------------------- commit 094d369f06607e37d76d697844f75272755cf969 Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 23:32:00 2010 -0700 Simplify include files by cat'ing them. grep screws up the details and prints out one whitespace separated token per line (probably because I wasn't quoting the string), but commenting out # can be confusing. Signed-off-by: Garrett Cooper <yan...@gm...> commit 0df8df0011e170d2644b4cdfef6216030dcb8c50 Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 23:28:16 2010 -0700 Disable -std=g99 detection. The gcc toolchain has been c99 compliant (for the most part), for quite a few years. People should know what their compilers are capable of, s.t. adding more logic to detect this functionality (incorrectly) isn't really helpful. Signed-off-by: Garrett Cooper <yan...@gm...> commit 65d6a03b5ce17b934d1fd5a72e8c7519d637965b Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 22:57:17 2010 -0700 Fix inverted logic (doh!). Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: testcases/open_posix_testsuite/CFLAGS | 2 +- .../scripts/generate-makefiles.sh | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/testcases/open_posix_testsuite/CFLAGS b/testcases/open_posix_testsuite/CFLAGS index 55563b3..a27d9aa 100644 --- a/testcases/open_posix_testsuite/CFLAGS +++ b/testcases/open_posix_testsuite/CFLAGS @@ -1 +1 @@ --std=c99 `$(CC) -std=gnu99 -S -o /dev/null -xc /dev/null >/dev/null 2>&1 && echo "-std=gnu99"` -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 +-std=c99 -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 diff --git a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh index 710e774..85cf00d 100755 --- a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh +++ b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh @@ -55,7 +55,7 @@ generate_makefile() { fi done - if [ -f "$makefile.1" ]; then + if [ ! -f "$makefile.1" ]; then cat > "$makefile.1" <<EOF # @@ -83,14 +83,14 @@ CFLAGS+= -I\$(top_srcdir)/include CFLAGS+= -I\$(srcdir) # Include top-level make definitions and submake make definitions. -CFLAGS+= \`grep -v '^#' 2>/dev/null \$(top_srcdir)/CFLAGS\` -CFLAGS+= \`grep -v '^#' 2>/dev/null \$(srcdir)/CFLAGS\` +CFLAGS+= \`cat 2>/dev/null \$(top_srcdir)/CFLAGS\` +CFLAGS+= \`cat 2>/dev/null \$(srcdir)/CFLAGS\` -LDFLAGS+= \`grep -v '^#' 2>/dev/null \$(top_srcdir)/LDFLAGS\` -LDFLAGS+= \`grep -v '^#' 2>/dev/null \$(srcdir)/LDFLAGS\` +LDFLAGS+= \`cat 2>/dev/null \$(top_srcdir)/LDFLAGS\` +LDFLAGS+= \`cat 2>/dev/null \$(srcdir)/LDFLAGS\` -LDLIBS+= \`grep -v '^#' 2>/dev/null \$(top_srcdir)/LDLIBS\` -LDLIBS+= \`grep -v '^#' 2>/dev/null \$(srcdir)/LDLIBS\` +LDLIBS+= \`cat 2>/dev/null \$(top_srcdir)/LDLIBS\` +LDLIBS+= \`cat 2>/dev/null \$(srcdir)/LDLIBS\` EOF hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-05 05:50:27
|
The branch, pu, has been updated via e8d8303f301eb8fd6477346373b8ffe21aed4d09 (commit) via b82db5f13e89331813fd93023adcc48efe27c9bf (commit) via 377d976666335e15fed7cac8d7f48b8a762e25fa (commit) via 20d72c7d3cd67461380cbfb484471c3b39262ebe (commit) via a0f8e08d23a5c34b8045c241f8d258fe67e6729b (commit) via d5ff323a3bc912f877ab31a78046c9388e4235f1 (commit) via 1fb9097d3adfa0bed182344464a773bc53c6061c (commit) via f9508213fbc076538bc650bdb354905674b20ceb (commit) via 5059f459789238c1378da036c16f7eb6dcbc5318 (commit) via 468d4b45c092c8a4d9c46cf45a78f6a772620cb1 (commit) via 17dc34f217c5617baae6abc8d4cbef0ec9caadc2 (commit) from 9b6bb8b07b89314c0d2cc373e668a10525f018e0 (commit) - Log ----------------------------------------------------------------- commit e8d8303f301eb8fd6477346373b8ffe21aed4d09 Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 22:42:11 2010 -0700 Improve logic breakdown and flow. Fix bugs. The overall description for generate_makefile didn't match the behavior; isolate the Makefile producing portion, so the code could be better tested by itself, and the flow becomes more intuitive. Oh yeah, and fix $AUTHORDATE to print out less crap, and don't print out the Makefile if Makefile.2 (the targets section) does not exist. Also, punt out the last cached data in generate_makefiles, as we were missing the last Makefile (and thus... it was regenerating the Makefiles multiple times unnecessarily at the top-level Makefile, with GNU make in particular, compared to BSD make -- which was bizarre). Signed-off-by: Garrett Cooper <yan...@gm...> commit b82db5f13e89331813fd93023adcc48efe27c9bf Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 22:40:15 2010 -0700 Use BUILD_MAKE where needed, and optimize. Also, push down distcleans logic into leaf Makefiles for correctness and unmute targets for the time being in order to properly diagnose what's going on, for the time being. Signed-off-by: Garrett Cooper <yan...@gm...> commit 377d976666335e15fed7cac8d7f48b8a762e25fa Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 22:35:09 2010 -0700 Update scripts for new app name. Signed-off-by: Garrett Cooper <yan...@gm...> commit 20d72c7d3cd67461380cbfb484471c3b39262ebe Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 22:33:42 2010 -0700 Push down distclean-makefiles into conformance. Also add some local Makefiles missing from the repo. Signed-off-by: Garrett Cooper <yan...@gm...> commit a0f8e08d23a5c34b8045c241f8d258fe67e6729b Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 22:29:53 2010 -0700 Push distclean-makefiles down into stress Makefile. Signed-off-by: Garrett Cooper <yan...@gm...> commit d5ff323a3bc912f877ab31a78046c9388e4235f1 Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 22:27:04 2010 -0700 1999 called and want you to update your toolchain. 'k, thanks! Signed-off-by: Garrett Cooper <yan...@gm...> commit 1fb9097d3adfa0bed182344464a773bc53c6061c Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 22:25:38 2010 -0700 Push distclean-makefile down into this file. Signed-off-by: Garrett Cooper <yan...@gm...> commit f9508213fbc076538bc650bdb354905674b20ceb Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 21:11:24 2010 -0700 Properly categorize a src file. Signed-off-by: Garrett Cooper <yan...@gm...> commit 5059f459789238c1378da036c16f7eb6dcbc5318 Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 20:06:34 2010 -0700 Sacrifice modularity for simplicity. Signed-off-by: Garrett Cooper <yan...@gm...> commit 468d4b45c092c8a4d9c46cf45a78f6a772620cb1 Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 17:15:33 2010 -0700 Add more LDLIBS files. Signed-off-by: Garrett Cooper <yan...@gm...> commit 17dc34f217c5617baae6abc8d4cbef0ec9caadc2 Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 17:09:42 2010 -0700 Correct _POSIX_SPORADIC_SERVER conformance tests. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: testcases/open_posix_testsuite/CFLAGS | 4 +- testcases/open_posix_testsuite/Makefile | 35 ++--- .../open_posix_testsuite/conformance/Makefile | 2 +- .../{stress => conformance/behavior}/Makefile | 3 + .../{stress => conformance/definitions}/Makefile | 3 + .../{stress => conformance/interfaces}/Makefile | 3 + .../timers => interfaces/clock_settime}/LDLIBS | 0 .../conformance/interfaces/sched_setparam/25-3.c | 13 ++- .../{pthread_atfork => sem_destroy}/LDLIBS | 0 .../{pthread_atfork => sem_getvalue}/LDLIBS | 0 .../interfaces/{pthread_atfork => sem_init}/LDLIBS | 0 .../{pthread_atfork => sem_unlink}/LDLIBS | 0 .../conformance/interfaces/sigrelse/3-1.sh | 2 +- .../conformance/interfaces/sigrelse/3-2.sh | 2 +- .../conformance/interfaces/sigrelse/3-3.sh | 2 +- .../conformance/interfaces/sigrelse/3-4.sh | 2 +- .../sigrelse/{3-core-buildonly.c => 3-core.c} | 0 testcases/open_posix_testsuite/functional/Makefile | 3 + .../scripts/generate-makefiles.sh | 156 ++++++++++---------- testcases/open_posix_testsuite/stress/Makefile | 3 + 20 files changed, 127 insertions(+), 106 deletions(-) copy testcases/open_posix_testsuite/{stress => conformance/behavior}/Makefile (77%) copy testcases/open_posix_testsuite/{stress => conformance/definitions}/Makefile (77%) copy testcases/open_posix_testsuite/{stress => conformance/interfaces}/Makefile (77%) copy testcases/open_posix_testsuite/conformance/{behavior/timers => interfaces/clock_settime}/LDLIBS (100%) copy testcases/open_posix_testsuite/conformance/interfaces/{pthread_atfork => sem_destroy}/LDLIBS (100%) copy testcases/open_posix_testsuite/conformance/interfaces/{pthread_atfork => sem_getvalue}/LDLIBS (100%) copy testcases/open_posix_testsuite/conformance/interfaces/{pthread_atfork => sem_init}/LDLIBS (100%) copy testcases/open_posix_testsuite/conformance/interfaces/{pthread_atfork => sem_unlink}/LDLIBS (100%) rename testcases/open_posix_testsuite/conformance/interfaces/sigrelse/{3-core-buildonly.c => 3-core.c} (100%) diff --git a/testcases/open_posix_testsuite/CFLAGS b/testcases/open_posix_testsuite/CFLAGS index 27b85d4..55563b3 100644 --- a/testcases/open_posix_testsuite/CFLAGS +++ b/testcases/open_posix_testsuite/CFLAGS @@ -1,3 +1 @@ -# add -std=c99, -std=gnu99 if compiler supports it (gcc-2.95.3 does not). -# Add appropriate POSIX support as well (needs fixing). -`$(CC) -std=c99 -S -o /dev/null -xc /dev/null >/dev/null 2>&1 && echo "-std=c99"` `$(CC) -std=gnu99 -S -o /dev/null -xc /dev/null >/dev/null 2>&1 && echo "-std=gnu99"` -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 +-std=c99 `$(CC) -std=gnu99 -S -o /dev/null -xc /dev/null >/dev/null 2>&1 && echo "-std=gnu99"` -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 diff --git a/testcases/open_posix_testsuite/Makefile b/testcases/open_posix_testsuite/Makefile index 9e03fe4..55f5f1f 100644 --- a/testcases/open_posix_testsuite/Makefile +++ b/testcases/open_posix_testsuite/Makefile @@ -28,10 +28,9 @@ SUBDIRS= conformance functional stress # Force to -j1 so the output in the logfile won't be wonky. MAKE+= -j1 -MAKE+= LOGFILE=`if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ - MAKE_ENV= "CFLAGS=$(CFLAGS)" "LDFLAGS=$(LDFLAGS)" MAKE_ENV+= "LDLIBS=$(LDLIBS)" +MAKE_ENV+= LOGFILE=`if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ BUILD_MAKE= env $(MAKE_ENV) $(MAKE) @@ -39,56 +38,54 @@ top_srcdir?= . all: conformance-all functional-all stress-all tools -clean: +clean: $(CRITICAL_MAKEFILES) @rm -f $(LOGFILE)* @for dir in $(SUBDIRS) tools; do \ - $(BUILD_MAKE) -C $$dir clean >/dev/null; \ + $(MAKE) -C $$dir clean >/dev/null; \ done # Clean out all of the generated Makefiles; this is done this way to ensure # there won't be an argument overflow, and to remain POSIXly correct (POSIX # find(1) doesn't support -mindepth like BSD and GNU find do...). distclean-makefiles: - @for dir in $(SUBDIRS); do \ - (cd $$dir && for subdir in */; do \ - (cd $$subdir && find */ -name Makefile 2>/dev/null | xargs rm -f); \ - done); \ + for dir in $(SUBDIRS); do \ + $(MAKE) -C $$dir $@; \ done generate-makefiles: distclean-makefiles @export top_srcdir=$(top_srcdir); \ $(top_srcdir)/scripts/generate-makefiles.sh -$(CRITICAL_MAKEFILES): scripts/generate-makefiles.sh - @$(BUILD_MAKE) generate-makefiles +$(CRITICAL_MAKEFILES): $(top_srcdir)/scripts/generate-makefiles.sh + $(MAKE) generate-makefiles tools: - @$(BUILD_MAKE) -C tools all + $(MAKE) -C tools all # Test build and execution targets. conformance-all: $(CRITICAL_CONFORMANCE_MAKEFILE) @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ - @$(BUILD_MAKE) -C conformance all + $(BUILD_MAKE) -C conformance all conformance-test: @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ - @$(MAKE) -C conformance test + $(MAKE) -C conformance test functional-all: $(CRITICAL_FUNCTIONAL_MAKEFILE) @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ - @$(BUILD_MAKE) -C functional all + $(BUILD_MAKE) -C functional all functional-test: @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ - @$(MAKE) -C functional test + $(MAKE) -C functional test stress-all: $(CRITICAL_STRESS_MAKEFILE) @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ - @$(BUILD_MAKE) -C stress all + $(BUILD_MAKE) -C stress all stress-test: @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ - @$(MAKE) -C stress test + $(MAKE) -C stress test -tests-pretty: - @$(MAKE) all | column -t -s: +#tests-pretty: +# $(MAKE) all | column -t -s: diff --git a/testcases/open_posix_testsuite/conformance/Makefile b/testcases/open_posix_testsuite/conformance/Makefile index e67c7cf..2c6c557 100644 --- a/testcases/open_posix_testsuite/conformance/Makefile +++ b/testcases/open_posix_testsuite/conformance/Makefile @@ -4,7 +4,7 @@ # Garrett Cooper, June 2010 # -all clean install test: +all clean distclean-makefiles 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/stress/Makefile b/testcases/open_posix_testsuite/conformance/behavior/Makefile similarity index 77% copy from testcases/open_posix_testsuite/stress/Makefile copy to testcases/open_posix_testsuite/conformance/behavior/Makefile index 5523b02..04e78cd 100644 --- a/testcases/open_posix_testsuite/stress/Makefile +++ b/testcases/open_posix_testsuite/conformance/behavior/Makefile @@ -8,3 +8,6 @@ all clean install test: @for dir in `ls -d */Makefile 2>/dev/null | sed -e 's,/Makefile$$,,g'`; do \ $(MAKE) -C $$dir $@; \ done + +distclean-makefiles: + find */ -name 'Makefile*' | xargs rm -f diff --git a/testcases/open_posix_testsuite/stress/Makefile b/testcases/open_posix_testsuite/conformance/definitions/Makefile similarity index 77% copy from testcases/open_posix_testsuite/stress/Makefile copy to testcases/open_posix_testsuite/conformance/definitions/Makefile index 5523b02..04e78cd 100644 --- a/testcases/open_posix_testsuite/stress/Makefile +++ b/testcases/open_posix_testsuite/conformance/definitions/Makefile @@ -8,3 +8,6 @@ all clean install test: @for dir in `ls -d */Makefile 2>/dev/null | sed -e 's,/Makefile$$,,g'`; do \ $(MAKE) -C $$dir $@; \ done + +distclean-makefiles: + find */ -name 'Makefile*' | xargs rm -f diff --git a/testcases/open_posix_testsuite/stress/Makefile b/testcases/open_posix_testsuite/conformance/interfaces/Makefile similarity index 77% copy from testcases/open_posix_testsuite/stress/Makefile copy to testcases/open_posix_testsuite/conformance/interfaces/Makefile index 5523b02..04e78cd 100644 --- a/testcases/open_posix_testsuite/stress/Makefile +++ b/testcases/open_posix_testsuite/conformance/interfaces/Makefile @@ -8,3 +8,6 @@ all clean install test: @for dir in `ls -d */Makefile 2>/dev/null | sed -e 's,/Makefile$$,,g'`; do \ $(MAKE) -C $$dir $@; \ done + +distclean-makefiles: + find */ -name 'Makefile*' | xargs rm -f diff --git a/testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/LDLIBS similarity index 100% copy from testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS copy to testcases/open_posix_testsuite/conformance/interfaces/clock_settime/LDLIBS diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/25-3.c b/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/25-3.c index 7354c60..4415c03 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/25-3.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/25-3.c @@ -14,9 +14,9 @@ * * @pt:SS */ +#include <errno.h> #include <sched.h> #include <stdio.h> -#include <errno.h> #include <unistd.h> #include "posixtest.h" @@ -51,9 +51,18 @@ int main(){ printf("This process does not have the permission to set its own scheduling parameter.\nTry to launch this test as root\n"); return PTS_UNRESOLVED; } else { - perror("Unknow error"); + perror("Unknown error"); return PTS_FAIL; } } +#elif _POSIX_SPORADIC_SERVER == -1 +int +main(void) { + printf("_POSIX_SPORADIC_SERVER support not available\n"); + return PTS_UNRESOLVED; +} + +#else +#error "_POSIX_SPORADIC_SERVER not defined correctly" #endif diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/sem_destroy/LDLIBS similarity index 100% copy from testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/LDLIBS copy to testcases/open_posix_testsuite/conformance/interfaces/sem_destroy/LDLIBS diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/sem_getvalue/LDLIBS similarity index 100% copy from testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/LDLIBS copy to testcases/open_posix_testsuite/conformance/interfaces/sem_getvalue/LDLIBS diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/sem_init/LDLIBS similarity index 100% copy from testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/LDLIBS copy to testcases/open_posix_testsuite/conformance/interfaces/sem_init/LDLIBS diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/sem_unlink/LDLIBS similarity index 100% copy from testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/LDLIBS copy to testcases/open_posix_testsuite/conformance/interfaces/sem_unlink/LDLIBS diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigrelse/3-1.sh b/testcases/open_posix_testsuite/conformance/interfaces/sigrelse/3-1.sh index cdd5f39..509b806 100755 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigrelse/3-1.sh +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigrelse/3-1.sh @@ -9,4 +9,4 @@ # Test various methods of adding invalid signals to sigrelse(). # -conformance/interfaces/sigrelse/3-core-buildonly.test 1 +conformance/interfaces/sigrelse/3-core.test 1 diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigrelse/3-2.sh b/testcases/open_posix_testsuite/conformance/interfaces/sigrelse/3-2.sh index 9d500ef..c4a1d64 100755 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigrelse/3-2.sh +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigrelse/3-2.sh @@ -9,4 +9,4 @@ # Test various methods of adding invalid signals to sigrelse(). # -conformance/interfaces/sigrelse/3-core-buildonly.test 2 +conformance/interfaces/sigrelse/3-core.test 2 diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigrelse/3-3.sh b/testcases/open_posix_testsuite/conformance/interfaces/sigrelse/3-3.sh index 247fea6..1f725da 100755 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigrelse/3-3.sh +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigrelse/3-3.sh @@ -9,4 +9,4 @@ # Test various methods of adding invalid signals to sigrelse(). # -conformance/interfaces/sigrelse/3-core-buildonly.test 3 +conformance/interfaces/sigrelse/3-core.test 3 diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigrelse/3-4.sh b/testcases/open_posix_testsuite/conformance/interfaces/sigrelse/3-4.sh index 8bb8daa..add0504 100755 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigrelse/3-4.sh +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigrelse/3-4.sh @@ -9,4 +9,4 @@ # Test various methods of adding invalid signals to sigrelse(). # -conformance/interfaces/sigrelse/3-core-buildonly.test 4 +conformance/interfaces/sigrelse/3-core.test 4 diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigrelse/3-core-buildonly.c b/testcases/open_posix_testsuite/conformance/interfaces/sigrelse/3-core.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/interfaces/sigrelse/3-core-buildonly.c rename to testcases/open_posix_testsuite/conformance/interfaces/sigrelse/3-core.c diff --git a/testcases/open_posix_testsuite/functional/Makefile b/testcases/open_posix_testsuite/functional/Makefile index e67c7cf..9de651a 100644 --- a/testcases/open_posix_testsuite/functional/Makefile +++ b/testcases/open_posix_testsuite/functional/Makefile @@ -8,3 +8,6 @@ all clean install test: @for dir in `ls -d */Makefile 2>/dev/null | sed -e 's,/Makefile$$,,g'`; do \ $(MAKE) -C $$dir $@; \ done + +distclean-makefiles: + find */ -name 'Makefile*' | grep -v threads/Makefile | xargs rm -f diff --git a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh index 71cd1f5..710e774 100755 --- a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh +++ b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh @@ -16,7 +16,7 @@ # Garrett Cooper, June 2010 # -AUTHORDATE=$(grep "Garrett Cooper" "$0" | head -n 1) +AUTHORDATE=$(grep "Garrett Cooper" "$0" | head -n 1 | sed 's,# *,,') export PATH="$PATH:$(dirname "$0")" generate_locate_test_makefile() { @@ -27,7 +27,7 @@ generate_locate_test_makefile() { locate-test --$maketype | sed -e 's,^./,,g' > make-gen.$maketype - generate_makefile make-gen.$maketype $* + generate_makefiles make-gen.$maketype $* rm -f make-gen.$maketype @@ -38,39 +38,26 @@ generate_makefile() { local make_target_prereq_cache= local prereq_cache= - local make_gen_list=$1; shift - local suffix=$1; shift - local compiler_args=$* + local makefile=$1 + local prereq_dir=$2 + local compiler_args=$3 + shift 3 - while read filename; do + prereq_cache="$*" - prereq_dir=$(dirname "$filename") + # Add all source files to $make_target_prereq_cache. + for prereq in $prereq_cache; do + if echo "$prereq" | grep -q 'test$'; then + if [ "$make_target_prereq_cache" != "" ]; then + make_target_prereq_cache="$make_target_prereq_cache " + fi + make_target_prereq_cache="$make_target_prereq_cache$prereq" + fi + done - # First run. - if [ "$prereq_cache_dir" = "" ] ; then - makefile="$prereq_dir/Makefile" - prereq_cache_dir="$prereq_dir" - elif [ "$prereq_cache_dir" != "$prereq_dir" ]; then + if [ -f "$makefile.1" ]; then - # Add all non-.c files to $make_target_prereq_cache. - for prereq in $prereq_cache; do - if echo "$prereq" | grep -q '.test$'; then - if [ "$make_target_prereq_cache" != "" ]; then - make_target_prereq_cache="$make_target_prereq_cache " - fi - make_target_prereq_cache="$make_target_prereq_cache$prereq" - fi - done - - # Print out the Makefile header for the first round. - if [ ! -f "$makefile.1" ]; then - - # The empty set for {INSTALL,MAKE}_TARGETS is - # because some versions of make (like gmake) - # must predefine the variables beforehand in - # order for the value to be expanded properly - # in the make rules. - cat > "$makefile.1" <<EOF + cat > "$makefile.1" <<EOF # # Automatically generated by $(basename "$0") -- DO NOT EDIT. # @@ -81,7 +68,7 @@ generate_makefile() { # # Path variables. -top_srcdir?= $(echo "$prereq_cache_dir" | sed -E -e 's,[^/]+,\.\.,g') +top_srcdir?= $(echo "$prereq_dir" | sed -E -e 's,[^/]+,\.\.,g') subdir= $prereq_cache_dir srcdir= \$(top_srcdir)/\$(subdir) @@ -95,28 +82,28 @@ CFLAGS+= -I\$(top_srcdir)/include # XXX: for testfrmw.c -- needs to be moved into a library. CFLAGS+= -I\$(srcdir) -EOF +# Include top-level make definitions and submake make definitions. +CFLAGS+= \`grep -v '^#' 2>/dev/null \$(top_srcdir)/CFLAGS\` +CFLAGS+= \`grep -v '^#' 2>/dev/null \$(srcdir)/CFLAGS\` + +LDFLAGS+= \`grep -v '^#' 2>/dev/null \$(top_srcdir)/LDFLAGS\` +LDFLAGS+= \`grep -v '^#' 2>/dev/null \$(srcdir)/LDFLAGS\` - # Include top-level definitions - cat >> "$makefile.1" <<EOF -CFLAGS+= `grep -v '^#' 2>/dev/null CFLAGS` +LDLIBS+= \`grep -v '^#' 2>/dev/null \$(top_srcdir)/LDLIBS\` +LDLIBS+= \`grep -v '^#' 2>/dev/null \$(srcdir)/LDLIBS\` EOF - for var in CFLAGS LDFLAGS LDLIBS; do + fi - if [ -f "$prereq_cache_dir/$var" ]; then + cat >> "$makefile.2" <<EOF +INSTALL_TARGETS+= ${prereq_cache} - cat >> "$makefile.1" <<EOF -$var+= `grep -v '^#' 2>/dev/null $prereq_cache_dir/$var` +MAKE_TARGETS+= ${make_target_prereq_cache} EOF - fi - - done - - cat > "$makefile.3" <<EOF + cat > "$makefile.3" <<EOF all: \$(MAKE_TARGETS) clean: @@ -134,51 +121,61 @@ test: all mkdir -p \$@ EOF - fi - - cat >> "$makefile.2" <<EOF -INSTALL_TARGETS+= ${prereq_cache} - -MAKE_TARGETS+= ${make_target_prereq_cache} - -EOF - # Produce _awesome_ target rules for everything that - # needs it. - for prereq in ${make_target_prereq_cache}; do + # Produce _awesome_ target rules for everything that needs it. + for prereq in ${make_target_prereq_cache}; do - test_name=$(echo "$prereq" | sed -e "s,\.$suffix,,") - c_file="$test_name.c" + test_name=$(echo "$prereq" | sed -e "s,.$suffix,,") + c_file="$test_name.c" - case "$suffix" in - run-test) - grep -q 'main' "$prereq_cache_dir/$c_file" || echo >&2 "$prereq_cache_dir/$c_file should be test." - ;; - test) - grep -q 'main' "$prereq_cache_dir/$c_file" && echo >&2 "$prereq_cache_dir/$c_file should be run-test." - ;; - esac + case "$suffix" in + run-test) + grep -q 'main' "$prereq_dir/$c_file" || echo >&2 "$prereq_dir/$c_file should be test." + ;; + test) + grep -q 'main' "$prereq_dir/$c_file" && echo >&2 "$prereq_dir/$c_file should be run-test." + ;; + esac - COMPILE_STR="\$(CC) $compiler_args \$(CFLAGS) \$(LDFLAGS) -o \$@ \$(srcdir)/$c_file \$(LDLIBS)" + COMPILE_STR="\$(CC) $compiler_args \$(CFLAGS) \$(LDFLAGS) -o \$@ \$(srcdir)/$c_file \$(LDLIBS)" - cat >> "$makefile.4" <<EOF + cat >> "$makefile.3" <<EOF $prereq: \$(srcdir)/$c_file @if $COMPILE_STR >logfile.\$\$\$\$ 2>&1; then \\ - echo "$prereq_cache_dir/$test_name compile PASSED"; \\ - echo "$prereq_cache_dir/$test_name compile PASSED" >> \$(LOGFILE); \\ + echo "$prereq_dir/$test_name compile PASSED"; \\ + echo "$prereq_dir/$test_name compile PASSED" >> \$(LOGFILE); \\ else \\ - echo "$prereq_cache_dir/$test_name compile FAILED"; \\ - (echo "$prereq_cache_dir/$test_name compile FAILED"; cat logfile.\$\$\$\$) >> \$(LOGFILE); \\ + echo "$prereq_dir/$test_name compile FAILED"; \\ + (echo "$prereq_dir/$test_name compile FAILED"; cat logfile.\$\$\$\$) >> \$(LOGFILE); \\ fi; \\ rm -f logfile.\$\$\$\$ EOF - done + done + +} + +generate_makefiles() { + + local prereq_cache= + + local make_gen_list=$1; shift + local suffix=$1; shift + local compiler_args="$@" + + while read filename; do + + prereq_dir=$(dirname "$filename") + + # First run. + if [ "$prereq_cache_dir" = "" ] ; then + prereq_cache_dir="$prereq_dir" + elif [ "$prereq_cache_dir" != "$prereq_dir" ]; then + + generate_makefile "$prereq_cache_dir/Makefile" $prereq_cache_dir "$compiler_args" $prereq_cache # Prep for the next round.. - make_target_prereq_cache= - makefile="$prereq_dir/Makefile" prereq_cache= prereq_cache_dir="$prereq_dir" @@ -193,6 +190,9 @@ EOF done < $make_gen_list + # Dump the last Makefile data cached up. + generate_makefile "$prereq_cache_dir/Makefile" $prereq_cache_dir "$compiler_args" $prereq_cache + } DEFAULT_PREFIX= @@ -212,6 +212,8 @@ generate_locate_test_makefile buildonly "test" -c generate_locate_test_makefile runnable "run-test" find . -name Makefile.1 -exec dirname {} \; | while read dir; do - cat $dir/Makefile.1 $dir/Makefile.2 $dir/Makefile.3 $dir/Makefile.4 > $dir/Makefile - rm $dir/Makefile.1 $dir/Makefile.2 $dir/Makefile.3 $dir/Makefile.4 + if [ -f "$dir/Makefile.2" ]; then + cat $dir/Makefile.1 $dir/Makefile.2 $dir/Makefile.3 > $dir/Makefile + fi + rm $dir/Makefile.1 $dir/Makefile.2 $dir/Makefile.3 done diff --git a/testcases/open_posix_testsuite/stress/Makefile b/testcases/open_posix_testsuite/stress/Makefile index 5523b02..04e78cd 100644 --- a/testcases/open_posix_testsuite/stress/Makefile +++ b/testcases/open_posix_testsuite/stress/Makefile @@ -8,3 +8,6 @@ all clean install test: @for dir in `ls -d */Makefile 2>/dev/null | sed -e 's,/Makefile$$,,g'`; do \ $(MAKE) -C $$dir $@; \ done + +distclean-makefiles: + find */ -name 'Makefile*' | xargs rm -f hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-04 23:58:39
|
The branch, pu, has been updated via 9b6bb8b07b89314c0d2cc373e668a10525f018e0 (commit) via 0ffe3041ce48b93465c85b67ee8f4fd73ac7fbd8 (commit) via bbe8f67cdb710dbbbd48e0ab7339ad3c95b811be (commit) via 1183a9fa5092975c28c8a6d070b82d477c4e509e (commit) via 3e99bc7c7782f57f75903b76a38bf73d93c8f832 (commit) via c14cf2c626d5960badede4b96da87226232b7ba6 (commit) from ef399220509ea9889609cb58749dae97d5dbc00b (commit) - Log ----------------------------------------------------------------- commit 9b6bb8b07b89314c0d2cc373e668a10525f018e0 Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 16:56:06 2010 -0700 Add required LDLIBS files. Signed-off-by: Garrett Cooper <yan...@gm...> commit 0ffe3041ce48b93465c85b67ee8f4fd73ac7fbd8 Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 16:55:16 2010 -0700 Remove POSIX_C_SOURCE b/c it's in the Makefile. Signed-off-by: Garrett Cooper <yan...@gm...> commit bbe8f67cdb710dbbbd48e0ab7339ad3c95b811be Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 16:32:49 2010 -0700 Remove logfile if submake was invoked manually. Signed-off-by: Garrett Cooper <yan...@gm...> commit 1183a9fa5092975c28c8a6d070b82d477c4e509e Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 16:31:04 2010 -0700 Pass down build variables via $(BUILD_MAKE). Signed-off-by: Garrett Cooper <yan...@gm...> commit 3e99bc7c7782f57f75903b76a38bf73d93c8f832 Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 16:27:19 2010 -0700 Remove unused header. Signed-off-by: Garrett Cooper <yan...@gm...> commit c14cf2c626d5960badede4b96da87226232b7ba6 Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 14:55:39 2010 -0700 Whitespace. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: testcases/open_posix_testsuite/Makefile | 21 ++++++++++--------- .../conformance/behavior/timers/LDLIBS | 1 + .../conformance/interfaces/fork/22-1.c | 4 --- .../conformance/interfaces/fork/LDLIBS | 1 + .../conformance/interfaces/getpid/1-1.c | 10 --------- .../conformance/interfaces/mq_close/LDLIBS | 1 + .../conformance/interfaces/mq_getattr/LDLIBS | 1 + .../conformance/interfaces/mq_notify/LDLIBS | 1 + .../conformance/interfaces/mq_open/LDLIBS | 1 + .../conformance/interfaces/mq_receive/LDLIBS | 1 + .../conformance/interfaces/mq_send/LDLIBS | 1 + .../conformance/interfaces/mq_setattr/LDLIBS | 1 + .../conformance/interfaces/mq_timedreceive/LDLIBS | 1 + .../conformance/interfaces/mq_timedsend/LDLIBS | 1 + .../conformance/interfaces/mq_unlink/LDLIBS | 1 + .../conformance/interfaces/pthread_atfork/LDLIBS | 1 + .../interfaces/pthread_attr_destroy/LDLIBS | 1 + .../interfaces/pthread_attr_getdetachstate/LDLIBS | 1 + .../interfaces/pthread_attr_getinheritsched/LDLIBS | 1 + .../interfaces/pthread_attr_getschedparam/LDLIBS | 1 + .../interfaces/pthread_attr_getschedpolicy/LDLIBS | 1 + .../interfaces/pthread_attr_getscope/LDLIBS | 1 + .../interfaces/pthread_attr_getstack/LDLIBS | 1 + .../interfaces/pthread_attr_getstacksize/LDLIBS | 1 + .../interfaces/pthread_attr_init/LDLIBS | 1 + .../interfaces/pthread_attr_setdetachstate/LDLIBS | 1 + .../interfaces/pthread_attr_setinheritsched/LDLIBS | 1 + .../interfaces/pthread_attr_setschedparam/LDLIBS | 1 + .../interfaces/pthread_attr_setschedpolicy/LDLIBS | 1 + .../interfaces/pthread_attr_setscope/LDLIBS | 1 + .../interfaces/pthread_attr_setstack/LDLIBS | 1 + .../interfaces/pthread_attr_setstacksize/LDLIBS | 1 + .../interfaces/pthread_barrier_destroy/LDLIBS | 1 + .../interfaces/pthread_barrier_init/LDLIBS | 1 + .../interfaces/pthread_barrier_wait/LDLIBS | 1 + .../interfaces/pthread_barrierattr_destroy/LDLIBS | 1 + .../pthread_barrierattr_getpshared/LDLIBS | 1 + .../interfaces/pthread_barrierattr_init/LDLIBS | 1 + .../pthread_barrierattr_setpshared/LDLIBS | 1 + .../conformance/interfaces/pthread_cancel/LDLIBS | 1 + .../interfaces/pthread_cleanup_pop/LDLIBS | 1 + .../interfaces/pthread_cleanup_push/LDLIBS | 1 + .../interfaces/pthread_cond_broadcast/LDLIBS | 1 + .../interfaces/pthread_cond_destroy/LDLIBS | 1 + .../interfaces/pthread_cond_init/LDLIBS | 1 + .../interfaces/pthread_cond_signal/LDLIBS | 1 + .../interfaces/pthread_cond_timedwait/LDLIBS | 1 + .../interfaces/pthread_cond_wait/LDLIBS | 1 + .../interfaces/pthread_condattr_destroy/LDLIBS | 1 + .../interfaces/pthread_condattr_getclock/LDLIBS | 1 + .../interfaces/pthread_condattr_getpshared/LDLIBS | 1 + .../interfaces/pthread_condattr_init/LDLIBS | 1 + .../interfaces/pthread_condattr_setclock/LDLIBS | 1 + .../interfaces/pthread_condattr_setpshared/LDLIBS | 1 + .../conformance/interfaces/pthread_create/LDLIBS | 1 + .../conformance/interfaces/pthread_detach/LDLIBS | 1 + .../conformance/interfaces/pthread_equal/LDLIBS | 1 + .../conformance/interfaces/pthread_exit/LDLIBS | 1 + .../interfaces/pthread_getcpuclockid/LDLIBS | 1 + .../interfaces/pthread_getschedparam/1-3.c | 3 -- .../interfaces/pthread_getschedparam/LDLIBS | 1 + .../interfaces/pthread_getspecific/LDLIBS | 1 + .../conformance/interfaces/pthread_join/LDLIBS | 1 + .../interfaces/pthread_key_create/LDLIBS | 1 + .../interfaces/pthread_key_delete/LDLIBS | 1 + .../conformance/interfaces/pthread_kill/LDLIBS | 1 + .../interfaces/pthread_mutex_destroy/LDLIBS | 1 + .../interfaces/pthread_mutex_getprioceiling/LDLIBS | 1 + .../interfaces/pthread_mutex_init/LDLIBS | 1 + .../interfaces/pthread_mutex_lock/LDLIBS | 1 + .../interfaces/pthread_mutex_timedlock/LDLIBS | 1 + .../interfaces/pthread_mutex_trylock/LDLIBS | 1 + .../interfaces/pthread_mutex_unlock/LDLIBS | 1 + .../interfaces/pthread_mutexattr_destroy/LDLIBS | 1 + .../pthread_mutexattr_getprioceiling/LDLIBS | 1 + .../pthread_mutexattr_getprotocol/LDLIBS | 1 + .../interfaces/pthread_mutexattr_getpshared/LDLIBS | 1 + .../interfaces/pthread_mutexattr_gettype/LDLIBS | 1 + .../interfaces/pthread_mutexattr_init/LDLIBS | 1 + .../pthread_mutexattr_setprioceiling/LDLIBS | 1 + .../pthread_mutexattr_setprotocol/LDLIBS | 1 + .../interfaces/pthread_mutexattr_setpshared/LDLIBS | 1 + .../interfaces/pthread_mutexattr_settype/LDLIBS | 1 + .../conformance/interfaces/pthread_once/LDLIBS | 1 + .../interfaces/pthread_rwlock_destroy/LDLIBS | 1 + .../interfaces/pthread_rwlock_init/LDLIBS | 1 + .../interfaces/pthread_rwlock_rdlock/LDLIBS | 1 + .../interfaces/pthread_rwlock_timedrdlock/LDLIBS | 1 + .../interfaces/pthread_rwlock_timedwrlock/LDLIBS | 1 + .../interfaces/pthread_rwlock_tryrdlock/LDLIBS | 1 + .../interfaces/pthread_rwlock_trywrlock/LDLIBS | 1 + .../interfaces/pthread_rwlock_unlock/LDLIBS | 1 + .../interfaces/pthread_rwlock_wrlock/LDLIBS | 1 + .../interfaces/pthread_rwlockattr_destroy/LDLIBS | 1 + .../pthread_rwlockattr_getpshared/LDLIBS | 1 + .../interfaces/pthread_rwlockattr_init/LDLIBS | 1 + .../pthread_rwlockattr_setpshared/LDLIBS | 1 + .../conformance/interfaces/pthread_self/LDLIBS | 1 + .../interfaces/pthread_setcancelstate/LDLIBS | 1 + .../interfaces/pthread_setcanceltype/LDLIBS | 1 + .../interfaces/pthread_setschedparam/LDLIBS | 1 + .../interfaces/pthread_setschedprio/LDLIBS | 1 + .../interfaces/pthread_setspecific/LDLIBS | 1 + .../conformance/interfaces/pthread_sigmask/LDLIBS | 1 + .../interfaces/pthread_spin_destroy/LDLIBS | 1 + .../interfaces/pthread_spin_init/LDLIBS | 1 + .../interfaces/pthread_spin_lock/LDLIBS | 1 + .../interfaces/pthread_spin_trylock/LDLIBS | 1 + .../interfaces/pthread_spin_unlock/LDLIBS | 1 + .../interfaces/pthread_testcancel/LDLIBS | 1 + .../conformance/interfaces/sched_setparam/LDLIBS | 1 + .../interfaces/sched_setscheduler/LDLIBS | 1 + .../conformance/interfaces/sched_yield/LDLIBS | 1 + .../conformance/interfaces/sem_getvalue/2-2.c | 4 --- .../conformance/interfaces/sem_unlink/7-1.c | 3 -- .../conformance/interfaces/sem_unlink/9-1.c | 3 -- .../conformance/interfaces/sigaction/16-19.c | 7 ------ .../conformance/interfaces/sigaction/18-19.c | 4 --- .../conformance/interfaces/sigaction/19-19.c | 4 --- .../conformance/interfaces/sigaction/23-19.c | 3 -- .../conformance/interfaces/sigaction/28-19.c | 4 --- .../conformance/interfaces/sigaction/LDLIBS | 1 + .../conformance/interfaces/sigpause/LDLIBS | 1 + .../conformance/interfaces/sigwait/LDLIBS | 1 + .../conformance/interfaces/timer_create/LDLIBS | 1 + .../conformance/interfaces/timer_delete/LDLIBS | 1 + .../conformance/interfaces/timer_getoverrun/LDLIBS | 1 + .../conformance/interfaces/timer_gettime/LDLIBS | 1 + .../conformance/interfaces/timer_settime/LDLIBS | 1 + .../open_posix_testsuite/functional/mqueues/LDLIBS | 1 + .../functional/semaphores/LDLIBS | 1 + .../functional/semaphores/sem_conpro.c | 1 - .../functional/semaphores/sem_lock.c | 1 - .../functional/semaphores/sem_philosopher.c | 1 - .../functional/semaphores/sem_readerwriter.c | 1 - .../functional/threads/condvar/LDLIBS | 1 + .../functional/threads/pi_test/LDLIBS | 1 + .../functional/threads/schedule/LDLIBS | 1 + .../scripts/generate-makefiles.sh | 3 +- .../open_posix_testsuite/stress/mqueues/LDLIBS | 1 + .../open_posix_testsuite/stress/semaphores/LDLIBS | 1 + .../open_posix_testsuite/stress/threads/LDLIBS | 1 + 142 files changed, 138 insertions(+), 64 deletions(-) create mode 100644 testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/fork/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/mq_close/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/mq_getattr/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/mq_notify/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/mq_open/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/mq_receive/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/mq_send/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/mq_setattr/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/mq_unlink/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_destroy/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getdetachstate/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getinheritsched/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getschedparam/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getschedpolicy/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getscope/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getstack/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getstacksize/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_init/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setdetachstate/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setinheritsched/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedparam/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedpolicy/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setscope/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setstack/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setstacksize/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_destroy/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_init/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_wait/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_destroy/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_getpshared/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_init/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_setpshared/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_cleanup_pop/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_cleanup_push/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_init/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_destroy/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_getclock/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_getpshared/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_init/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_setclock/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_setpshared/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_create/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_equal/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_getcpuclockid/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_getschedparam/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_getspecific/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_join/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_key_create/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_key_delete/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_destroy/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_getprioceiling/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_init/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_unlock/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_destroy/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_getprioceiling/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_getprotocol/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_getpshared/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_gettype/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_init/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_setprioceiling/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_setprotocol/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_setpshared/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_settype/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_once/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_destroy/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_init/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_rdlock/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_tryrdlock/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_trywrlock/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_wrlock/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_destroy/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_getpshared/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_init/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_setpshared/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_self/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_setcancelstate/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_setcanceltype/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedparam/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedprio/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_setspecific/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_destroy/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_init/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_lock/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_trylock/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_unlock/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/pthread_testcancel/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/sched_yield/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/sigaction/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/sigpause/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/sigwait/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/timer_create/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/timer_delete/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/timer_getoverrun/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/timer_gettime/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/interfaces/timer_settime/LDLIBS create mode 100644 testcases/open_posix_testsuite/functional/mqueues/LDLIBS create mode 100644 testcases/open_posix_testsuite/functional/semaphores/LDLIBS create mode 100644 testcases/open_posix_testsuite/functional/threads/condvar/LDLIBS create mode 100644 testcases/open_posix_testsuite/functional/threads/pi_test/LDLIBS create mode 100644 testcases/open_posix_testsuite/functional/threads/schedule/LDLIBS create mode 100644 testcases/open_posix_testsuite/stress/mqueues/LDLIBS create mode 100644 testcases/open_posix_testsuite/stress/semaphores/LDLIBS create mode 100644 testcases/open_posix_testsuite/stress/threads/LDLIBS diff --git a/testcases/open_posix_testsuite/Makefile b/testcases/open_posix_testsuite/Makefile index 8c30a98..9e03fe4 100644 --- a/testcases/open_posix_testsuite/Makefile +++ b/testcases/open_posix_testsuite/Makefile @@ -27,12 +27,13 @@ LOGFILE?= logfile SUBDIRS= conformance functional stress # Force to -j1 so the output in the logfile won't be wonky. -MAKE+= -j1 "CFLAGS=$(CFLAGS)" "LDFLAGS=$(LDFLAGS)" -MAKE+= "LDLIBS=$(LDLIBS)" +MAKE+= -j1 MAKE+= LOGFILE=`if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ -#LDFLAGS+= -#LDLIBS+= -lpthread -lrt -lm +MAKE_ENV= "CFLAGS=$(CFLAGS)" "LDFLAGS=$(LDFLAGS)" +MAKE_ENV+= "LDLIBS=$(LDLIBS)" + +BUILD_MAKE= env $(MAKE_ENV) $(MAKE) top_srcdir?= . @@ -41,7 +42,7 @@ all: conformance-all functional-all stress-all tools clean: @rm -f $(LOGFILE)* @for dir in $(SUBDIRS) tools; do \ - $(MAKE) -C $$dir clean >/dev/null; \ + $(BUILD_MAKE) -C $$dir clean >/dev/null; \ done # Clean out all of the generated Makefiles; this is done this way to ensure @@ -59,15 +60,15 @@ generate-makefiles: distclean-makefiles $(top_srcdir)/scripts/generate-makefiles.sh $(CRITICAL_MAKEFILES): scripts/generate-makefiles.sh - @$(MAKE) generate-makefiles + @$(BUILD_MAKE) generate-makefiles tools: - @$(MAKE) -C tools all + @$(BUILD_MAKE) -C tools all # Test build and execution targets. conformance-all: $(CRITICAL_CONFORMANCE_MAKEFILE) @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ - @$(MAKE) -C conformance all + @$(BUILD_MAKE) -C conformance all conformance-test: @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ @@ -75,7 +76,7 @@ conformance-test: functional-all: $(CRITICAL_FUNCTIONAL_MAKEFILE) @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ - @$(MAKE) -C functional all + @$(BUILD_MAKE) -C functional all functional-test: @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ @@ -83,7 +84,7 @@ functional-test: stress-all: $(CRITICAL_STRESS_MAKEFILE) @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ - @$(MAKE) -C stress all + @$(BUILD_MAKE) -C stress all stress-test: @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ diff --git a/testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS b/testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS new file mode 100644 index 0000000..08f7cd6 --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS @@ -0,0 +1 @@ +-lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/fork/22-1.c b/testcases/open_posix_testsuite/conformance/interfaces/fork/22-1.c index eadb12f..c551b44 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/fork/22-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/fork/22-1.c @@ -28,10 +28,6 @@ */ - -/* We are testing conformance to IEEE Std 1003.1, 2003 Edition */ -#define _POSIX_C_SOURCE 200112L - /********************************************************************************************/ /****************************** standard includes *****************************************/ /********************************************************************************************/ diff --git a/testcases/open_posix_testsuite/conformance/interfaces/fork/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/fork/LDLIBS new file mode 100644 index 0000000..4c7e2d8 --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/fork/LDLIBS @@ -0,0 +1 @@ +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/getpid/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/getpid/1-1.c index 95b60a2..390ba7f 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/getpid/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/getpid/1-1.c @@ -29,16 +29,6 @@ * The test fails if any of the previous checks is not verified. */ - - - /* We are testing conformance to IEEE Std 1003.1, 2003 Edition */ - #define _POSIX_C_SOURCE 200112L - - /* We need the XSI extention for the mutex attributes - and the mkstemp() routine */ -#ifndef WITHOUT_XOPEN - #define _XOPEN_SOURCE 600 -#endif /********************************************************************************************/ /****************************** standard includes *****************************************/ diff --git a/testcases/open_posix_testsuite/conformance/interfaces/mq_close/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/mq_close/LDLIBS new file mode 100644 index 0000000..4c7e2d8 --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/mq_close/LDLIBS @@ -0,0 +1 @@ +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/mq_getattr/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/mq_getattr/LDLIBS new file mode 100644 index 0000000..4c7e2d8 --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/mq_getattr/LDLIBS @@ -0,0 +1 @@ +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/mq_notify/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/mq_notify/LDLIBS new file mode 100644 index 0000000..4c7e2d8 --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/mq_notify/LDLIBS @@ -0,0 +1 @@ +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/mq_open/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/mq_open/LDLIBS new file mode 100644 index 0000000..4c7e2d8 --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/mq_open/LDLIBS @@ -0,0 +1 @@ +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/mq_receive/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/mq_receive/LDLIBS new file mode 100644 index 0000000..4c7e2d8 --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/mq_receive/LDLIBS @@ -0,0 +1 @@ +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/mq_send/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/mq_send/LDLIBS new file mode 100644 index 0000000..4c7e2d8 --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/mq_send/LDLIBS @@ -0,0 +1 @@ +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/mq_setattr/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/mq_setattr/LDLIBS new file mode 100644 index 0000000..4c7e2d8 --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/mq_setattr/LDLIBS @@ -0,0 +1 @@ +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/LDLIBS new file mode 100644 index 0000000..4c7e2d8 --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/LDLIBS @@ -0,0 +1 @@ +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/LDLIBS new file mode 100644 index 0000000..4c7e2d8 --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/LDLIBS @@ -0,0 +1 @@ +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/mq_unlink/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/mq_unlink/LDLIBS new file mode 100644 index 0000000..4c7e2d8 --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/mq_unlink/LDLIBS @@ -0,0 +1 @@ +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_destroy/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_destroy/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_destroy/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getdetachstate/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getdetachstate/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getdetachstate/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getinheritsched/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getinheritsched/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getinheritsched/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getschedparam/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getschedparam/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getschedparam/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getschedpolicy/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getschedpolicy/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getschedpolicy/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getscope/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getscope/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getscope/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getstack/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getstack/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getstack/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getstacksize/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getstacksize/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getstacksize/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_init/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_init/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_init/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setdetachstate/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setdetachstate/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setdetachstate/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setinheritsched/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setinheritsched/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setinheritsched/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedparam/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedparam/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedparam/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedpolicy/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedpolicy/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedpolicy/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setscope/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setscope/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setscope/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setstack/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setstack/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setstack/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setstacksize/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setstacksize/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setstacksize/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_destroy/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_destroy/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_destroy/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_init/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_init/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_init/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_wait/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_wait/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_wait/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_destroy/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_destroy/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_destroy/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_getpshared/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_getpshared/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_getpshared/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_init/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_init/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_init/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_setpshared/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_setpshared/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_setpshared/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cleanup_pop/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cleanup_pop/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cleanup_pop/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cleanup_push/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cleanup_push/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cleanup_push/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_init/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_init/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_init/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_destroy/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_destroy/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_destroy/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_getclock/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_getclock/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_getclock/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_getpshared/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_getpshared/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_getpshared/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_init/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_init/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_init/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_setclock/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_setclock/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_setclock/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_setpshared/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_setpshared/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_setpshared/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_equal/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_equal/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_equal/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_getcpuclockid/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_getcpuclockid/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_getcpuclockid/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_getschedparam/1-3.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_getschedparam/1-3.c index 7a7e108..88e87c9 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_getschedparam/1-3.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_getschedparam/1-3.c @@ -33,9 +33,6 @@ */ -/* We are testing conformance to IEEE Std 1003.1, 2003 Edition */ -#define _POSIX_C_SOURCE 200112L - /******************************************************************************/ /*********************** standard includes ************************************/ /******************************************************************************/ diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_getschedparam/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_getschedparam/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_getschedparam/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_getspecific/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_getspecific/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_getspecific/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_key_create/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_key_create/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_key_create/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_key_delete/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_key_delete/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_key_delete/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_destroy/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_destroy/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_destroy/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_getprioceiling/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_getprioceiling/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_getprioceiling/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_init/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_init/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_init/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_unlock/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_unlock/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_unlock/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_destroy/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_destroy/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_destroy/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_getprioceiling/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_getprioceiling/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_getprioceiling/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_getprotocol/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_getprotocol/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_getprotocol/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_getpshared/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_getpshared/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_getpshared/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_gettype/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_gettype/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_gettype/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_init/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_init/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_init/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_setprioceiling/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_setprioceiling/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_setprioceiling/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_setprotocol/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_setprotocol/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_setprotocol/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_setpshared/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_setpshared/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_setpshared/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_settype/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_settype/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_settype/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_once/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_once/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_once/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_destroy/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_destroy/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_destroy/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_init/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_init/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_init/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_rdlock/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_rdlock/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_rdlock/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_tryrdlock/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_tryrdlock/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_tryrdlock/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_trywrlock/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_trywrlock/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_trywrlock/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_wrlock/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_wrlock/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_wrlock/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_destroy/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_destroy/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_destroy/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_getpshared/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_getpshared/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_getpshared/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_init/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_init/LDLIBS new file mode 100644 index 0000000..1d2c98f --- /dev/null +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_init/LDLIBS @@ -0,0 +1 @@ +-lpthread diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_setpshared/LDLIBS b/testcases/open_... [truncated message content] |
From: Garrett C. <ris...@li...> - 2010-07-04 21:48:34
|
The branch, pu, has been updated via ef399220509ea9889609cb58749dae97d5dbc00b (commit) from 69a66f173dc5e1cee6ff512947a1dbc4521245ce (commit) - Log ----------------------------------------------------------------- commit ef399220509ea9889609cb58749dae97d5dbc00b Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 14:44:15 2010 -0700 Push the CFLAGS var into a file for inclusion. This unbreaks compiling C99 keywords, like restrict. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: testcases/open_posix_testsuite/CFLAGS | 3 +++ testcases/open_posix_testsuite/Makefile | 9 +++------ .../scripts/generate-makefiles.sh | 6 ++++++ 3 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 testcases/open_posix_testsuite/CFLAGS diff --git a/testcases/open_posix_testsuite/CFLAGS b/testcases/open_posix_testsuite/CFLAGS new file mode 100644 index 0000000..27b85d4 --- /dev/null +++ b/testcases/open_posix_testsuite/CFLAGS @@ -0,0 +1,3 @@ +# add -std=c99, -std=gnu99 if compiler supports it (gcc-2.95.3 does not). +# Add appropriate POSIX support as well (needs fixing). +`$(CC) -std=c99 -S -o /dev/null -xc /dev/null >/dev/null 2>&1 && echo "-std=c99"` `$(CC) -std=gnu99 -S -o /dev/null -xc /dev/null >/dev/null 2>&1 && echo "-std=gnu99"` -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 diff --git a/testcases/open_posix_testsuite/Makefile b/testcases/open_posix_testsuite/Makefile index 24e3d9b..8c30a98 100644 --- a/testcases/open_posix_testsuite/Makefile +++ b/testcases/open_posix_testsuite/Makefile @@ -26,13 +26,10 @@ 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 - # Force to -j1 so the output in the logfile won't be wonky. -MAKE+= -j1 LOGFILE=`if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ +MAKE+= -j1 "CFLAGS=$(CFLAGS)" "LDFLAGS=$(LDFLAGS)" +MAKE+= "LDLIBS=$(LDLIBS)" +MAKE+= LOGFILE=`if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ #LDFLAGS+= #LDLIBS+= -lpthread -lrt -lm diff --git a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh index b194044..8f9cc59 100755 --- a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh +++ b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh @@ -87,6 +87,7 @@ srcdir= \$(top_srcdir)/\$(subdir) EXEC_PREFIX= $EXEC_PREFIX INSTALL_DIR= \$(DESTDIR)/\$(EXEC_PREFIX)/\$(subdir) +LOGFILE?= logfile # Build variables CFLAGS+= -I\$(top_srcdir)/include @@ -96,6 +97,11 @@ CFLAGS+= -I\$(srcdir) EOF + # Include top-level definitions + cat >> "$makefile.1" <<EOF +CFLAGS+= `grep -v '^#' 2>/dev/null CFLAGS` +EOF + for var in CFLAGS LDFLAGS LDLIBS; do if [ -f "$prereq_cache_dir/$var" ]; then hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-04 20:35:28
|
The branch, pu, has been updated via 69a66f173dc5e1cee6ff512947a1dbc4521245ce (commit) from 99602c3e4b4d6de4c85c7ffaff206116c59480ce (commit) - Log ----------------------------------------------------------------- commit 69a66f173dc5e1cee6ff512947a1dbc4521245ce Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 13:32:33 2010 -0700 Properly categorize all remaining tests. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: .../signal_h/{1-1.c => 1-1-buildonly.c} | 0 .../signal_h/{14-1.c => 14-1-buildonly.c} | 0 .../signal_h/{15-1.c => 15-1-buildonly.c} | 0 .../signal_h/{16-1.c => 16-1-buildonly.c} | 0 .../signal_h/{17-1.c => 17-1-buildonly.c} | 0 .../signal_h/{18-1.c => 18-1-buildonly.c} | 0 .../signal_h/{2-1.c => 2-1-buildonly.c} | 0 .../signal_h/{2-2.c => 2-2-buildonly.c} | 0 .../signal_h/{2-3.c => 2-3-buildonly.c} | 0 .../signal_h/{2-4.c => 2-4-buildonly.c} | 0 .../signal_h/{20-1.c => 20-1-buildonly.c} | 0 .../signal_h/{21-1.c => 21-1-buildonly.c} | 0 .../signal_h/{22-1.c => 22-1-buildonly.c} | 0 .../signal_h/{22-10.c => 22-10-buildonly.c} | 0 .../signal_h/{22-11.c => 22-11-buildonly.c} | 0 .../signal_h/{22-12.c => 22-12-buildonly.c} | 0 .../signal_h/{22-13.c => 22-13-buildonly.c} | 0 .../signal_h/{22-14.c => 22-14-buildonly.c} | 0 .../signal_h/{22-15.c => 22-15-buildonly.c} | 0 .../signal_h/{22-16.c => 22-16-buildonly.c} | 0 .../signal_h/{22-17.c => 22-17-buildonly.c} | 0 .../signal_h/{22-18.c => 22-18-buildonly.c} | 0 .../signal_h/{22-19.c => 22-19-buildonly.c} | 0 .../signal_h/{22-2.c => 22-2-buildonly.c} | 0 .../signal_h/{22-20.c => 22-20-buildonly.c} | 0 .../signal_h/{22-21.c => 22-21-buildonly.c} | 0 .../signal_h/{22-22.c => 22-22-buildonly.c} | 0 .../signal_h/{22-23.c => 22-23-buildonly.c} | 0 .../signal_h/{22-24.c => 22-24-buildonly.c} | 0 .../signal_h/{22-25.c => 22-25-buildonly.c} | 0 .../signal_h/{22-26.c => 22-26-buildonly.c} | 0 .../signal_h/{22-27.c => 22-27-buildonly.c} | 0 .../signal_h/{22-28.c => 22-28-buildonly.c} | 0 .../signal_h/{22-29.c => 22-29-buildonly.c} | 0 .../signal_h/{22-3.c => 22-3-buildonly.c} | 0 .../signal_h/{22-30.c => 22-30-buildonly.c} | 0 .../signal_h/{22-31.c => 22-31-buildonly.c} | 0 .../signal_h/{22-32.c => 22-32-buildonly.c} | 0 .../signal_h/{22-33.c => 22-33-buildonly.c} | 0 .../signal_h/{22-34.c => 22-34-buildonly.c} | 0 .../signal_h/{22-35.c => 22-35-buildonly.c} | 0 .../signal_h/{22-36.c => 22-36-buildonly.c} | 0 .../signal_h/{22-37.c => 22-37-buildonly.c} | 0 .../signal_h/{22-38.c => 22-38-buildonly.c} | 0 .../signal_h/{22-39.c => 22-39-buildonly.c} | 0 .../signal_h/{22-4.c => 22-4-buildonly.c} | 0 .../signal_h/{22-40.c => 22-40-buildonly.c} | 0 .../signal_h/{22-5.c => 22-5-buildonly.c} | 0 .../signal_h/{22-6.c => 22-6-buildonly.c} | 0 .../signal_h/{22-7.c => 22-7-buildonly.c} | 0 .../signal_h/{22-8.c => 22-8-buildonly.c} | 0 .../signal_h/{22-9.c => 22-9-buildonly.c} | 0 .../signal_h/{24-1.c => 24-1-buildonly.c} | 0 .../signal_h/{25-1.c => 25-1-buildonly.c} | 0 .../signal_h/{27-1.c => 27-1-buildonly.c} | 0 .../signal_h/{28-1.c => 28-1-buildonly.c} | 0 .../signal_h/{29-1.c => 29-1-buildonly.c} | 0 .../signal_h/{3-1.c => 3-1-buildonly.c} | 0 .../signal_h/{30-1.c => 30-1-buildonly.c} | 0 .../signal_h/{31-1.c => 31-1-buildonly.c} | 0 .../signal_h/{32-1.c => 32-1-buildonly.c} | 0 .../signal_h/{33-1.c => 33-1-buildonly.c} | 0 .../signal_h/{34-1.c => 34-1-buildonly.c} | 0 .../signal_h/{35-1.c => 35-1-buildonly.c} | 0 .../signal_h/{36-1.c => 36-1-buildonly.c} | 0 .../signal_h/{37-1.c => 37-1-buildonly.c} | 0 .../signal_h/{38-1.c => 38-1-buildonly.c} | 0 .../signal_h/{39-1.c => 39-1-buildonly.c} | 0 .../signal_h/{4-1.c => 4-1-buildonly.c} | 0 .../signal_h/{40-1.c => 40-1-buildonly.c} | 0 .../signal_h/{41-1.c => 41-1-buildonly.c} | 0 .../signal_h/{42-1.c => 42-1-buildonly.c} | 0 .../signal_h/{43-1.c => 43-1-buildonly.c} | 0 .../signal_h/{44-1.c => 44-1-buildonly.c} | 0 .../signal_h/{45-1.c => 45-1-buildonly.c} | 0 .../signal_h/{46-1.c => 46-1-buildonly.c} | 0 .../signal_h/{47-1.c => 47-1-buildonly.c} | 0 .../signal_h/{48-1.c => 48-1-buildonly.c} | 0 .../signal_h/{49-1.c => 49-1-buildonly.c} | 0 .../signal_h/{5-1.c => 5-1-buildonly.c} | 0 .../signal_h/{50-1.c => 50-1-buildonly.c} | 0 .../sys/mman_h/{1-1.c => 1-1-buildonly.c} | 0 .../sys/mman_h/{10-1.c => 10-1-buildonly.c} | 0 .../sys/mman_h/{11-1.c => 11-1-buildonly.c} | 0 .../sys/mman_h/{12-1.c => 12-1-buildonly.c} | 0 .../sys/mman_h/{13-1.c => 13-1-buildonly.c} | 0 .../sys/mman_h/{14-1.c => 14-1-buildonly.c} | 0 .../sys/mman_h/{15-1.c => 15-1-buildonly.c} | 0 .../sys/mman_h/{16-1.c => 16-1-buildonly.c} | 0 .../sys/mman_h/{17-1.c => 17-1-buildonly.c} | 0 .../sys/mman_h/{18-1.c => 18-1-buildonly.c} | 0 .../sys/mman_h/{19-1.c => 19-1-buildonly.c} | 0 .../sys/mman_h/{2-1.c => 2-1-buildonly.c} | 0 .../sys/mman_h/{2-2.c => 2-2-buildonly.c} | 0 .../sys/mman_h/{2-3.c => 2-3-buildonly.c} | 0 .../sys/mman_h/{2-4.c => 2-4-buildonly.c} | 0 .../sys/mman_h/{20-1.c => 20-1-buildonly.c} | 0 .../sys/mman_h/{21-1.c => 21-1-buildonly.c} | 0 .../sys/mman_h/{22-1.c => 22-1-buildonly.c} | 0 .../sys/mman_h/{23-1.c => 23-1-buildonly.c} | 0 .../sys/mman_h/{24-1.c => 24-1-buildonly.c} | 0 .../sys/mman_h/{3-1.c => 3-1-buildonly.c} | 0 .../sys/mman_h/{3-2.c => 3-2-buildonly.c} | 0 .../sys/mman_h/{3-3.c => 3-3-buildonly.c} | 0 .../sys/mman_h/{4-1.c => 4-1-buildonly.c} | 0 .../sys/mman_h/{4-2.c => 4-2-buildonly.c} | 0 .../sys/mman_h/{4-3.c => 4-3-buildonly.c} | 0 .../sys/mman_h/{5-1.c => 5-1-buildonly.c} | 0 .../sys/mman_h/{5-2.c => 5-2-buildonly.c} | 0 .../sys/mman_h/{6-1.c => 6-1-buildonly.c} | 0 .../sys/mman_h/{7-1.c => 7-1-buildonly.c} | 0 .../sys/mman_h/{7-2.c => 7-2-buildonly.c} | 0 .../sys/mman_h/{7-3.c => 7-3-buildonly.c} | 0 .../sys/mman_h/{7-4.c => 7-4-buildonly.c} | 0 .../sys/mman_h/{7-5.c => 7-5-buildonly.c} | 0 .../sys/mman_h/{8-1.c => 8-1-buildonly.c} | 0 .../sys/mman_h/{8-2.c => 8-2-buildonly.c} | 0 .../sys/mman_h/{8-3.c => 8-3-buildonly.c} | 0 .../sys/mman_h/{9-1.c => 9-1-buildonly.c} | 0 .../sys/mman_h/{9-2.c => 9-2-buildonly.c} | 0 .../sys/mman_h/{9-3.c => 9-3-buildonly.c} | 0 .../sys/shm_h/{1-1.c => 1-1-buildonly.c} | 0 .../sys/shm_h/{10-1.c => 10-1-buildonly.c} | 0 .../sys/shm_h/{11-1.c => 11-1-buildonly.c} | 0 .../sys/shm_h/{12-1.c => 12-1-buildonly.c} | 0 .../sys/shm_h/{12-2.c => 12-2-buildonly.c} | 0 .../sys/shm_h/{12-3.c => 12-3-buildonly.c} | 0 .../sys/shm_h/{2-1.c => 2-1-buildonly.c} | 0 .../sys/shm_h/{2-2.c => 2-2-buildonly.c} | 0 .../sys/shm_h/{3-1.c => 3-1-buildonly.c} | 0 .../sys/shm_h/{4-1.c => 4-1-buildonly.c} | 0 .../sys/shm_h/{5-1.c => 5-1-buildonly.c} | 0 .../sys/shm_h/{6-1.c => 6-1-buildonly.c} | 0 .../sys/shm_h/{7-1.c => 7-1-buildonly.c} | 0 .../sys/shm_h/{7-2.c => 7-2-buildonly.c} | 0 .../sys/shm_h/{7-3.c => 7-3-buildonly.c} | 0 .../sys/shm_h/{7-4.c => 7-4-buildonly.c} | 0 .../sys/shm_h/{8-1.c => 8-1-buildonly.c} | 0 .../sys/shm_h/{9-1.c => 9-1-buildonly.c} | 0 .../definitions/time_h/{1-1.c => 1-1-buildonly.c} | 0 .../time_h/{10-1.c => 10-1-buildonly.c} | 0 .../time_h/{11-1.c => 11-1-buildonly.c} | 0 .../time_h/{12-1.c => 12-1-buildonly.c} | 0 .../time_h/{13-1.c => 13-1-buildonly.c} | 0 .../time_h/{14-1.c => 14-1-buildonly.c} | 0 .../time_h/{15-1.c => 15-1-buildonly.c} | 0 .../time_h/{16-1.c => 16-1-buildonly.c} | 0 .../time_h/{17-1.c => 17-1-buildonly.c} | 0 .../time_h/{18-1.c => 18-1-buildonly.c} | 0 .../time_h/{19-1.c => 19-1-buildonly.c} | 0 .../definitions/time_h/{2-1.c => 2-1-buildonly.c} | 0 .../time_h/{20-1.c => 20-1-buildonly.c} | 0 .../time_h/{21-1.c => 21-1-buildonly.c} | 0 .../time_h/{22-1.c => 22-1-buildonly.c} | 0 .../time_h/{23-1.c => 23-1-buildonly.c} | 0 .../time_h/{24-1.c => 24-1-buildonly.c} | 0 .../time_h/{25-1.c => 25-1-buildonly.c} | 0 .../time_h/{26-1.c => 26-1-buildonly.c} | 0 .../time_h/{27-1.c => 27-1-buildonly.c} | 0 .../time_h/{28-1.c => 28-1-buildonly.c} | 0 .../time_h/{29-1.c => 29-1-buildonly.c} | 0 .../definitions/time_h/{3-1.c => 3-1-buildonly.c} | 0 .../definitions/time_h/{3-2.c => 3-2-buildonly.c} | 0 .../definitions/time_h/{3-3.c => 3-3-buildonly.c} | 0 .../definitions/time_h/{3-4.c => 3-4-buildonly.c} | 0 .../time_h/{30-1.c => 30-1-buildonly.c} | 0 .../time_h/{31-1.c => 31-1-buildonly.c} | 0 .../time_h/{32-1.c => 32-1-buildonly.c} | 0 .../time_h/{33-1.c => 33-1-buildonly.c} | 0 .../time_h/{34-1.c => 34-1-buildonly.c} | 0 .../time_h/{35-1.c => 35-1-buildonly.c} | 0 .../time_h/{35-2.c => 35-2-buildonly.c} | 0 .../time_h/{35-3.c => 35-3-buildonly.c} | 0 .../definitions/time_h/{4-1.c => 4-1-buildonly.c} | 0 .../definitions/time_h/{5-1.c => 5-1-buildonly.c} | 0 .../definitions/time_h/{6-1.c => 6-1-buildonly.c} | 0 .../definitions/time_h/{6-2.c => 6-2-buildonly.c} | 0 .../definitions/time_h/{6-3.c => 6-3-buildonly.c} | 0 .../definitions/time_h/{7-1.c => 7-1-buildonly.c} | 0 .../definitions/time_h/{7-2.c => 7-2-buildonly.c} | 0 .../definitions/time_h/{7-3.c => 7-3-buildonly.c} | 0 .../definitions/time_h/{7-4.c => 7-4-buildonly.c} | 0 .../definitions/time_h/{7-5.c => 7-5-buildonly.c} | 0 .../definitions/time_h/{8-1.c => 8-1-buildonly.c} | 0 .../definitions/time_h/{9-1.c => 9-1-buildonly.c} | 0 .../unistd_h/{1-1.c => 1-1-buildonly.c} | 0 .../unistd_h/{2-1.c => 2-1-buildonly.c} | 0 .../pthread_create/{15-1.c => 15-1-buildonly.c} | 0 .../pthread_once/{4-1.c => 4-1-buildonly.c} | 0 .../conformance/interfaces/sem_getvalue/coverage.c | 2 -- .../sigaddset/{1-core-buildonly.c => 1-core.c} | 0 .../interfaces/sigaltstack/{9-buildonly.c => 9.c} | 0 .../sigdelset/{1-core-buildonly.c => 1-core.c} | 0 .../sigdelset/{4-core-buildonly.c => 4-core.c} | 0 .../sighold/{3-core-buildonly.c => 3-core.c} | 0 .../sigignore/{5-core-buildonly.c => 5-core.c} | 0 .../sigismember/{5-core-buildonly.c => 5-core.c} | 0 .../sigprocmask/{17-core-buildonly.c => 17-core.c} | 0 198 files changed, 0 insertions(+), 2 deletions(-) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{1-1.c => 1-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{14-1.c => 14-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{15-1.c => 15-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{16-1.c => 16-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{17-1.c => 17-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{18-1.c => 18-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{2-1.c => 2-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{2-2.c => 2-2-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{2-3.c => 2-3-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{2-4.c => 2-4-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{20-1.c => 20-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{21-1.c => 21-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-1.c => 22-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-10.c => 22-10-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-11.c => 22-11-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-12.c => 22-12-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-13.c => 22-13-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-14.c => 22-14-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-15.c => 22-15-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-16.c => 22-16-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-17.c => 22-17-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-18.c => 22-18-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-19.c => 22-19-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-2.c => 22-2-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-20.c => 22-20-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-21.c => 22-21-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-22.c => 22-22-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-23.c => 22-23-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-24.c => 22-24-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-25.c => 22-25-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-26.c => 22-26-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-27.c => 22-27-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-28.c => 22-28-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-29.c => 22-29-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-3.c => 22-3-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-30.c => 22-30-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-31.c => 22-31-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-32.c => 22-32-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-33.c => 22-33-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-34.c => 22-34-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-35.c => 22-35-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-36.c => 22-36-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-37.c => 22-37-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-38.c => 22-38-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-39.c => 22-39-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-4.c => 22-4-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-40.c => 22-40-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-5.c => 22-5-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-6.c => 22-6-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-7.c => 22-7-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-8.c => 22-8-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-9.c => 22-9-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{24-1.c => 24-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{25-1.c => 25-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{27-1.c => 27-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{28-1.c => 28-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{29-1.c => 29-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{3-1.c => 3-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{30-1.c => 30-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{31-1.c => 31-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{32-1.c => 32-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{33-1.c => 33-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{34-1.c => 34-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{35-1.c => 35-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{36-1.c => 36-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{37-1.c => 37-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{38-1.c => 38-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{39-1.c => 39-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{4-1.c => 4-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{40-1.c => 40-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{41-1.c => 41-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{42-1.c => 42-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{43-1.c => 43-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{44-1.c => 44-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{45-1.c => 45-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{46-1.c => 46-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{47-1.c => 47-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{48-1.c => 48-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{49-1.c => 49-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{5-1.c => 5-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{50-1.c => 50-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{1-1.c => 1-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{10-1.c => 10-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{11-1.c => 11-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{12-1.c => 12-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{13-1.c => 13-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{14-1.c => 14-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{15-1.c => 15-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{16-1.c => 16-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{17-1.c => 17-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{18-1.c => 18-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{19-1.c => 19-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{2-1.c => 2-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{2-2.c => 2-2-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{2-3.c => 2-3-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{2-4.c => 2-4-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{20-1.c => 20-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{21-1.c => 21-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{22-1.c => 22-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{23-1.c => 23-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{24-1.c => 24-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{3-1.c => 3-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{3-2.c => 3-2-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{3-3.c => 3-3-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{4-1.c => 4-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{4-2.c => 4-2-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{4-3.c => 4-3-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{5-1.c => 5-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{5-2.c => 5-2-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{6-1.c => 6-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{7-1.c => 7-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{7-2.c => 7-2-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{7-3.c => 7-3-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{7-4.c => 7-4-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{7-5.c => 7-5-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{8-1.c => 8-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{8-2.c => 8-2-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{8-3.c => 8-3-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{9-1.c => 9-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{9-2.c => 9-2-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/{9-3.c => 9-3-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/{1-1.c => 1-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/{10-1.c => 10-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/{11-1.c => 11-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/{12-1.c => 12-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/{12-2.c => 12-2-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/{12-3.c => 12-3-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/{2-1.c => 2-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/{2-2.c => 2-2-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/{3-1.c => 3-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/{4-1.c => 4-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/{5-1.c => 5-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/{6-1.c => 6-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/{7-1.c => 7-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/{7-2.c => 7-2-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/{7-3.c => 7-3-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/{7-4.c => 7-4-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/{8-1.c => 8-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/{9-1.c => 9-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{1-1.c => 1-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{10-1.c => 10-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{11-1.c => 11-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{12-1.c => 12-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{13-1.c => 13-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{14-1.c => 14-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{15-1.c => 15-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{16-1.c => 16-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{17-1.c => 17-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{18-1.c => 18-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{19-1.c => 19-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{2-1.c => 2-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{20-1.c => 20-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{21-1.c => 21-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{22-1.c => 22-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{23-1.c => 23-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{24-1.c => 24-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{25-1.c => 25-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{26-1.c => 26-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{27-1.c => 27-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{28-1.c => 28-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{29-1.c => 29-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{3-1.c => 3-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{3-2.c => 3-2-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{3-3.c => 3-3-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{3-4.c => 3-4-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{30-1.c => 30-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{31-1.c => 31-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{32-1.c => 32-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{33-1.c => 33-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{34-1.c => 34-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{35-1.c => 35-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{35-2.c => 35-2-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{35-3.c => 35-3-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{4-1.c => 4-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{5-1.c => 5-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{6-1.c => 6-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{6-2.c => 6-2-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{6-3.c => 6-3-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{7-1.c => 7-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{7-2.c => 7-2-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{7-3.c => 7-3-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{7-4.c => 7-4-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{7-5.c => 7-5-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{8-1.c => 8-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/time_h/{9-1.c => 9-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/unistd_h/{1-1.c => 1-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/unistd_h/{2-1.c => 2-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/interfaces/pthread_create/{15-1.c => 15-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/interfaces/pthread_once/{4-1.c => 4-1-buildonly.c} (100%) delete mode 100644 testcases/open_posix_testsuite/conformance/interfaces/sem_getvalue/coverage.c rename testcases/open_posix_testsuite/conformance/interfaces/sigaddset/{1-core-buildonly.c => 1-core.c} (100%) rename testcases/open_posix_testsuite/conformance/interfaces/sigaltstack/{9-buildonly.c => 9.c} (100%) rename testcases/open_posix_testsuite/conformance/interfaces/sigdelset/{1-core-buildonly.c => 1-core.c} (100%) rename testcases/open_posix_testsuite/conformance/interfaces/sigdelset/{4-core-buildonly.c => 4-core.c} (100%) rename testcases/open_posix_testsuite/conformance/interfaces/sighold/{3-core-buildonly.c => 3-core.c} (100%) rename testcases/open_posix_testsuite/conformance/interfaces/sigignore/{5-core-buildonly.c => 5-core.c} (100%) rename testcases/open_posix_testsuite/conformance/interfaces/sigismember/{5-core-buildonly.c => 5-core.c} (100%) rename testcases/open_posix_testsuite/conformance/interfaces/sigprocmask/{17-core-buildonly.c => 17-core.c} (100%) diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/1-1.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/1-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/1-1.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/1-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/14-1.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/14-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/14-1.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/14-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/15-1.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/15-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/15-1.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/15-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/16-1.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/16-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/16-1.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/16-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/17-1.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/17-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/17-1.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/17-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/18-1.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/18-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/18-1.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/18-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/2-1.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/2-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/2-1.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/2-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/2-2.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/2-2-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/2-2.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/2-2-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/2-3.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/2-3-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/2-3.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/2-3-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/2-4.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/2-4-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/2-4.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/2-4-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/20-1.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/20-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/20-1.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/20-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/21-1.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/21-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/21-1.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/21-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-1.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-1.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-10.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-10-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-10.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-10-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-11.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-11-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-11.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-11-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-12.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-12-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-12.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-12-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-13.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-13-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-13.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-13-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-14.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-14-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-14.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-14-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-15.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-15-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-15.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-15-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-16.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-16-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-16.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-16-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-17.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-17-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-17.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-17-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-18.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-18-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-18.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-18-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-19.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-19-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-19.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-19-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-2.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-2-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-2.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-2-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-20.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-20-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-20.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-20-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-21.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-21-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-21.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-21-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-22.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-22-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-22.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-22-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-23.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-23-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-23.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-23-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-24.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-24-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-24.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-24-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-25.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-25-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-25.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-25-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-26.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-26-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-26.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-26-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-27.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-27-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-27.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-27-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-28.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-28-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-28.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-28-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-29.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-29-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-29.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-29-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-3.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-3-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-3.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-3-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-30.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-30-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-30.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-30-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-31.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-31-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-31.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-31-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-32.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-32-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-32.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-32-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-33.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-33-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-33.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-33-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-34.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-34-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-34.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-34-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-35.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-35-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-35.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-35-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-36.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-36-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-36.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-36-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-37.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-37-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-37.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-37-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-38.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-38-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-38.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-38-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-39.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-39-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-39.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-39-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-4.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-4-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-4.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-4-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-40.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-40-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-40.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-40-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-5.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-5-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-5.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-5-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-6.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-6-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-6.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-6-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-7.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-7-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-7.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-7-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-8.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-8-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-8.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-8-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-9.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/22-9-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/22-9.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/22-9-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/24-1.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/24-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/24-1.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/24-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/25-1.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/25-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/25-1.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/25-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/27-1.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/27-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/27-1.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/27-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/28-1.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/28-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/28-1.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/28-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/29-1.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/29-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/29-1.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/29-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/3-1.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/3-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/3-1.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/3-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/30-1.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/30-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/30-1.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/30-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/31-1.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/31-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/31-1.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/31-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/32-1.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/32-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/32-1.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/32-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/33-1.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/33-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/33-1.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/33-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/34-1.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/34-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/34-1.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/34-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/35-1.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/35-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/35-1.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/35-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/36-1.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/36-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/36-1.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/36-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/37-1.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/37-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/37-1.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/37-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/38-1.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/38-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/38-1.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/38-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/39-1.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/39-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/39-1.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/39-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/4-1.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/4-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/4-1.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/4-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/40-1.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/40-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/40-1.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/40-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/41-1.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/41-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/41-1.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/41-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/42-1.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/42-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/42-1.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/42-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/43-1.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/43-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/43-1.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/43-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/44-1.c b/testcases/open_posix_testsuite/conformance/definitions/signal_h/44-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/signal_h/44-1.c rename to testcases/open_posix_testsuite/conformance/definitions/signal_h/44-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/signal_h/45-1.c b/testcases/open_posix_testsuite/c... [truncated message content] |
From: Garrett C. <ris...@li...> - 2010-07-04 20:34:17
|
The branch, pu, has been updated via 99602c3e4b4d6de4c85c7ffaff206116c59480ce (commit) via 70c91766d2a044c1bb78584238e5224da33381f9 (commit) via 91f8b2ffe2984e032bb60ce39bb8b0405e19fcb9 (commit) via f7049d007a5595187c8b523ba2831232abbfeddd (commit) from 038138be7d47a1b38cf44baa7d30e8ed0c700d3e (commit) - Log ----------------------------------------------------------------- commit 99602c3e4b4d6de4c85c7ffaff206116c59480ce Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 13:31:35 2010 -0700 Prune away testfrmw.c until it's put in a library. Signed-off-by: Garrett Cooper <yan...@gm...> commit 70c91766d2a044c1bb78584238e5224da33381f9 Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 13:30:45 2010 -0700 Fix extension. Signed-off-by: Garrett Cooper <yan...@gm...> commit 91f8b2ffe2984e032bb60ce39bb8b0405e19fcb9 Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 13:20:22 2010 -0700 Correctly catagorize build tests. Signed-off-by: Garrett Cooper <yan...@gm...> commit f7049d007a5595187c8b523ba2831232abbfeddd Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 13:14:22 2010 -0700 Quiet down make operations; force compile to -j1. The -j1 requirement is necessary so it doesn't create a ton of truncated / incorrect noise in the log output. This might need to be tuned later once a better system of dealing with errors is properly devised. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: testcases/open_posix_testsuite/Makefile | 37 +++++++++++--------- .../open_posix_testsuite/conformance/Makefile | 4 +- .../pthread_h/{1-1.c => 1-1-buildonly.c} | 0 .../definitions/pthread_h/{10.c => 10-buildonly.c} | 0 .../pthread_h/{11-1.c => 11-1-buildonly.c} | 0 .../pthread_h/{12-1.c => 12-1-buildonly.c} | 0 .../pthread_h/{13-1.c => 13-1-buildonly.c} | 0 .../pthread_h/{14-1.c => 14-1-buildonly.c} | 0 .../pthread_h/{15-1.c => 15-1-buildonly.c} | 0 .../pthread_h/{16-1.c => 16-1-buildonly.c} | 0 .../pthread_h/{17-1.c => 17-1-buildonly.c} | 0 .../pthread_h/{18-1.c => 18-1-buildonly.c} | 0 .../pthread_h/{19-1.c => 19-1-buildonly.c} | 0 .../pthread_h/{2-1.c => 2-1-buildonly.c} | 0 .../pthread_h/{2-2.c => 2-2-buildonly.c} | 0 .../pthread_h/{20-1.c => 20-1-buildonly.c} | 0 .../pthread_h/{3-1.c => 3-1-buildonly.c} | 0 .../pthread_h/{3-10.c => 3-10-buildonly.c} | 0 .../pthread_h/{3-11.c => 3-11-buildonly.c} | 0 .../pthread_h/{3-12.c => 3-12-buildonly.c} | 0 .../pthread_h/{3-13.c => 3-13-buildonly.c} | 0 .../pthread_h/{3-2.c => 3-2-buildonly.c} | 0 .../pthread_h/{3-3.c => 3-3-buildonly.c} | 0 .../pthread_h/{3-4.c => 3-4-buildonly.c} | 0 .../pthread_h/{3-5.c => 3-5-buildonly.c} | 0 .../pthread_h/{3-6.c => 3-6-buildonly.c} | 0 .../pthread_h/{3-7.c => 3-7-buildonly.c} | 0 .../pthread_h/{3-8.c => 3-8-buildonly.c} | 0 .../pthread_h/{3-9.c => 3-9-buildonly.c} | 0 .../pthread_h/{4-1.c => 4-1-buildonly.c} | 0 .../pthread_h/{5-1.c => 5-1-buildonly.c} | 0 .../pthread_h/{6-1.c => 6-1-buildonly.c} | 0 .../pthread_h/{7-1.c => 7-1-buildonly.c} | 0 .../pthread_h/{8-1.c => 8-1-buildonly.c} | 0 .../pthread_h/{9-1.c => 9-1-buildonly.c} | 0 .../definitions/sched_h/{1-1.c => 1-1-buildonly.c} | 0 .../sched_h/{11-1.c => 11-1-buildonly.c} | 0 .../sched_h/{12-1.c => 12-1-buildonly.c} | 0 .../sched_h/{13-1.c => 13-1-buildonly.c} | 0 .../sched_h/{14-1.c => 14-1-buildonly.c} | 0 .../sched_h/{15-1.c => 15-1-buildonly.c} | 0 .../sched_h/{16-1.c => 16-1-buildonly.c} | 0 .../sched_h/{17-1.c => 17-1-buildonly.c} | 0 .../sched_h/{18-1.c => 18-1-buildonly.c} | 0 .../sched_h/{19-1.c => 19-1-buildonly.c} | 0 .../definitions/sched_h/{2-1.c => 2-1-buildonly.c} | 0 .../definitions/sched_h/{3-1.c => 3-1-buildonly.c} | 0 .../definitions/sched_h/{4-1.c => 4-1-buildonly.c} | 0 .../definitions/sched_h/{8-1.c => 8-1-buildonly.c} | 0 .../definitions/sched_h/{8-2.c => 8-2-buildonly.c} | 0 .../definitions/sched_h/{8-3.c => 8-3-buildonly.c} | 0 .../definitions/sched_h/{8-4.c => 8-4-buildonly.c} | 0 .../interfaces/pthread_create/testfrmw.c | 4 ++- .../sem_getvalue/{coverage.c => coverage.txt} | 0 .../conformance/interfaces/sigaddset/4-1.sh | 2 +- .../conformance/interfaces/sigaddset/4-2.sh | 2 +- .../conformance/interfaces/sigaddset/4-3.sh | 2 +- .../conformance/interfaces/sigaddset/4-4.sh | 2 +- .../conformance/interfaces/sigaddset/4-core.c | 4 +- testcases/open_posix_testsuite/functional/Makefile | 4 +- .../functional/threads/Makefile | 4 +- .../scripts/generate-makefiles.sh | 3 ++ testcases/open_posix_testsuite/scripts/locate-test | 5 ++- testcases/open_posix_testsuite/stress/Makefile | 2 +- 64 files changed, 43 insertions(+), 32 deletions(-) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{1-1.c => 1-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{10.c => 10-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{11-1.c => 11-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{12-1.c => 12-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{13-1.c => 13-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{14-1.c => 14-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{15-1.c => 15-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{16-1.c => 16-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{17-1.c => 17-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{18-1.c => 18-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{19-1.c => 19-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{2-1.c => 2-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{2-2.c => 2-2-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{20-1.c => 20-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-1.c => 3-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-10.c => 3-10-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-11.c => 3-11-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-12.c => 3-12-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-13.c => 3-13-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-2.c => 3-2-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-3.c => 3-3-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-4.c => 3-4-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-5.c => 3-5-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-6.c => 3-6-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-7.c => 3-7-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-8.c => 3-8-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-9.c => 3-9-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{4-1.c => 4-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{5-1.c => 5-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{6-1.c => 6-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{7-1.c => 7-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{8-1.c => 8-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{9-1.c => 9-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{1-1.c => 1-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{11-1.c => 11-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{12-1.c => 12-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{13-1.c => 13-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{14-1.c => 14-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{15-1.c => 15-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{16-1.c => 16-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{17-1.c => 17-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{18-1.c => 18-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{19-1.c => 19-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{2-1.c => 2-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{3-1.c => 3-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{4-1.c => 4-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{8-1.c => 8-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{8-2.c => 8-2-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{8-3.c => 8-3-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{8-4.c => 8-4-buildonly.c} (100%) copy testcases/open_posix_testsuite/conformance/interfaces/sem_getvalue/{coverage.c => coverage.txt} (100%) diff --git a/testcases/open_posix_testsuite/Makefile b/testcases/open_posix_testsuite/Makefile index b926df1..24e3d9b 100644 --- a/testcases/open_posix_testsuite/Makefile +++ b/testcases/open_posix_testsuite/Makefile @@ -31,6 +31,9 @@ CFLAGS+= `$(CC) -std=c99 -S -o /dev/null -xc /dev/null >/dev/null 2>&1 && echo 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 +# Force to -j1 so the output in the logfile won't be wonky. +MAKE+= -j1 LOGFILE=`if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ + #LDFLAGS+= #LDLIBS+= -lpthread -lrt -lm @@ -39,16 +42,16 @@ top_srcdir?= . all: conformance-all functional-all stress-all tools clean: - rm -f $(LOGFILE)* - for d in $(SUBDIRS) tools; do \ - $(MAKE) -C $$d clean >/dev/null; \ + @rm -f $(LOGFILE)* + @for dir in $(SUBDIRS) tools; do \ + $(MAKE) -C $$dir clean >/dev/null; \ done # Clean out all of the generated Makefiles; this is done this way to ensure # there won't be an argument overflow, and to remain POSIXly correct (POSIX # find(1) doesn't support -mindepth like BSD and GNU find do...). distclean-makefiles: - for dir in $(SUBDIRS); do \ + @for dir in $(SUBDIRS); do \ (cd $$dir && for subdir in */; do \ (cd $$subdir && find */ -name Makefile 2>/dev/null | xargs rm -f); \ done); \ @@ -64,30 +67,30 @@ $(CRITICAL_MAKEFILES): scripts/generate-makefiles.sh tools: @$(MAKE) -C tools all -tools/t0: $(srcdir)/tools/t0.c - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(srcdir)/$(@F) $(LDLIBS) - -#build/t0.val: build/t0 -# echo `./t0 0; echo $$?` > t0.val - # Test build and execution targets. conformance-all: $(CRITICAL_CONFORMANCE_MAKEFILE) - $(MAKE) -C conformance all + @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ + @$(MAKE) -C conformance all conformance-test: - $(MAKE) -C conformance all + @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ + @$(MAKE) -C conformance test functional-all: $(CRITICAL_FUNCTIONAL_MAKEFILE) - $(MAKE) -C functional all + @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ + @$(MAKE) -C functional all functional-test: - $(MAKE) -C functional test + @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ + @$(MAKE) -C functional test stress-all: $(CRITICAL_STRESS_MAKEFILE) - $(MAKE) -C stress all + @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ + @$(MAKE) -C stress all stress-test: - $(MAKE) -C stress test + @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ + @$(MAKE) -C stress test tests-pretty: - $(MAKE) all | column -t -s: + @$(MAKE) all | column -t -s: diff --git a/testcases/open_posix_testsuite/conformance/Makefile b/testcases/open_posix_testsuite/conformance/Makefile index 1b70252..e67c7cf 100644 --- a/testcases/open_posix_testsuite/conformance/Makefile +++ b/testcases/open_posix_testsuite/conformance/Makefile @@ -5,6 +5,6 @@ # all clean install test: - for dir in `ls -d */Makefile 2>/dev/null | sed -e 's,/Makefile$$,,g'`; do \ - $(MAKE) -C $$dir $@; \ + @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/conformance/definitions/pthread_h/1-1.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/1-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/1-1.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/1-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/10.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/10-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/10.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/10-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/11-1.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/11-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/11-1.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/11-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/12-1.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/12-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/12-1.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/12-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/13-1.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/13-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/13-1.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/13-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/14-1.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/14-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/14-1.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/14-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/15-1.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/15-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/15-1.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/15-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/16-1.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/16-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/16-1.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/16-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/17-1.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/17-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/17-1.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/17-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/18-1.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/18-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/18-1.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/18-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/19-1.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/19-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/19-1.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/19-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/2-1.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/2-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/2-1.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/2-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/2-2.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/2-2-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/2-2.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/2-2-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/20-1.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/20-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/20-1.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/20-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-1.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-1.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-10.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-10-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-10.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-10-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-11.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-11-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-11.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-11-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-12.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-12-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-12.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-12-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-13.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-13-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-13.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-13-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-2.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-2-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-2.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-2-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-3.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-3-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-3.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-3-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-4.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-4-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-4.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-4-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-5.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-5-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-5.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-5-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-6.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-6-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-6.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-6-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-7.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-7-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-7.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-7-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-8.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-8-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-8.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-8-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-9.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-9-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-9.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/3-9-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/4-1.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/4-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/4-1.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/4-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/5-1.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/5-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/5-1.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/5-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/6-1.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/6-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/6-1.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/6-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/7-1.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/7-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/7-1.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/7-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/8-1.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/8-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/8-1.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/8-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/9-1.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/9-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/pthread_h/9-1.c rename to testcases/open_posix_testsuite/conformance/definitions/pthread_h/9-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/sched_h/1-1.c b/testcases/open_posix_testsuite/conformance/definitions/sched_h/1-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/sched_h/1-1.c rename to testcases/open_posix_testsuite/conformance/definitions/sched_h/1-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/sched_h/11-1.c b/testcases/open_posix_testsuite/conformance/definitions/sched_h/11-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/sched_h/11-1.c rename to testcases/open_posix_testsuite/conformance/definitions/sched_h/11-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/sched_h/12-1.c b/testcases/open_posix_testsuite/conformance/definitions/sched_h/12-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/sched_h/12-1.c rename to testcases/open_posix_testsuite/conformance/definitions/sched_h/12-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/sched_h/13-1.c b/testcases/open_posix_testsuite/conformance/definitions/sched_h/13-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/sched_h/13-1.c rename to testcases/open_posix_testsuite/conformance/definitions/sched_h/13-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/sched_h/14-1.c b/testcases/open_posix_testsuite/conformance/definitions/sched_h/14-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/sched_h/14-1.c rename to testcases/open_posix_testsuite/conformance/definitions/sched_h/14-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/sched_h/15-1.c b/testcases/open_posix_testsuite/conformance/definitions/sched_h/15-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/sched_h/15-1.c rename to testcases/open_posix_testsuite/conformance/definitions/sched_h/15-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/sched_h/16-1.c b/testcases/open_posix_testsuite/conformance/definitions/sched_h/16-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/sched_h/16-1.c rename to testcases/open_posix_testsuite/conformance/definitions/sched_h/16-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/sched_h/17-1.c b/testcases/open_posix_testsuite/conformance/definitions/sched_h/17-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/sched_h/17-1.c rename to testcases/open_posix_testsuite/conformance/definitions/sched_h/17-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/sched_h/18-1.c b/testcases/open_posix_testsuite/conformance/definitions/sched_h/18-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/sched_h/18-1.c rename to testcases/open_posix_testsuite/conformance/definitions/sched_h/18-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/sched_h/19-1.c b/testcases/open_posix_testsuite/conformance/definitions/sched_h/19-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/sched_h/19-1.c rename to testcases/open_posix_testsuite/conformance/definitions/sched_h/19-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/sched_h/2-1.c b/testcases/open_posix_testsuite/conformance/definitions/sched_h/2-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/sched_h/2-1.c rename to testcases/open_posix_testsuite/conformance/definitions/sched_h/2-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/sched_h/3-1.c b/testcases/open_posix_testsuite/conformance/definitions/sched_h/3-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/sched_h/3-1.c rename to testcases/open_posix_testsuite/conformance/definitions/sched_h/3-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/sched_h/4-1.c b/testcases/open_posix_testsuite/conformance/definitions/sched_h/4-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/sched_h/4-1.c rename to testcases/open_posix_testsuite/conformance/definitions/sched_h/4-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/sched_h/8-1.c b/testcases/open_posix_testsuite/conformance/definitions/sched_h/8-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/sched_h/8-1.c rename to testcases/open_posix_testsuite/conformance/definitions/sched_h/8-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/sched_h/8-2.c b/testcases/open_posix_testsuite/conformance/definitions/sched_h/8-2-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/sched_h/8-2.c rename to testcases/open_posix_testsuite/conformance/definitions/sched_h/8-2-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/sched_h/8-3.c b/testcases/open_posix_testsuite/conformance/definitions/sched_h/8-3-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/sched_h/8-3.c rename to testcases/open_posix_testsuite/conformance/definitions/sched_h/8-3-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/sched_h/8-4.c b/testcases/open_posix_testsuite/conformance/definitions/sched_h/8-4-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/sched_h/8-4.c rename to testcases/open_posix_testsuite/conformance/definitions/sched_h/8-4-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/testfrmw.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/testfrmw.c index 38adaa8..49ac749 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/testfrmw.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/testfrmw.c @@ -27,8 +27,10 @@ * The are used to output informative text (as a printf). */ -#include <time.h> #include <sys/types.h> +#include <stdarg.h> +#include <stdio.h> +#include <time.h> /* We use a mutex to avoid conflicts in traces */ static pthread_mutex_t m_trace = PTHREAD_MUTEX_INITIALIZER; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sem_getvalue/coverage.c b/testcases/open_posix_testsuite/conformance/interfaces/sem_getvalue/coverage.txt similarity index 100% copy from testcases/open_posix_testsuite/conformance/interfaces/sem_getvalue/coverage.c copy to testcases/open_posix_testsuite/conformance/interfaces/sem_getvalue/coverage.txt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaddset/4-1.sh b/testcases/open_posix_testsuite/conformance/interfaces/sigaddset/4-1.sh index 0a91a60..cb29ca9 100755 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaddset/4-1.sh +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaddset/4-1.sh @@ -9,4 +9,4 @@ # Test various methods of adding invalid signals to sigaddset(). # -conformance/interfaces/sigaddset/4-core-buildonly.test 1 +conformance/interfaces/sigaddset/4-core.run-test 1 diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaddset/4-2.sh b/testcases/open_posix_testsuite/conformance/interfaces/sigaddset/4-2.sh index 1be5610..5ab480d 100755 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaddset/4-2.sh +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaddset/4-2.sh @@ -10,4 +10,4 @@ # Test various methods of adding invalid signals to sigaddset(). # -conformance/interfaces/sigaddset/4-core-buildonly.test 2 +conformance/interfaces/sigaddset/4-core.run-test 2 diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaddset/4-3.sh b/testcases/open_posix_testsuite/conformance/interfaces/sigaddset/4-3.sh index aca9df9..644512f 100755 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaddset/4-3.sh +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaddset/4-3.sh @@ -9,4 +9,4 @@ # Test various methods of adding invalid signals to sigaddset(). # -conformance/interfaces/sigaddset/4-core-buildonly.test 3 +conformance/interfaces/sigaddset/4-core.run-test 3 diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaddset/4-4.sh b/testcases/open_posix_testsuite/conformance/interfaces/sigaddset/4-4.sh index f178ef1..ca8523f 100755 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaddset/4-4.sh +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaddset/4-4.sh @@ -9,4 +9,4 @@ # Test various methods of adding invalid signals to sigaddset(). # -conformance/interfaces/sigaddset/4-core-buildonly.test 4 +conformance/interfaces/sigaddset/4-core.run-test 4 diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaddset/4-core.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaddset/4-core.c index 5a9243e..0c2b489 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaddset/4-core.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaddset/4-core.c @@ -13,9 +13,9 @@ 3) Verify that -1 is returned, the invalid signal is not a member of the signal set, and errno is set to indicate the error. */ -#include <stdio.h> -#include <signal.h> #include <errno.h> +#include <signal.h> +#include <stdio.h> #include <stdint.h> #include "posixtest.h" diff --git a/testcases/open_posix_testsuite/functional/Makefile b/testcases/open_posix_testsuite/functional/Makefile index 1b70252..e67c7cf 100644 --- a/testcases/open_posix_testsuite/functional/Makefile +++ b/testcases/open_posix_testsuite/functional/Makefile @@ -5,6 +5,6 @@ # all clean install test: - for dir in `ls -d */Makefile 2>/dev/null | sed -e 's,/Makefile$$,,g'`; do \ - $(MAKE) -C $$dir $@; \ + @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/Makefile b/testcases/open_posix_testsuite/functional/threads/Makefile index 1b70252..e67c7cf 100644 --- a/testcases/open_posix_testsuite/functional/threads/Makefile +++ b/testcases/open_posix_testsuite/functional/threads/Makefile @@ -5,6 +5,6 @@ # all clean install test: - for dir in `ls -d */Makefile 2>/dev/null | sed -e 's,/Makefile$$,,g'`; do \ - $(MAKE) -C $$dir $@; \ + @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/scripts/generate-makefiles.sh b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh index bd23d27..b194044 100755 --- a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh +++ b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh @@ -91,6 +91,9 @@ INSTALL_DIR= \$(DESTDIR)/\$(EXEC_PREFIX)/\$(subdir) # Build variables CFLAGS+= -I\$(top_srcdir)/include +# XXX: for testfrmw.c -- needs to be moved into a library. +CFLAGS+= -I\$(srcdir) + EOF for var in CFLAGS LDFLAGS LDLIBS; do diff --git a/testcases/open_posix_testsuite/scripts/locate-test b/testcases/open_posix_testsuite/scripts/locate-test index c5be6fe..ba3af22 100755 --- a/testcases/open_posix_testsuite/scripts/locate-test +++ b/testcases/open_posix_testsuite/scripts/locate-test @@ -87,6 +87,9 @@ runnable) # waltz down the tools directory and try and build t0 (which doesn't # make sense as it's a tool, not a test). Better criterion needs to # be established for this file. - find "$WHERE" -type f -name '*.c' -o -name '[0-9]*-[0-9]*.sh' | grep -v buildonly | grep -v '^./tools' + # XXX (garrcoop): remove all testfrmw files because there're actually + # used as includes in the make process; they really should be + # functions in a library. + find "$WHERE" -type f -name '*.c' -o -name '[0-9]*-[0-9]*.sh' | grep -v buildonly | grep -v '^./tools' | grep -v testfrmw ;; esac diff --git a/testcases/open_posix_testsuite/stress/Makefile b/testcases/open_posix_testsuite/stress/Makefile index 1b70252..5523b02 100644 --- a/testcases/open_posix_testsuite/stress/Makefile +++ b/testcases/open_posix_testsuite/stress/Makefile @@ -5,6 +5,6 @@ # all clean install test: - for dir in `ls -d */Makefile 2>/dev/null | sed -e 's,/Makefile$$,,g'`; do \ + @for dir in `ls -d */Makefile 2>/dev/null | sed -e 's,/Makefile$$,,g'`; do \ $(MAKE) -C $$dir $@; \ done hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-04 12:30:31
|
The branch, pu, has been updated via 038138be7d47a1b38cf44baa7d30e8ed0c700d3e (commit) via bb34ec782689243aeba8dca930c3a783cdf89bcf (commit) from 2d87d5da9dfcda98b5c5cd41d45b924910aad1bd (commit) - Log ----------------------------------------------------------------- commit 038138be7d47a1b38cf44baa7d30e8ed0c700d3e Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 05:24:20 2010 -0700 General purpose cleanup. */Makefile Fix the filenames for some testcases to make them buildonly instead of using the previous non-build filename. interfaces/pthread_create/testfrmw.c: fix the #include's so it compiles properly. Signed-off-by: Garrett Cooper <yan...@gm...> commit bb34ec782689243aeba8dca930c3a783cdf89bcf Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 05:03:32 2010 -0700 Improve output and notify of test naming issues. The output now better matches the previous code (but not exactly because I've simplified the problem into compile, instead of cc/ld failures for simplicity in the make rules). Test naming is wrong for a boatload of tests (some tests are buildonly, but it turns out they have a main so they can be run (and most of the case) the other way around. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: .../definitions/aio_h/{1-1.c => 1-1-buildonly.c} | 0 .../definitions/aio_h/{1-2.c => 1-2-buildonly.c} | 0 .../definitions/aio_h/{3-1.c => 3-1-buildonly.c} | 0 .../definitions/errno_h/{1-1.c => 1-1-buildonly.c} | 0 .../definitions/errno_h/{2-1.c => 2-1-buildonly.c} | 0 .../definitions/errno_h/{3-1.c => 3-1-buildonly.c} | 0 .../sigaddset/{4-core-buildonly.c => 4-core.c} | 0 .../scripts/generate-makefiles.sh | 39 ++++++++++++++++++-- 8 files changed, 36 insertions(+), 3 deletions(-) rename testcases/open_posix_testsuite/conformance/definitions/aio_h/{1-1.c => 1-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/aio_h/{1-2.c => 1-2-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/aio_h/{3-1.c => 3-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/errno_h/{1-1.c => 1-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/errno_h/{2-1.c => 2-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/errno_h/{3-1.c => 3-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/interfaces/sigaddset/{4-core-buildonly.c => 4-core.c} (100%) diff --git a/testcases/open_posix_testsuite/conformance/definitions/aio_h/1-1.c b/testcases/open_posix_testsuite/conformance/definitions/aio_h/1-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/aio_h/1-1.c rename to testcases/open_posix_testsuite/conformance/definitions/aio_h/1-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/aio_h/1-2.c b/testcases/open_posix_testsuite/conformance/definitions/aio_h/1-2-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/aio_h/1-2.c rename to testcases/open_posix_testsuite/conformance/definitions/aio_h/1-2-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/aio_h/3-1.c b/testcases/open_posix_testsuite/conformance/definitions/aio_h/3-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/aio_h/3-1.c rename to testcases/open_posix_testsuite/conformance/definitions/aio_h/3-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/errno_h/1-1.c b/testcases/open_posix_testsuite/conformance/definitions/errno_h/1-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/errno_h/1-1.c rename to testcases/open_posix_testsuite/conformance/definitions/errno_h/1-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/errno_h/2-1.c b/testcases/open_posix_testsuite/conformance/definitions/errno_h/2-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/errno_h/2-1.c rename to testcases/open_posix_testsuite/conformance/definitions/errno_h/2-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/definitions/errno_h/3-1.c b/testcases/open_posix_testsuite/conformance/definitions/errno_h/3-1-buildonly.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/definitions/errno_h/3-1.c rename to testcases/open_posix_testsuite/conformance/definitions/errno_h/3-1-buildonly.c diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaddset/4-core-buildonly.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaddset/4-core.c similarity index 100% rename from testcases/open_posix_testsuite/conformance/interfaces/sigaddset/4-core-buildonly.c rename to testcases/open_posix_testsuite/conformance/interfaces/sigaddset/4-core.c diff --git a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh index 80d2f25..bd23d27 100755 --- a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh +++ b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh @@ -81,7 +81,7 @@ generate_makefile() { # # Path variables. -top_srcdir?= $(echo "$(dirname "$filename")" | sed -E -e 's,[^/]+,\.\.,g') +top_srcdir?= $(echo "$prereq_cache_dir" | sed -E -e 's,[^/]+,\.\.,g') subdir= $prereq_cache_dir srcdir= \$(top_srcdir)/\$(subdir) @@ -93,6 +93,18 @@ CFLAGS+= -I\$(top_srcdir)/include EOF + for var in CFLAGS LDFLAGS LDLIBS; do + + if [ -f "$prereq_cache_dir/$var" ]; then + + cat >> "$makefile.1" <<EOF +$var+= `grep -v '^#' 2>/dev/null $prereq_cache_dir/$var` + +EOF + fi + + done + cat > "$makefile.3" <<EOF all: \$(MAKE_TARGETS) @@ -125,10 +137,31 @@ EOF # needs it. for prereq in ${make_target_prereq_cache}; do - c_file=$(echo "$prereq" | sed -e "s,\.$suffix,\.c,") + test_name=$(echo "$prereq" | sed -e "s,\.$suffix,,") + c_file="$test_name.c" + + case "$suffix" in + run-test) + grep -q 'main' "$prereq_cache_dir/$c_file" || echo >&2 "$prereq_cache_dir/$c_file should be test." + ;; + test) + grep -q 'main' "$prereq_cache_dir/$c_file" && echo >&2 "$prereq_cache_dir/$c_file should be run-test." + ;; + esac + + COMPILE_STR="\$(CC) $compiler_args \$(CFLAGS) \$(LDFLAGS) -o \$@ \$(srcdir)/$c_file \$(LDLIBS)" + cat >> "$makefile.4" <<EOF + $prereq: \$(srcdir)/$c_file - \$(CC) $compiler_args \$(CFLAGS) \$(LDFLAGS) -o \$@ \$(srcdir)/$c_file \$(LDLIBS) + @if $COMPILE_STR >logfile.\$\$\$\$ 2>&1; then \\ + echo "$prereq_cache_dir/$test_name compile PASSED"; \\ + echo "$prereq_cache_dir/$test_name compile PASSED" >> \$(LOGFILE); \\ + else \\ + echo "$prereq_cache_dir/$test_name compile FAILED"; \\ + (echo "$prereq_cache_dir/$test_name compile FAILED"; cat logfile.\$\$\$\$) >> \$(LOGFILE); \\ + fi; \\ + rm -f logfile.\$\$\$\$ EOF done hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-04 09:42:22
|
The branch, pu, has been updated via 2d87d5da9dfcda98b5c5cd41d45b924910aad1bd (commit) via a9b7de80f7d46e6091864c892cc6b385d435f3ca (commit) via 721ef9d8af62f8327a1075bc9de20c8a4cd88810 (commit) via 8c93e42ea3cf589bb663aa9dc78492f9d44f736b (commit) via 9be14150793e82064c4f9d791be322370573f314 (commit) from 7666e5a7215ea9c1f8934cb568b138553e14a80e (commit) - Log ----------------------------------------------------------------- commit 2d87d5da9dfcda98b5c5cd41d45b924910aad1bd Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 02:39:54 2010 -0700 Update clean because t0 has been moved to tools. Signed-off-by: Garrett Cooper <yan...@gm...> commit a9b7de80f7d46e6091864c892cc6b385d435f3ca Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 02:39:25 2010 -0700 Update clean because t0 has been moved to tools. Signed-off-by: Garrett Cooper <yan...@gm...> commit 721ef9d8af62f8327a1075bc9de20c8a4cd88810 Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 02:39:03 2010 -0700 Add cleanup for t0. Signed-off-by: Garrett Cooper <yan...@gm...> commit 8c93e42ea3cf589bb663aa9dc78492f9d44f736b Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 02:36:02 2010 -0700 Simplify search expressions further and fix. 1. Mode with --buildonly was accidentally the obsolete value. 2. Filter out noise with grep instead of find(1) directives. 3. Filter out tools/ files to avoid adding t0.c to the first Makefile generated. Needless to say, better criterion needs to be established for portable filtering of valid directories (basically 3+ levels deep). Signed-off-by: Garrett Cooper <yan...@gm...> commit 9be14150793e82064c4f9d791be322370573f314 Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 4 02:34:36 2010 -0700 Commit last bit of fixup in this script. 1. $makefile was being incorrectly set. 2. Depend on the sourcefile in the directory, not the sourcefile in the build directory. This will unbreak out-of-build-tree builds. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: testcases/open_posix_testsuite/Makefile | 4 +- .../scripts/generate-makefiles.sh | 7 +- testcases/open_posix_testsuite/scripts/locate-test | 12 ++- testcases/open_posix_testsuite/tools/Makefile | 17 ++++ testcases/open_posix_testsuite/tools/t0.c | 87 ++++++++++++++++++++ 5 files changed, 118 insertions(+), 9 deletions(-) create mode 100644 testcases/open_posix_testsuite/tools/Makefile create mode 100644 testcases/open_posix_testsuite/tools/t0.c diff --git a/testcases/open_posix_testsuite/Makefile b/testcases/open_posix_testsuite/Makefile index e849ecf..b926df1 100644 --- a/testcases/open_posix_testsuite/Makefile +++ b/testcases/open_posix_testsuite/Makefile @@ -39,8 +39,8 @@ top_srcdir?= . all: conformance-all functional-all stress-all tools clean: - rm -f $(LOGFILE)* t0 t0.val - for d in $(SUBDIRS); do \ + rm -f $(LOGFILE)* + for d in $(SUBDIRS) tools; do \ $(MAKE) -C $$d clean >/dev/null; \ done diff --git a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh index e4beda5..80d2f25 100755 --- a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh +++ b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh @@ -45,10 +45,10 @@ generate_makefile() { while read filename; do prereq_dir=$(dirname "$filename") - makefile="$prereq_dir/Makefile" # First run. if [ "$prereq_cache_dir" = "" ] ; then + makefile="$prereq_dir/Makefile" prereq_cache_dir="$prereq_dir" elif [ "$prereq_cache_dir" != "$prereq_dir" ]; then @@ -127,14 +127,15 @@ EOF c_file=$(echo "$prereq" | sed -e "s,\.$suffix,\.c,") cat >> "$makefile.4" <<EOF -$prereq: $c_file - \$(CC) $compiler_args \$(CFLAGS) \$(LDFLAGS) -o \$@ $c_file \$(LDLIBS) +$prereq: \$(srcdir)/$c_file + \$(CC) $compiler_args \$(CFLAGS) \$(LDFLAGS) -o \$@ \$(srcdir)/$c_file \$(LDLIBS) EOF done # Prep for the next round.. make_target_prereq_cache= + makefile="$prereq_dir/Makefile" prereq_cache= prereq_cache_dir="$prereq_dir" diff --git a/testcases/open_posix_testsuite/scripts/locate-test b/testcases/open_posix_testsuite/scripts/locate-test index b4065d8..c5be6fe 100755 --- a/testcases/open_posix_testsuite/scripts/locate-test +++ b/testcases/open_posix_testsuite/scripts/locate-test @@ -8,7 +8,7 @@ usage() { cat <<EOF -Usage: $(basename $0) [OPTIONs] DIRECTORY +Usage: $(basename "$0") [OPTIONs] DIRECTORY Lists the tests (source/binary) available from the DIRECTORY directory and down. @@ -43,7 +43,7 @@ while true do case "$1" in "--buildonly") - mode="buildable" + mode="buildonly" shift ;; "--runnable") @@ -80,9 +80,13 @@ fi case "$mode" in buildonly) - find "$WHERE" -type f -name "*-buildonly*.c" + find "$WHERE" -type f -name "*.c" | grep buildonly ;; runnable) - find "$WHERE" -type f \( -name '*.c' -a ! -name '*-buildonly*.c' \) -o -name '[0-9]*-[0-9]*.sh' + # XXX (garrcoop): the tools part is a hack to ensure that we don't + # waltz down the tools directory and try and build t0 (which doesn't + # make sense as it's a tool, not a test). Better criterion needs to + # be established for this file. + find "$WHERE" -type f -name '*.c' -o -name '[0-9]*-[0-9]*.sh' | grep -v buildonly | grep -v '^./tools' ;; esac diff --git a/testcases/open_posix_testsuite/tools/Makefile b/testcases/open_posix_testsuite/tools/Makefile new file mode 100644 index 0000000..127bfec --- /dev/null +++ b/testcases/open_posix_testsuite/tools/Makefile @@ -0,0 +1,17 @@ +# +# Read COPYING for licensing details. +# +# Garrett Cooper, June 2010 +# + +srcdir?= . + +clean: + rm -f t0 + +t0: $(srcdir)/t0.c + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS) + +#build/t0.val: build/t0 +# echo `./t0 0; echo $$?` > t0.val + diff --git a/testcases/open_posix_testsuite/tools/t0.c b/testcases/open_posix_testsuite/tools/t0.c new file mode 100644 index 0000000..89b47ff --- /dev/null +++ b/testcases/open_posix_testsuite/tools/t0.c @@ -0,0 +1,87 @@ +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + + + * This utility software allows to run any executable file with a timeout limit. + * The syntax is: + * $ ./t0 n exe arglist + * where n is the timeout duration in seconds, + * exe is the executable filename to run, + * arglist is the arguments to be passed to executable. + * + * The use of this utility is intended to be "transparent", which means + * everything is as if + * $ exe arglist + * had been called, and a call to "alarm(n)" had been added inside exe's main. + * + * SPECIAL CASE: + * $ ./t0 0 + * Here another arg is not required. This special case will return immediatly + * as if it has been timedout. This is usefull to check a timeout return code value. + * + */ + +/* This utility should compile on any POSIX-conformant implementation. */ +#define _POSIX_C_SOURCE 200112L + +#include <pthread.h> +#include <signal.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <unistd.h> + +int main (int argc, char * argv[]) +{ + int ret, timeout; + + /* Special case: t0 0 */ + if (argc == 2 && (strncmp(argv[1], "0", 1) == 0)) { + kill(getpid(), SIGALRM); + sleep(1); + return 1; + } + + /* General case */ + if (argc < 3) { + printf("\nUsage: \n"); + printf(" $ %s n exe arglist\n", argv[0]); + printf(" $ %s 0\n", argv[0]); + printf("\nWhere:\n"); + printf(" n is the timeout duration in seconds,\n"); + printf(" exe is the executable filename to run,\n"); + printf(" arglist is the arguments to be passed to executable.\n\n"); + printf(" The second use case will emulate an immediate timeout.\n\n"); + return 1; + } + + timeout = atoi(argv[1]); + if (timeout < 1) + { + fprintf(stderr, "Invalid timeout value \"%s\". Timeout must be a positive integer.\n", argv[1]); + return 1; + } + + /* Set the timeout */ + alarm(timeout); + + /* Execute the command */ + ret = execvp(argv[2], &argv[2]); + + /* Application was not launched */ + perror("Unable to run child application"); + return 1; +} hooks/post-receive -- ltp |
From: Subrata <ris...@li...> - 2010-07-03 18:45:54
|
The branch, master, has been updated via e3bc3758d3e4d17a0e04009ef873df53819b9ec6 (commit) from 9e365e8e209904086b18420438b4792851c219b8 (commit) - Log ----------------------------------------------------------------- commit e3bc3758d3e4d17a0e04009ef873df53819b9ec6 Author: Subrata Modak <sub...@su...> Date: Sat Jul 3 23:32:27 2010 +0530 [PATCH v4] Remove files which does not have a dmesg entry The recently introduced option: -K DMESG_LOG_DIR Log Kernel messages generated for each test cases inside this directory, when used will generate huge no. of files inside the DMESG_DIR. Many of them will be ZERO size as we do not expect KERNEL MESSAGE to be generated against all the LTP TESTS that we will run. It is better to prune them, and let only those files exist which will have real entries. The following patch fixes the same. Signed-off-by: Subrata Modak <su...@li...>, ----------------------------------------------------------------------- Summary of changes: runltp | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/runltp b/runltp index 7a8ac28..b385984 100755 --- a/runltp +++ b/runltp @@ -858,6 +858,21 @@ main() cd .. echo "LTP Version: $version_date" + # $DMESG_DIR is used to cache messages obtained from dmesg after a test run. + # Proactively reap all of the 0-byte files in $DMESG_DIR as they have zero value + # and only clutter up the filesystem. + + if [ $ALT_DMESG_OUT -eq 1 ] ; then + if ! find "$DMESG_DIR" -size 0 -exec rm {} + ; then + echo "cd to $DMESG_DIR failed: $?" + fi + if [ -n "$(ls "$DMESG_DIR")" ] ; then + echo "Kernel messages were generated for LTP tests $version_date" + else + echo "No Kernel messages were generated for LTP tests $version_date" + fi + fi + if [ "$ALT_HTML_OUT" -eq 1 ] ; then #User wants the HTML output to be created, it then needs to be generated export LTP_VERSION=$version_date export TEST_START_TIME=$test_start_time hooks/post-receive -- ltp |
From: Subrata <ris...@li...> - 2010-07-03 18:15:59
|
The branch, master, has been updated via 848f37617b3aee594408d399253d8e196095ca01 (commit) from e3bc3758d3e4d17a0e04009ef873df53819b9ec6 (commit) - Log ----------------------------------------------------------------- commit 848f37617b3aee594408d399253d8e196095ca01 Author: Subrata Modak <sub...@su...> Date: Sat Jul 3 23:45:03 2010 +0530 Changes till July 3rd 2010, but will be release as 20100630 ;-). Signed-of-by: Subrata Modak <su...@li...>, ----------------------------------------------------------------------- Summary of changes: ChangeLog | 422 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 422 insertions(+), 0 deletions(-) diff --git a/ChangeLog b/ChangeLog index dcba787..9b43401 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,425 @@ +LTP-20100630 + +commit e3bc3758d3e4d17a0e04009ef873df53819b9ec6 +Author: Subrata Modak <sub...@su...> +Date: Sat Jul 3 23:32:27 2010 +0530 + + [PATCH v4] Remove files which does not have a dmesg entry + + The recently introduced option: + + -K DMESG_LOG_DIR + Log Kernel messages generated for each test cases inside this directory, + + when used will generate huge no. of files inside the DMESG_DIR. Many of them will be ZERO size as we do not expect KERNEL MESSAGE to be generated against all the LTP TE + Signed-off-by: Subrata Modak <su...@li...>, + +commit 9e365e8e209904086b18420438b4792851c219b8 +Author: Subrata Modak <sub...@su...> +Date: Sat Jul 3 23:13:41 2010 +0530 + + semctl01 and shmctl01 will hang during uClinux test: ltp test case shmctl01 and semctl01 can not execute. When press ctrl and c, it can not exist. + -- + root:/> shmctl01 + + ^Cshmctl01 0 INFO : received unexpected signal 2 + ^Cshmctl01 0 INFO : received unexpected signal 2 + -- + The reason is the child will unlink the pipe if pipename isn't NULLï¼which may make the parent waitting forever. Signed-off-by: Bob Liu <ll...@gm...>. + +commit 65f7070cb3f67eba009e68413187727f508623e1 +Author: Subrata Modak <sub...@su...> +Date: Sat Jul 3 23:10:38 2010 +0530 + + From: gowrishankar <gow...@li...> + + In a scenario where a thread other than high priority noise thread is scheduled after the barrier, a priority inversion will not occur, defeating the purpose of test. W + Signed-off-by: Gowrishankar<gow...@in...> + Tested-by: Gowrishankar<gow...@in...> + Acked-by: Darren Hart <dv...@us...> + +commit 785ef40630157d66067b1577a238184e0170e383 +Author: Subrata Modak <sub...@su...> +Date: Sat Jul 3 23:10:14 2010 +0530 + + From: gowrishankar <gow...@li...> + + testpi-4 defines THREAD_STOP which is not used anywhere in the program. + + Signed-off-by: Gowrishankar <gow...@in...> + Tested-by: Gowrishankar <gow...@in...> + Acked-by: Darren Hart <dv...@us...> + +Author: Subrata Modak <sub...@su...> +Date: Sat Jul 3 23:09:55 2010 +0530 + + From: gowrishankar <gow...@li...> + + Instead of lock/unlock of mutex to burn cpu cycles, we can use busy_work_ms + from librttest which is more explicit (burn cycles, not provide some + synchronization). + + Also this patch removes the id increment since it is not used. + + Signed-off-by: Gowrishankar <gow...@in...> + Tested-by: Gowrishankar <gow...@in...> + Acked-by: Darren Hart <dv...@us...> + +commit a9e2238be689fd8e4d25bc7eefca1cb11535ce7a +Author: Subrata Modak <sub...@su...> +Date: Sat Jul 3 23:09:32 2010 +0530 + + From: gowrishankar <gow...@li...> + + Since main() sets the cpu affinity, it is not necessary for the + spawned threads to do so, as the threads inherit the cpu affinity. + + Signed-off-by: Gowrishankar <gow...@in...> + Tested-by: Gowrishankar <gow...@in...> + Acked-by: Darren Hart <dv...@us...> + +commit 5305c4a10cf26799c81e6f0362750988457d3002 +Author: Subrata Modak <sub...@su...> +Date: Sat Jul 3 23:09:02 2010 +0530 + + From: gowrishankar <gow...@li...> + + This patch adds the description to the test testpi-4. + Signed-off-by: Gowrishankar <gow...@in...> + Tested-by: Gowrishankar <gowrishankar.m@in.ibm. + +commit a21dab25b7ef183d049b31b0d3fed1d48c16dc2b +Author: Subrata Modak <sub...@su...> +Date: Sat Jul 3 23:06:38 2010 +0530 + + From: gowrishankar <gow...@li...> + + testpi-4 is initializing mutex step by step which can be done + by reusing the init_pi_mutex() funtion available in librttest. + + Signed-off-by: Gowrishankar <gow...@in...> + Tested-by: Gowrishankar <gow...@in...> + Acked-by: Darren Hart <dv...@us...> + +commit b4f57c7d26b58f3d80b46340f10a397d21957866 +Author: Subrata Modak <sub...@su...> +Date: Sat Jul 3 23:06:16 2010 +0530 + + From: gowrishankar <gow...@li...> + + This patch cleans up the testpi-4 so as to follow the + C coding style standards. + + Signed-off-by: Gowrishankar <gow...@in...> + Tested-by: Gowrishankar <gow...@in...> + Acked-by: Darren Hart <dv...@us...> + +commit 76a720a381f351b33eb203c7c519e6f44bbe7219 +Author: Subrata Modak <sub...@su...> +Date: Sat Jul 3 21:08:18 2010 +0530 + + While executing the ltp on an nfs root mounted system, I faced a problem with some of the ltp test cases. These tests either did not close their file descriptors or did + +commit 13adcb0c4496e75bdcdbc02410b46b9fbc6120a8 +Author: Subrata Modak <sub...@su...> +Date: Fri Jul 2 22:47:57 2010 +0530 + + ima_measure doesn't build correctly. It needs config.h to determine whether openssl headers are present, and verbose needs to be global. Broken by commit ef77253961f90 + Signed-off-by: Stephen D. Smalley <sd...@ty...>, + Acked-by: Garrett Cooper <yan...@gm...>, + +commit 04b500a71b8a410adf5b92978c9d93d659912c20 +Author: Subrata Modak <sub...@su...> +Date: Thu Jul 1 22:33:51 2010 +0530 + + fix hugetlb tests: I want to suggest a patch for hugetlb tests. There are "-c" options in this "${LTPROOT}/runtest/hugetlb" file: + ------------ + hugeshmat01 hugeshmat01 -i 5 + hugeshmat02 hugeshmat02 -i 5 + hugeshmat03 hugeshmat03 -i 5 + hugeshmctl01 hugeshmctl01 -i 5 -c 3 + hugeshmctl02 hugeshmctl02 -i 5 -c 3 + hugeshmctl03 hugeshmctl03 -i 5 -c 3 + hugeshmdt01 hugeshmdt01 -I 5 -c10 + hugeshmget01 hugeshmget01 -c 10 -i 10 + hugeshmget02 hugeshmget02 -c 10 -i 10 + hugeshmget03 hugeshmget03 -c 10 -i 10 + hugeshmget05 hugeshmget05 -c 10 -i 10 + ------------ + But I think that these "-c" options have not important meanings. I think that the test for several times may not be necessary. For example, the purpose of "hugeshmget02 + Signed-off-by: Tomonori Mitani <mi...@ry...>, + +commit 0591a5dcc4c5d8b1cb282e4afd163f70b62350ce +Author: Subrata Modak <sub...@su...> +Date: Thu Jul 1 22:29:20 2010 +0530 + + [PATCH] realtime: rearrange the pthread attr functions order in librttest, + From: gowrishankar <gow...@li...> + + In the recent pthread libraries, order of calling pthread_attr_setschedpolicy and pthread_attr_setschedparam plays important role in a way that, former should always be + Signed-off-by: Gowrishankar <gow...@in...>, + Tested-by: Gowrishankar <gow...@in...>, + Acked-by: Will Schmidt <wil...@vn...>, + Acked-by: Darren Hart <dv...@us...>, + +commit 66c15baaa8be08c5baae5a0c819df3b6a8c834dd +Author: Subrata Modak <sub...@su...> +Date: Thu Jul 1 22:27:54 2010 +0530 + + [PATCH] realtime: fix min and max calculations in matrix multiplication test. + From: gowrishankar <gow...@li...> + + In matrix multiplication test, the min and max calculations are done on stats_container_t data with its index field never set to the last element position. Due to this + Signed-off-by: Gowrishankar <gow...@in...>, + Tested-by: Gowrishankar <gow...@in...>, + Acked-by: Will Schmidt <wil...@vn...>, + Acked-by: Darren Hart <dv...@us...>, + +commit 95e8b61433efcefb83699aaf859e92ad2b576373 +Author: Subrata Modak <sub...@su...> +Date: Mon Jun 14 17:59:09 2010 +0530 + + Fix issue where growfiles tests still not creating temp files in directory specified by TMPDIR as expected. This is an updated patch which changes the arguments for gf1 + Scripts which use growfiles with command-line file names are not performing the tests in the expected target directory. When file names are provided on the growfiles co + + gf01 growfiles -B 800000 -W gf01 -b -e 1 -u -i 0 -L 20 -w -C 1 -l -I r -T 10 glseek20 glseek20.2 -d $TMPDIR + + The -d $TMPDIR construct is almost always used in the scripts to point to the filesystem under test. However, the presence of the glseek20 glseek20.2 command line param + + -f specifies the 'auto_file' which is the base file name (gf is used if it's missing) + -d specifies the 'auto_dir' to be used ('.' is used if it's missing) + -S specifies the number of 'auto seq' files to be used. These files are of the form: "%s/%s%d" using auto_dir, auto_file, file_number. + Signed-off-by: Henry Yei <hy...@mv...>, + +commit 73c785ff2eb296091d06d3b7184bddf9bec8ec7e +Author: Subrata Modak <sub...@su...> +Date: Mon Jun 14 17:56:43 2010 +0530 + + I want to suggest a patch for #2 test of "mail_tests.sh". The failure of #2 is as following: + ------------ + mail_tests::mail02 0 TINFO : Test #2: mail u...@bad-domain will result in failure + mail_tests::mail02 0 TINFO : Test #2: to deliver the mail. Mailer daemon should + mail_tests::mail02 0 TINFO : Test #2: report this failure. + mail_tests::mail02 2 TFAIL : Test #2: No new mail for root. Reason: No mail for root + ------------ + I use RHEL5.4, RHEL4.8 systems and x86, x86_64, ia64 architectures. "#2" test failed in all combinations. At "#2" test, there is "No mail for root" in "tst_mail.res" fi +: +commit 82d3ded3632c79c62e231f3f8d7a632ce3da4e40 +Author: Subrata Modak <sub...@su...> +Date: Mon Jun 14 17:54:59 2010 +0530 + + echo test is failing with the below errors as we didn't initialized the 'addrlen' parameter of getsockname. + Creating socket ..... + echoes 1 TBROK : getsockname call failed (pid=7086): Invalid argument + echo: Invalid argument + So, attached the patch which initializes the 'addrlen' parameter. Signed-off-by: Munipradeep Beerakam <mpr...@li...>. Please correct if anything is wrong + +commit a9ff0b53d9e45e89ea4ec794fc87bbf67620e2c4 +Author: Subrata Modak <sub...@su...> +Date: Mon Jun 14 17:52:10 2010 +0530 + + We need to add the below entry: + {"read", "/proc/powerpc/rtas/error_log", EINVAL}, + to the "Mapping known_issues[]" array, as the new kernels are having /proc/powerpc directory along with /proc/ppc64. Attached the patch to this mail. Signed-off-by: Mun + Please correct me if any thing is wrong. + +commit f2e36d93c856782c4292ad0c21729c35776c1e31 +Author: Subrata Modak <sub...@su...> +Date: Wed Jun 9 23:45:26 2010 +0530 + + TOMOYO Linux update. Update test programs for TOMOYO LSM module. This patch updates test programs for TOMOYO 2.3 which will be included into Linux kernel 2.6.36. Signed + +commit 7f20a3add6c7f2166dbab5a712713ae8b5943448 +Author: Subrata Modak <sub...@su...> +Date: Wed Jun 2 18:16:46 2010 +0530 + + Fix ext4_subdir_limit fix: We get the following error results since the if condition in ext4_subdir_limit_tset.sh does not work fine. The patch fixes this issue. + [root@bsd086 ltp]# ./runltp -f fs_ext4 + <snip> + Ext4 subdir limit test + ext4-subdir-limit 0 TINFO : Num of dirs to create: 65537, Dir name len: long name, mkdir: No space left on device + ext4-subdir-limit 2 TFAIL : failed to create directories - 19118 + <snip> + ext4-subdir-limit 0 TINFO : Num of dirs to create: 65537, Dir name len: long name, mkdir: No space left on device + ext4-subdir-limit 4 TFAIL : failed to create directories - 19592 + Signed-off-by: Akira Fujita <a-f...@rs...>, + +commit 76ec975d298e3890a4ab2f9471940e164de0c643 +Author: Subrata Modak <sub...@su...> +Date: Wed Jun 2 18:15:19 2010 +0530 + + Fix for UTIMENSAT test fails hugely: This patch installs the trap for cleanup_test which removes the sudoers file only if it was installed by utimensat script, and also + +commit 91f337f9ee05b028af8506c7e83dc1b8c23a3b32 +Author: Subrata Modak <sub...@su...> +Date: Fri May 28 12:57:36 2010 +0530 + fix io_xxxx Makefiles: + Makefiles for io_xxx syscall tests contains line: + LDFLAGS += $(AIO_LIBS) + Which leads to wrong order of flags passed to the linker and compilation failure on certain linux systems. Changing these lines to: + LDLIBS += $(AIO_LIBS) + Fixes this problem. Patch is attached. + Signed-off-by: Cyril Hrubis ch...@su... + +commit 6a19cb6ea8f0b160438288f87a96f57d8e63aad2 +Author: Subrata Modak <sub...@su...> +Date: Fri May 28 12:53:59 2010 +0530 + + It seems like file runtest/fs_perms_simple doesn't made it into ltp-dev git tree (also it seems to be included in the patch). + see: + http://ltp.git.sourceforge.net/git/gitweb.cgi?p=ltp/ltp-dev.git;a=commit;h=ca758b73afff8200df5e1a24e9abe8a6468c9e06 + -- + Cyril Hrubis + ch...@su... + +commit 4e94765d753c0ea91b4745ffac30df427a4d9202 +Author: Subrata Modak <sub...@su...> +Date: Fri May 28 12:50:38 2010 +0530 + + Timer related syscalls for LTP test: Signed-off-by: Suzuki K P <su...@in...>, + Fix timer_t argument for timer related direct syscalls. The tests timer_getoverrun and timer_gettime should be moved to testcases/kernel/timers directory. If that is do + /* Description */ + There is a mismatch in the "timer_t" type defined by the Linux kernel and the GNU Libc. + Linux kernel defines it as an int for all architectures. + include/linux/types.h : + typedef __kernel_timer_t timer_t; + arch/powerpc/include/asm/posix_types.h : + typedef int __kernel_timer_t; + Now, the glibc provides a wrapper to the timer related system calls. While providing the wrapper, Glibc stores some internal data associated with the timer. So it defin + /usr/include/time.h : + /* Timer ID returned by `timer_create'. */ + typedef __timer_t timer_t; + in /usr/include/bits/types.h : + /* Timer ID returned by `timer_create'. */ + __STD_TYPE __TIMER_T_TYPE __timer_t; + in /usr/include/bits/typesizes.h + So that leads to the definiton of timer_t as void* by glibc. And this cannot be changed. But the glibc uses the "proper" typed argument for the syscalls it issues by de + +commit 82f8e8fdfe892266d7346792b71783ac23bfa1a2 +Author: Subrata Modak <sub...@su...> +Date: Fri May 28 12:45:16 2010 +0530 + + Following set of patches applies functional changes in pi-tests for better reliability in recent kernels and their order is: + [PATCH 1/6] realtime: reuse init_pi_mutex from librttest + [PATCH 2/6] realtime: add test descriptions + [PATCH 3/6] realtime: threads need not set cpu affinity while main does + [PATCH 4/6] realtime: use busy_work_ms from librttest to burn cpu cycles + [PATCH 5/6] realtime: remove thread_stop which is not used anywhere + [PATCH 6/6] realtime: synchronization fixes for high priority noise thread + + All need to be applied in their order on top or code clean up patch series sent previously. + Signed-off-by: Gowrishankar <gow...@in...>, + Tested-by: Gowrishankar <gow...@in...>, + Acked-by: Darren Hart <dv...@us...>, + +commit e1c39ef4f1d61c05f176d063d1afa6f704bc6740 +Author: Subrata Modak <sub...@su...> +Date: Fri May 28 12:36:06 2010 +0530 + + realtime: code cleanup on pi-tests to adapt C coding standard: Following bulk of patches applies the coding style in pi-tests to follow the C coding standard. All are t + [PATCH 1/5] realtime: code cleanup on pi-test 0 + [PATCH 2/5] realtime: code cleanup on pi-test 1 + [PATCH 3/5] realtime: code cleanup on pi-test 2 + [PATCH 4/5] realtime: code cleanup on pi-test 5 + [PATCH 5/5] realtime: code cleanup on pi-test 6 + Signed-off-by: Gowrishankar <gow...@in...>, + Tested-by: Gowrishankar <gow...@in...>, + Acked-by: John Stultz <joh...@us...>, + Acked-by: Darren Hart <dv...@us...>, + +commit c81df6233bca8b3ad601a3a7dd6c02319a32a76b +Author: Subrata Modak <sub...@su...> +Date: Fri May 28 12:25:20 2010 +0530 + + Following patch adds "return NULL;" to the function returning void* in math float tests. This change silences compiler warnings. Signed-off-by: Cyril Hrubis chrubis@sus + +commit 4aafc2802f0c2c05e4891cea1f721f414b41ac67 +Author: Subrata Modak <sub...@su...> +Date: Fri May 28 12:22:02 2010 +0530 + + The mq_timedreceive01.c test defines _XOPEN_SOURCE 500 on the beginning but this causes missing prototypes for seteuid() and mq_timedreceive() as they need _XOPEN_SOURC + +commit e75668f99ade62e18e34891b2c522c8d97ee982b +Author: Subrata Modak <sub...@su...> +Date: Tue May 18 01:34:04 2010 +0530 + + ftruncate04.c: cleanup mandatory locking check. The attached patch tries to cleanup the `mandatory locking' check in the ftruncate04.c testcase. The currently test is m + +commit 6e9c735833c19ad5031a4116b2e74ee77ff53424 +Author: Subrata Modak <sub...@su...> +Date: Tue May 18 01:31:35 2010 +0530 + + New: open("a/", O_NOFOLLOW) fails with ELOOP if "a" is a symbolic link to a directory. Add O_NOFOLLOW open test with trailing slash. In a situation where symlink (say ' + +commit ca758b73afff8200df5e1a24e9abe8a6468c9e06 +Author: Subrata Modak <sub...@su...> +Date: Tue May 18 01:28:14 2010 +0530 + fix fs_perms tests. Signed-off-by: Cyril Hrubis <ch...@su...>. + +commit 440fa0f6d857d4a15802b5ecdfdf6057e59975bf +Author: Subrata Modak <sub...@su...> +Date: Wed May 12 22:07:14 2010 +0530 + + Add an Option '-K' to Create dmesg logs for each test: + Recently while running LTP , i found that the system had generated many kernel messages worth investigating. However, there was a loose gap to find out which test exact + 1) Absolute path(s) as specified by the user, else + 2) Inside $LTPROOT/output/ + Comments welcome. + Signed-off-by: Subrata Modak <su...@li...> + +commit bd9d440be1da8020c93ac92e497e3a16e66e9fa3 +Author: Subrata Modak <sub...@su...> +Date: Wed May 12 22:03:21 2010 +0530 + + Add an Option '-K' to Create dmesg logs for each test: + Recently while running LTP , i found that the system had generated many kernel messages worth investigating. However, there was a loose gap to find out which test exact + 1) Absolute path(s) as specified by the user, else + 2) Inside $LTPROOT/output/ + Comments welcome. + Signed-off-by: Subrata Modak <su...@li...>, + +commit 0ce709315c3f2493d8ff97d574641cb91f1b1fa6 +Author: Subrata Modak <sub...@su...> +Date: Sun May 9 19:44:04 2010 +0530 + + NetNS test fixes: By the way, these tests appear to start up sshd for no reason other than possibly checking that basic sockets work in the netns. Given the frailty and + NetNS test fixes (v2): + This patch fixes a couple of netns test issues that cause invalid failures relating to exiting with a status variable that doesn't exist. It also fixes an instance of + Changes in v2: + - Initialize status=0 at the top of child_1.sh to prevent overshadowing a (meaningless) sshd failure, + Signed-off-by: Dan Smith <da...@us...>, + Acked-by: Serge E. Hallyn <se...@us...>, + +commit 3aabc944423945e4857372fe726584f7889cbb8e +Author: Subrata Modak <sub...@su...> +Date: Fri May 7 14:28:18 2010 +0530 + + Most of these are belated cleanup after the move to using /opt/ltp. But come on, replacing 'return' with tst_exit(), are you just trying to mess with my head? + Changelog: + may 4: address Garrett's feedback + 1. single return 0 in print_caps.c + 2. use $TMP if defined for location of caps_fifo + 3. use tst_brkm in place of tst_resm. + may 5: address Garrett's comment: + don't add 1 to null pointer and then check for 1 + Signed-off-by: Serge E. Hallyn <se...@us...>, + Acked-by: Garrett Cooper <yan...@gm...>, +commit c98956ba8f40b4c9004ff5767db2b2d87ab46e41 +Author: Subrata Modak <sub...@su...> +Date: Fri May 7 14:21:00 2010 +0530 + + The MAX_CLOCKS supported by the kernel is 16. But the kernel may not have all the clock sources defined in the range 0-15. Hence, to test whether kernel returns error f + Signed-off-by: Suzuki K P <su...@in...>, + Acked-by: Garrett Cooper <yan...@gm...>, + +commit f0be8b0c4489defeb6eaf6715576524a48b8998a +Author: Subrata Modak <sub...@su...> +Date: Fri May 7 10:33:00 2010 +0530 + + We should to check the return value of trigger_eventfd_overflow() in overflow_poll_test(). + Signed-off-by: Shi Weihua <sh...@cn...>, + Acked-by: Garrett Cooper <yan...@gm...>, + LTP-20100430 Commit: 84f2e35f109a9fe6591af83be0ddbda4a5f7c78c Date: Thu, 29 Apr 2010 19:02:46 +0530 hooks/post-receive -- ltp |
From: Subrata <ris...@li...> - 2010-07-03 17:52:16
|
The branch, master, has been updated via 9e365e8e209904086b18420438b4792851c219b8 (commit) from 65f7070cb3f67eba009e68413187727f508623e1 (commit) - Log ----------------------------------------------------------------- commit 9e365e8e209904086b18420438b4792851c219b8 Author: Subrata Modak <sub...@su...> Date: Sat Jul 3 23:13:41 2010 +0530 semctl01 and shmctl01 will hang during uClinux test: ltp test case shmctl01 and semctl01 can not execute. When press ctrl and c, it can not exist. -- root:/> shmctl01 ^Cshmctl01 0 INFO : received unexpected signal 2 ^Cshmctl01 0 INFO : received unexpected signal 2 -- The reason is the child will unlink the pipe if pipename isn't NULLï¼which may make the parent waitting forever. Signed-off-by: Bob Liu <ll...@gm...>. ----------------------------------------------------------------------- Summary of changes: testcases/kernel/syscalls/ipc/semctl/semctl01.c | 4 ++++ testcases/kernel/syscalls/ipc/shmctl/shmctl01.c | 5 ++++- 2 files changed, 8 insertions(+), 1 deletions(-) diff --git a/testcases/kernel/syscalls/ipc/semctl/semctl01.c b/testcases/kernel/syscalls/ipc/semctl/semctl01.c index 7357ded..2bbc3db 100644 --- a/testcases/kernel/syscalls/ipc/semctl/semctl01.c +++ b/testcases/kernel/syscalls/ipc/semctl/semctl01.c @@ -383,7 +383,11 @@ void child_cnt() if (sync_pipe_notify(sync_pipes) == -1) tst_brkm(TBROK, cleanup, "sync_pipe_notify failed"); +#ifdef UCLINUX + if (sync_pipe_close(sync_pipes, NULL) == -1) +#else if (sync_pipe_close(sync_pipes, PIPE_NAME) == -1) +#endif tst_brkm(TBROK, cleanup, "sync_pipe_close failed"); sops.sem_num = SEM4; diff --git a/testcases/kernel/syscalls/ipc/shmctl/shmctl01.c b/testcases/kernel/syscalls/ipc/shmctl/shmctl01.c index a734e1e..3d1507a 100644 --- a/testcases/kernel/syscalls/ipc/shmctl/shmctl01.c +++ b/testcases/kernel/syscalls/ipc/shmctl/shmctl01.c @@ -321,8 +321,11 @@ void do_child() if (sync_pipe_notify(sync_pipes) == -1) tst_brkm(TBROK, cleanup, "sync_pipe_notify failed"); - +#ifdef UCLINUX + if (sync_pipe_close(sync_pipes, NULL) == -1) +#else if (sync_pipe_close(sync_pipes, PIPE_NAME) == -1) +#endif tst_brkm(TBROK, cleanup, "sync_pipe_close failed"); /* do an assignement for fun */ hooks/post-receive -- ltp |
From: Subrata <ris...@li...> - 2010-07-03 17:41:26
|
The branch, master, has been updated via 65f7070cb3f67eba009e68413187727f508623e1 (commit) via 785ef40630157d66067b1577a238184e0170e383 (commit) via bd2dce17303a69463e926bb5a6a955e7890f65f3 (commit) via a9e2238be689fd8e4d25bc7eefca1cb11535ce7a (commit) via 5305c4a10cf26799c81e6f0362750988457d3002 (commit) via a21dab25b7ef183d049b31b0d3fed1d48c16dc2b (commit) via b4f57c7d26b58f3d80b46340f10a397d21957866 (commit) via 76a720a381f351b33eb203c7c519e6f44bbe7219 (commit) from 13adcb0c4496e75bdcdbc02410b46b9fbc6120a8 (commit) - Log ----------------------------------------------------------------- commit 65f7070cb3f67eba009e68413187727f508623e1 Author: Subrata Modak <sub...@su...> Date: Sat Jul 3 23:10:38 2010 +0530 From: gowrishankar <gow...@li...> In a scenario where a thread other than high priority noise thread is scheduled after the barrier, a priority inversion will not occur, defeating the purpose of test. We need to tightly synchronize the threads so that the noise thread always begins the test and gets preempted by the low prio thread through the PI logic. This change is applied on testpi-4. Signed-off-by: Gowrishankar<gow...@in...> Tested-by: Gowrishankar<gow...@in...> Acked-by: Darren Hart <dv...@us...> commit 785ef40630157d66067b1577a238184e0170e383 Author: Subrata Modak <sub...@su...> Date: Sat Jul 3 23:10:14 2010 +0530 From: gowrishankar <gow...@li...> testpi-4 defines THREAD_STOP which is not used anywhere in the program. Signed-off-by: Gowrishankar <gow...@in...> Tested-by: Gowrishankar <gow...@in...> Acked-by: Darren Hart <dv...@us...> commit bd2dce17303a69463e926bb5a6a955e7890f65f3 Author: Subrata Modak <sub...@su...> Date: Sat Jul 3 23:09:55 2010 +0530 From: gowrishankar <gow...@li...> Instead of lock/unlock of mutex to burn cpu cycles, we can use busy_work_ms from librttest which is more explicit (burn cycles, not provide some synchronization). Also this patch removes the id increment since it is not used. Signed-off-by: Gowrishankar <gow...@in...> Tested-by: Gowrishankar <gow...@in...> Acked-by: Darren Hart <dv...@us...> commit a9e2238be689fd8e4d25bc7eefca1cb11535ce7a Author: Subrata Modak <sub...@su...> Date: Sat Jul 3 23:09:32 2010 +0530 From: gowrishankar <gow...@li...> Since main() sets the cpu affinity, it is not necessary for the spawned threads to do so, as the threads inherit the cpu affinity. Signed-off-by: Gowrishankar <gow...@in...> Tested-by: Gowrishankar <gow...@in...> Acked-by: Darren Hart <dv...@us...> commit 5305c4a10cf26799c81e6f0362750988457d3002 Author: Subrata Modak <sub...@su...> Date: Sat Jul 3 23:09:02 2010 +0530 From: gowrishankar <gow...@li...> This patch adds the description to the test testpi-4. Signed-off-by: Gowrishankar <gow...@in...> Tested-by: Gowrishankar <gowrishankar.m@in.ibm. commit a21dab25b7ef183d049b31b0d3fed1d48c16dc2b Author: Subrata Modak <sub...@su...> Date: Sat Jul 3 23:06:38 2010 +0530 From: gowrishankar <gow...@li...> testpi-4 is initializing mutex step by step which can be done by reusing the init_pi_mutex() funtion available in librttest. Signed-off-by: Gowrishankar <gow...@in...> Tested-by: Gowrishankar <gow...@in...> Acked-by: Darren Hart <dv...@us...> commit b4f57c7d26b58f3d80b46340f10a397d21957866 Author: Subrata Modak <sub...@su...> Date: Sat Jul 3 23:06:16 2010 +0530 From: gowrishankar <gow...@li...> This patch cleans up the testpi-4 so as to follow the C coding style standards. Signed-off-by: Gowrishankar <gow...@in...> Tested-by: Gowrishankar <gow...@in...> Acked-by: Darren Hart <dv...@us...> commit 76a720a381f351b33eb203c7c519e6f44bbe7219 Author: Subrata Modak <sub...@su...> Date: Sat Jul 3 21:08:18 2010 +0530 While executing the ltp on an nfs root mounted system, I faced a problem with some of the ltp test cases. These tests either did not close their file descriptors or did no unmap the mmaped files. This results in a failures while trying to clean up the temporary directory of the testcase. I have fixed all of the above tests with the following patch. Signed-off-by: Darshak P Shah<dar...@li...>, ----------------------------------------------------------------------- Summary of changes: testcases/kernel/io/direct_io/diotest2.c | 1 + testcases/kernel/io/direct_io/diotest3.c | 1 + testcases/kernel/io/direct_io/diotest5.c | 1 + testcases/kernel/io/direct_io/diotest6.c | 1 + testcases/kernel/mem/mmapstress/mmapstress01.c | 7 +- testcases/kernel/mem/mmapstress/mmapstress02.c | 4 + testcases/kernel/mem/mmapstress/mmapstress05.c | 9 + testcases/kernel/mem/mmapstress/mmapstress10.c | 122 +++++++--- testcases/kernel/syscalls/open/open10.c | 5 + testcases/kernel/syscalls/ppoll/ppoll01.c | 4 +- testcases/kernel/syscalls/splice/splice02.c | 1 + testcases/kernel/syscalls/utimes/utimes01.c | 2 + testcases/realtime/func/pi-tests/testpi-4.c | 329 +++++++++++------------- 13 files changed, 275 insertions(+), 212 deletions(-) diff --git a/testcases/kernel/io/direct_io/diotest2.c b/testcases/kernel/io/direct_io/diotest2.c index fb87094..d2e63f2 100644 --- a/testcases/kernel/io/direct_io/diotest2.c +++ b/testcases/kernel/io/direct_io/diotest2.c @@ -275,6 +275,7 @@ static void setup(void) if ((fd1 = open(filename, O_DIRECT, 0600)) < 0) { tst_brkm(TCONF, cleanup, "O_DIRECT is not supported by this filesystem. %s", strerror(errno)); } + close(fd1); } diff --git a/testcases/kernel/io/direct_io/diotest3.c b/testcases/kernel/io/direct_io/diotest3.c index 5ef5d67..1f3e5c9 100644 --- a/testcases/kernel/io/direct_io/diotest3.c +++ b/testcases/kernel/io/direct_io/diotest3.c @@ -363,6 +363,7 @@ static void setup(void) if ((fd1 = open(filename, O_DIRECT, 0600)) < 0) { tst_brkm(TCONF, cleanup, "O_DIRECT is not supported by this filesystem. %s", strerror(errno)); } + close(fd1); } static void cleanup(void) diff --git a/testcases/kernel/io/direct_io/diotest5.c b/testcases/kernel/io/direct_io/diotest5.c index bda2291..6703d5d 100644 --- a/testcases/kernel/io/direct_io/diotest5.c +++ b/testcases/kernel/io/direct_io/diotest5.c @@ -309,6 +309,7 @@ static void setup(void) if ((fd1 = open(filename, O_DIRECT, 0600)) < 0) { tst_brkm(TCONF, cleanup, "O_DIRECT is not supported by this filesystem. %s", strerror(errno)); } + close(fd1); } static void cleanup(void) diff --git a/testcases/kernel/io/direct_io/diotest6.c b/testcases/kernel/io/direct_io/diotest6.c index 65718ca..9d68cb1 100644 --- a/testcases/kernel/io/direct_io/diotest6.c +++ b/testcases/kernel/io/direct_io/diotest6.c @@ -387,6 +387,7 @@ static void setup(void) if ((fd1 = open(filename, O_DIRECT, 0600)) < 0) { tst_brkm(TCONF, cleanup, "O_DIRECT is not supported by this filesystem. %s", strerror(errno)); } + close(fd1); } static void cleanup(void) diff --git a/testcases/kernel/mem/mmapstress/mmapstress01.c b/testcases/kernel/mem/mmapstress/mmapstress01.c index 0de81c1..8a6219f 100644 --- a/testcases/kernel/mem/mmapstress/mmapstress01.c +++ b/testcases/kernel/mem/mmapstress/mmapstress01.c @@ -590,7 +590,11 @@ child_mapper(char *file, unsigned procno, unsigned nprocs) anyfail(); } } - + if (munmap(maddr, mapsize) == -1) { + perror("munmap failed"); + local_flag = FAILED; + anyfail(); + } exit(0); } @@ -694,6 +698,7 @@ fileokay(char *file, uchar_t *expbuf) } } } + close(fd); return 1; } diff --git a/testcases/kernel/mem/mmapstress/mmapstress02.c b/testcases/kernel/mem/mmapstress/mmapstress02.c index f801a2e..8ed46f6 100644 --- a/testcases/kernel/mem/mmapstress/mmapstress02.c +++ b/testcases/kernel/mem/mmapstress/mmapstress02.c @@ -165,6 +165,10 @@ main(int argc, char *argv[]) { CLEANERROR("close failed"); anyfail(); } + if (munmap(mmapaddr, pagesize) == -1) { + CLEANERROR("munmap failed"); + anyfail(); + } if (unlink(tmpname) == -1) { ERROR("unlink failed"); anyfail(); diff --git a/testcases/kernel/mem/mmapstress/mmapstress05.c b/testcases/kernel/mem/mmapstress/mmapstress05.c index 4d25b8d..6a857e1 100644 --- a/testcases/kernel/mem/mmapstress/mmapstress05.c +++ b/testcases/kernel/mem/mmapstress/mmapstress05.c @@ -61,6 +61,15 @@ void ok_exit(); #define ERROR(M) (void)fprintf(stderr, "%s: errno = %d; " M "\n", \ progname, errno); #define CLEAN (void)close(fd); \ + if (munmap(mmapaddr+pagesize, pagesize) == -1) { \ + ERROR("munmap failed"); \ + } \ + if (munmap(mmapaddr, pagesize) == -1) { \ + ERROR("munmap failed"); \ + } \ + if (munmap(mmapaddr+2*pagesize, pagesize) == -1) { \ + ERROR("munmap failed"); \ + } \ if (unlink(tmpname)) { \ ERROR("couldn't clean up temp file"); \ } diff --git a/testcases/kernel/mem/mmapstress/mmapstress10.c b/testcases/kernel/mem/mmapstress/mmapstress10.c index 33c7dd8..ca5418e 100644 --- a/testcases/kernel/mem/mmapstress/mmapstress10.c +++ b/testcases/kernel/mem/mmapstress/mmapstress10.c @@ -154,6 +154,15 @@ unsigned do_offset = 0; unsigned pattern = 0; char filename[64]; +void clean_mapper(int sig); +void clean_writer(int sig); + +int fd_mapper = 0; +caddr_t maddr_mapper; +size_t mapsize_mapper; + +int fd_writer = 0; + int main(int argc, char *argv[]) { @@ -484,8 +493,8 @@ main(int argc, char *argv[]) cleanup: for (i = 0; i < nprocs; i++) - (void)kill(pidarray[i], SIGKILL); - (void)kill(wr_pid, SIGKILL); + (void)kill(pidarray[i], SIGUSR1); + (void)kill(wr_pid, SIGUSR1); while (wait(&wait_stat) != -1 || errno != ECHILD) continue; @@ -531,9 +540,7 @@ child_mapper(char *file, unsigned procno, unsigned nprocs) off_t offset; #endif /* LARGE_FILE */ size_t validsize; - size_t mapsize; - caddr_t maddr, paddr; - int fd; + caddr_t paddr; int pagesize = sysconf(_SC_PAGE_SIZE); unsigned randpage; unsigned int seed; @@ -542,25 +549,38 @@ child_mapper(char *file, unsigned procno, unsigned nprocs) unsigned mappages; unsigned mapflags; unsigned i; + struct sigaction sa_mapper; mapflags = MAP_SHARED; seed = initrand(); /* initialize random seed */ + sa_mapper.sa_handler = clean_mapper; + sa_mapper.sa_flags = 0; + if (sigemptyset(&sa_mapper.sa_mask)) { + perror("sigempty error"); + anyfail(); + } + + if (sigaction(SIGUSR1, &sa_mapper, 0) == -1) { + perror("sigaction error SIGUSR1"); + anyfail(); + } + #ifdef LARGE_FILE - if ((fd = open64(file, O_RDWR)) == -1) { + if ((fd_mapper = open64(file, O_RDWR)) == -1) { #else /* LARGE_FILE */ - if ((fd = open(file, O_RDWR)) == -1) { + if ((fd_mapper = open(file, O_RDWR)) == -1) { #endif /* LARGE_FILE */ perror("open error"); anyfail(); } #ifdef LARGE_FILE - if (fstat64(fd, &statbuf) == -1) { + if (fstat64(fd_mapper, &statbuf) == -1) { #else /* LARGE_FILE */ - if (fstat(fd, &statbuf) == -1) { + if (fstat(fd_mapper, &statbuf) == -1) { #endif /* LARGE_FILE */ perror("stat error"); anyfail(); @@ -571,29 +591,29 @@ child_mapper(char *file, unsigned procno, unsigned nprocs) fprintf(stderr, "size_t overflow when setting up map\n"); anyfail(); } - mapsize = (size_t)(statbuf.st_size - sparseoffset); - mappages = roundup(mapsize, pagesize) / pagesize; + mapsize_mapper = (size_t)(statbuf.st_size - sparseoffset); + mappages = roundup(mapsize_mapper, pagesize) / pagesize; offset = sparseoffset; if (do_offset) { int pageoffset = lrand48() % mappages; int byteoffset = pageoffset * pagesize; offset += byteoffset; - mapsize -= byteoffset; + mapsize_mapper -= byteoffset; mappages -= pageoffset; } #ifdef LARGE_FILE - if ((maddr = mmap64(0, mapsize, PROT_READ|PROT_WRITE, - mapflags, fd, offset)) == (caddr_t)-1) { + if ((maddr_mapper = mmap64(0, mapsize_mapper, PROT_READ|PROT_WRITE, + mapflags, fd_mapper, offset)) == (caddr_t)-1) { #else /* LARGE_FILE */ - if ((maddr = mmap(0, mapsize, PROT_READ|PROT_WRITE, - mapflags, fd, offset)) == (caddr_t)-1) { + if ((maddr_mapper = mmap(0, mapsize_mapper, PROT_READ|PROT_WRITE, + mapflags, fd_mapper, offset)) == (caddr_t)-1) { #endif /* LARGE_FILE */ perror("mmap error"); anyfail(); } - (void)close(fd); + (void)close(fd_mapper); nloops = (randloops) ? (lrand48() % MAXLOOPS) : MAXLOOPS; @@ -601,12 +621,12 @@ child_mapper(char *file, unsigned procno, unsigned nprocs) #ifdef LARGE_FILE (void)printf("child %d (pid %ld): seed %d, fsize %Ld, " "mapsize %d, off %Ld, loop %d\n", - procno, getpid(), seed, filesize, mapsize, + procno, getpid(), seed, filesize, mapsize_mapper, offset/pagesize, nloops); #else /* LARGE_FILE */ (void)printf("child %d (pid %d): seed %d, fsize %ld, " "mapsize %ld, off %ld, loop %d\n", - procno, getpid(), seed, filesize, (long)mapsize, + procno, getpid(), seed, filesize, (long)mapsize_mapper, offset/pagesize, nloops); #endif /* LARGE_FILE */ } @@ -616,13 +636,13 @@ child_mapper(char *file, unsigned procno, unsigned nprocs) */ for (loopcnt = 0; loopcnt < nloops; loopcnt++) { randpage = lrand48() % mappages; - paddr = maddr + (randpage * pagesize); /* page address */ + paddr = maddr_mapper + (randpage * pagesize); /* page address */ if (randpage < mappages - 1 - || !(mapsize % pagesize)) + || !(mapsize_mapper % pagesize)) validsize = pagesize; else - validsize = mapsize % pagesize; + validsize = mapsize_mapper % pagesize; /* * Because one child is mapping file in extend mode, @@ -652,14 +672,17 @@ child_mapper(char *file, unsigned procno, unsigned nprocs) * Exercise msync() as well! */ randpage = lrand48() % mappages; - paddr = maddr + (randpage * pagesize); /* page address */ + paddr = maddr_mapper + (randpage * pagesize); /* page address */ if (msync(paddr, (mappages - randpage)*pagesize, MS_SYNC) == -1) { perror("msync error"); anyfail(); } } - + if ( munmap(maddr_mapper,mapsize_mapper) == -1 ) { + perror("munmap failed"); + anyfail(); + } exit(0); } @@ -675,7 +698,20 @@ child_mapper(char *file, unsigned procno, unsigned nprocs) void child_writer(char *file, uchar_t *buf) /* buf already set up in main */ { - int fd; + struct sigaction sa_writer; + + sa_writer.sa_handler = clean_writer; + sa_writer.sa_flags = 0; + if (sigemptyset(&sa_writer.sa_mask)) { + perror("sigempty error"); + anyfail(); + } + + if (sigaction(SIGUSR1, &sa_writer, 0) == -1) { + perror("sigaction error SIGUSR1"); + anyfail(); + } + #ifdef LARGE_FILE struct stat64 statbuf; off64_t off; @@ -688,18 +724,18 @@ child_writer(char *file, uchar_t *buf) /* buf already set up in main */ int cnt; #ifdef LARGE_FILE - if ((fd = open64(file, O_RDWR)) == -1) { + if ((fd_writer = open64(file, O_RDWR)) == -1) { #else /* LARGE_FILE */ - if ((fd = open(file, O_RDWR)) == -1) { + if ((fd_writer = open(file, O_RDWR)) == -1) { #endif /* LARGE_FILE */ perror("open error"); anyfail(); } #ifdef LARGE_FILE - if ((off = lseek64(fd, 0, SEEK_END)) == -1) { + if ((off = lseek64(fd_writer, 0, SEEK_END)) == -1) { #else /* LARGE_FILE */ - if ((off = lseek(fd, 0, SEEK_END)) == -1) { + if ((off = lseek(fd_writer, 0, SEEK_END)) == -1) { #endif /* LARGE_FILE */ perror("lseek error"); anyfail(); @@ -708,9 +744,9 @@ child_writer(char *file, uchar_t *buf) /* buf already set up in main */ for (;;) { #ifdef LARGE_FILE - if (fstat64(fd, &statbuf) == -1) { + if (fstat64(fd_writer, &statbuf) == -1) { #else /* LARGE_FILE */ - if (fstat(fd, &statbuf) == -1) { + if (fstat(fd_writer, &statbuf) == -1) { #endif /* LARGE_FILE */ perror("fstat error"); anyfail(); @@ -734,7 +770,7 @@ child_writer(char *file, uchar_t *buf) /* buf already set up in main */ p = buf + (off % pagesize); - if ((cnt = write(fd, p, growsize)) != growsize) { + if ((cnt = write(fd_writer, p, growsize)) != growsize) { if (cnt == -1) perror("write error"); else @@ -747,12 +783,13 @@ child_writer(char *file, uchar_t *buf) /* buf already set up in main */ (void)sleep(sleeptime); if (dosync) { - if (fsync(fd) == -1) { + if (fsync(fd_writer) == -1) { perror("fsync error"); anyfail(); } } } + close(fd_writer); } @@ -814,6 +851,7 @@ fileokay(char *file, uchar_t *expbuf) cnt = read(fd, (char *)readbuf, pagesize); if (cnt == -1) { perror("read error"); + close(fd); return 0; } else if (cnt != pagesize) { /* @@ -822,6 +860,7 @@ fileokay(char *file, uchar_t *expbuf) if ((i * pagesize) + cnt != mapsize) { (void)fprintf(stderr, "read %d of %ld bytes\n", (i*pagesize)+cnt, (long)mapsize); + close(fd); return 0; } } @@ -841,6 +880,7 @@ fileokay(char *file, uchar_t *expbuf) (void)fprintf(stderr, ", pg %d off %d, " "(fsize %ld)\n", i, j, statbuf.st_size); #endif /* LARGE_FILE */ + close(fd); return 0; } } @@ -866,6 +906,21 @@ clean_up_file(int sig) exit(1); } +void clean_mapper(int sig) +{ + if (fd_mapper) + close(fd_mapper); + munmap(maddr_mapper,mapsize_mapper); + exit (0); +} + +void clean_writer(int sig) +{ + if (fd_writer) + close(fd_writer); + exit(0); +} + unsigned int initrand(void) { @@ -887,7 +942,6 @@ initrand(void) return (seed); } - /***** LTP Port *****/ void ok_exit() { diff --git a/testcases/kernel/syscalls/open/open10.c b/testcases/kernel/syscalls/open/open10.c index 48aca44..ac015ef 100644 --- a/testcases/kernel/syscalls/open/open10.c +++ b/testcases/kernel/syscalls/open/open10.c @@ -282,6 +282,7 @@ int main(int ac, char *av[]) tst_resm(TFAIL|TERRNO, "open(%s) failed", nosetgid_A); local_flag = FAILED; } + close(ret); if ((ret = stat(nosetgid_A, &buf)) < 0) { tst_resm(TFAIL|TERRNO, "stat(%s) failed", nosetgid_A); @@ -310,6 +311,7 @@ int main(int ac, char *av[]) tst_resm(TFAIL|TERRNO, "open(%s) failed", setgid_A); local_flag = FAILED; } + close(ret); if ((ret = stat(setgid_A, &buf)) < 0) { tst_resm(TFAIL|TERRNO, "stat(%s) failed", setgid_A); @@ -357,6 +359,7 @@ int main(int ac, char *av[]) tst_resm(TFAIL|TERRNO, "open(%s) failed", nosetgid_B); local_flag = FAILED; } + close(ret); if ((ret = stat(nosetgid_B, &buf)) < 0) { tst_resm(TFAIL|TERRNO, "stat(%s) failed", nosetgid_B); @@ -386,6 +389,7 @@ int main(int ac, char *av[]) tst_resm(TFAIL|TERRNO, "open(%s) failed", setgid_B); local_flag = FAILED; } + close(ret); if ((ret = stat(setgid_B, &buf)) < 0) { tst_resm(TFAIL|TERRNO, "stat(%s) failed", setgid_B); @@ -436,6 +440,7 @@ int main(int ac, char *av[]) tst_resm(TFAIL|TERRNO, "open(%s) failed", root_setgid_B); local_flag = FAILED; } + close(ret); if ((ret = stat(root_setgid_B, &buf)) < 0) { tst_resm(TFAIL|TERRNO, "stat(%s) failed", root_setgid_B); diff --git a/testcases/kernel/syscalls/ppoll/ppoll01.c b/testcases/kernel/syscalls/ppoll/ppoll01.c index a41a840..f192a4a 100644 --- a/testcases/kernel/syscalls/ppoll/ppoll01.c +++ b/testcases/kernel/syscalls/ppoll/ppoll01.c @@ -378,8 +378,10 @@ static int do_test(struct test_case *tc) { } result |= (sys_errno != tc->err) || !cmp_ok; PRINT_RESULT_CMP(sys_ret >= 0, tc->ret, tc->err, sys_ret, sys_errno, cmp_ok); - cleanup: if (fd >= 0) + cleanup: if (fd >= 0) { + close(fd); cleanup_file(fpath); + } sigemptyset(&sigmask); sigprocmask(SIG_SETMASK, &sigmask, NULL); diff --git a/testcases/kernel/syscalls/splice/splice02.c b/testcases/kernel/syscalls/splice/splice02.c index 3b3e4fd..b581a67 100644 --- a/testcases/kernel/syscalls/splice/splice02.c +++ b/testcases/kernel/syscalls/splice/splice02.c @@ -148,6 +148,7 @@ int main(int ac, char **av) { } else if (TEST_RETURN == 0){ tst_resm(TPASS, "splice() system call Passed"); + close(fd); cleanup(); tst_exit(); } diff --git a/testcases/kernel/syscalls/utimes/utimes01.c b/testcases/kernel/syscalls/utimes/utimes01.c index ae2fa2d..30f12c0 100644 --- a/testcases/kernel/syscalls/utimes/utimes01.c +++ b/testcases/kernel/syscalls/utimes/utimes01.c @@ -234,6 +234,8 @@ static int do_test(struct test_case *tc) TEST(rc = setup_file(TESTDIR, "test.file", fpath)); if (rc < 0) return 1; + /* The test just needs the file, so no need to keep it open. */ + close(rc); /* * Change effective user id diff --git a/testcases/realtime/func/pi-tests/testpi-4.c b/testcases/realtime/func/pi-tests/testpi-4.c index 1756588..63f8430 100644 --- a/testcases/realtime/func/pi-tests/testpi-4.c +++ b/testcases/realtime/func/pi-tests/testpi-4.c @@ -20,8 +20,8 @@ * testpi-4.c * * DESCRIPTION - * - * + * This testcase verifies that the SCHED_OTHER thread can preempt + * the SCHED_RR thread via priority inheritance. * * USAGE: * Use run_auto.sh script in current directory to build and run test. @@ -30,7 +30,9 @@ * * * HISTORY - * + * 2010-06-29 Thread synchronization changes by using + * conditional variables by Gowrishankar. + * by Gowrishankar <gow...@in...> * *****************************************************************************/ @@ -49,201 +51,176 @@ pthread_barrier_t barrier; void usage(void) { - rt_help(); - printf("testpi-4 specific options:\n"); + rt_help(); + printf("testpi-4 specific options:\n"); } int parse_args(int c, char *v) { - - int handled = 1; - switch (c) { - case 'h': - usage(); - exit(0); - default: - handled = 0; - break; - } - return handled; + int handled = 1; + switch (c) { + case 'h': + usage(); + exit(0); + default: + handled = 0; + break; + } + return handled; } int gettid(void) { - return syscall(__NR_gettid); + return syscall(__NR_gettid); } -typedef void* (*entrypoint_t)(void*); - -#define THREAD_STOP 1 - +typedef void *(*entrypoint_t)(void *); pthread_mutex_t *glob_mutex; +static pthread_mutex_t cond_mutex = PTHREAD_MUTEX_INITIALIZER; +static pthread_cond_t cond_var = PTHREAD_COND_INITIALIZER; -void* func_nonrt(void* arg) +void *func_nonrt(void *arg) { - struct thread* pthr = (struct thread* )arg; - int rc, i, j, tid = gettid(); - cpu_set_t mask; - CPU_ZERO(&mask); - CPU_SET(0, &mask); - - rc = sched_setaffinity(0, sizeof(mask), &mask); - if (rc < 0) { - printf("Thread %d: Can't set affinity: %d %s\n", tid, rc, strerror(rc)); - exit(-1); - } - - printf("Thread %d started running with priority %d\n", tid, pthr->priority); - pthread_mutex_lock(glob_mutex); - printf("Thread %d at start pthread pol %d pri %d - Got global lock\n", tid, pthr->policy, pthr->priority); - pthread_barrier_wait(&barrier); - - for (i=0;i<10000;i++) { - if (i%100 == 0) { - printf("Thread %d loop %d pthread pol %d pri %d\n", tid, i, pthr->policy, pthr->priority); - fflush(NULL); - } - pthr->id++; - for (j=0;j<5000;j++) { - pthread_mutex_lock(&(pthr->mutex)); - pthread_mutex_unlock(&(pthr->mutex)); - } - } - pthread_mutex_unlock(glob_mutex); - return NULL; + struct thread *pthr = (struct thread *)arg; + int i, tid = gettid(); + + printf("Thread %d started running with priority %d\n", tid, + pthr->priority); + pthread_mutex_lock(glob_mutex); + printf("Thread %d at start pthread pol %d pri %d - Got global lock\n", + tid, pthr->policy, pthr->priority); + + /* Wait for other RT threads to start up */ + pthread_barrier_wait(&barrier); + + /* Wait for the high priority noise thread to start and signal us */ + pthread_mutex_lock(&cond_mutex); + pthread_cond_wait(&cond_var, &cond_mutex); + pthread_mutex_unlock(&cond_mutex); + + for (i = 0; i < 10000; i++) { + if (i%100 == 0) { + printf("Thread %d loop %d pthread pol %d pri %d\n", + tid, i, pthr->policy, pthr->priority); + fflush(NULL); + } + busy_work_ms(1); + } + pthread_mutex_unlock(glob_mutex); + return NULL; } -void* func_rt(void* arg) +void *func_rt(void *arg) { - struct thread* pthr = (struct thread* )arg; - int rc, i, j, tid = gettid(); - cpu_set_t mask; - CPU_ZERO(&mask); - CPU_SET(0, &mask); - - rc = sched_setaffinity(0, sizeof(mask), &mask); - if (rc < 0) { - printf("Thread %d: Can't set affinity: %d %s\n", tid, rc, strerror(rc)); - exit(-1); - } - - printf("Thread %d started running with prio %d\n", tid, pthr->priority); - pthread_barrier_wait(&barrier); - pthread_mutex_lock(glob_mutex); - printf("Thread %d at start pthread pol %d pri %d - Got global lock\n", tid, pthr->policy, pthr->priority); - - /* we just use the mutex as something to slow things down */ - /* say who we are and then do nothing for a while. The aim - * of this is to show that high priority threads make more - * progress than lower priority threads.. - */ - for (i=0;i<1000;i++) { - if (i%100 == 0) { - printf("Thread %d loop %d pthread pol %d pri %d\n", tid, i, pthr->policy, pthr->priority); - fflush(NULL); - } - pthr->id++; - for (j=0;j<5000;j++) { - pthread_mutex_lock(&(pthr->mutex)); - pthread_mutex_unlock(&(pthr->mutex)); - } - } - pthread_mutex_unlock(glob_mutex); - return NULL; + struct thread *pthr = (struct thread *)arg; + int i, tid = gettid(); + + printf("Thread %d started running with prio %d\n", tid, + pthr->priority); + pthread_barrier_wait(&barrier); + pthread_mutex_lock(glob_mutex); + printf("Thread %d at start pthread pol %d pri %d - Got global lock\n", + tid, pthr->policy, pthr->priority); + + /* we just use the mutex as something to slow things down, + * say who we are and then do nothing for a while. The aim + * of this is to show that high priority threads make more + * progress than lower priority threads.. + */ + for (i = 0; i < 1000; i++) { + if (i%100 == 0) { + printf("Thread %d loop %d pthread pol %d pri %d\n", + tid, i, pthr->policy, pthr->priority); + fflush(NULL); + } + busy_work_ms(1); + } + pthread_mutex_unlock(glob_mutex); + return NULL; } -void* func_noise(void* arg) +void *func_noise(void *arg) { - struct thread* pthr = (struct thread* )arg; - int rc, i, j, tid = gettid(); - cpu_set_t mask; - CPU_ZERO(&mask); - CPU_SET(0, &mask); - - rc = sched_setaffinity(0, sizeof(mask), &mask); - if (rc < 0) { - printf("Thread %d: Can't set affinity: %d %s\n", tid, rc, strerror(rc)); - exit(-1); - } - - printf("Noise Thread started running with prio %d\n", pthr->priority); - pthread_barrier_wait(&barrier); - - for (i=0;i<10000;i++) { - if (i%100 == 0) { - printf("Noise Thread %d loop %d pthread pol %d pri %d\n", tid, i, pthr->policy, pthr->priority); - fflush(NULL); - } - pthr->id++; - for (j=0;j<5000;j++) { - pthread_mutex_lock(&(pthr->mutex)); - pthread_mutex_unlock(&(pthr->mutex)); - } - } - return NULL; + struct thread *pthr = (struct thread *)arg; + int i, tid = gettid(); + + printf("Noise Thread started running with prio %d\n", + pthr->priority); + pthread_barrier_wait(&barrier); + + /* Give the other threads time to wait on the condition variable.*/ + usleep(1000); + + /* Noise thread begins the test */ + pthread_mutex_lock(&cond_mutex); + pthread_cond_broadcast(&cond_var); + pthread_mutex_unlock(&cond_mutex); + + for (i = 0; i < 10000; i++) { + if (i%100 == 0) { + printf("Noise Thread %d loop %d pthread pol %d "\ + "pri %d\n", tid, i, pthr->policy, + pthr->priority); + fflush(NULL); + } + busy_work_ms(1); + } + return NULL; } /* * Test pthread creation at different thread priorities. */ -int main(int argc, char* argv[]) { - pthread_mutexattr_t mutexattr; - int i, retc, protocol, nopi = 0; - cpu_set_t mask; - CPU_ZERO(&mask); - CPU_SET(0, &mask); - setup(); - - rt_init("h",parse_args,argc,argv); - - if ((retc = pthread_barrier_init(&barrier, NULL, 5))) { - printf("pthread_barrier_init failed: %s\n", strerror(retc)); - exit(retc); - } - - retc = sched_setaffinity(0, sizeof(mask), &mask); - if (retc < 0) { - printf("Main Thread: Can't set affinity: %d %s\n", retc, strerror(retc)); - exit(-1); - } - for (i=0;i<argc;i++) { - if (strcmp(argv[i],"nopi") == 0) nopi = 1; - } - - printf("Start %s\n", argv[0]); - - glob_mutex = malloc(sizeof(pthread_mutex_t)); - if (glob_mutex == NULL) { - printf("Malloc failed\n"); - exit(errno); - } - - if (!nopi) { - if (pthread_mutexattr_init(&mutexattr) != 0) { - printf("Failed to init mutexattr\n"); - } - if (pthread_mutexattr_setprotocol(&mutexattr, PTHREAD_PRIO_INHERIT) != 0) { - printf("Can't set protocol prio inherit\n"); - } - if (pthread_mutexattr_getprotocol(&mutexattr, &protocol) != 0) { - printf("Can't get mutexattr protocol\n"); - } else { - printf("protocol in mutexattr is %d\n", protocol); - } - if ((retc = pthread_mutex_init(glob_mutex, &mutexattr)) != 0) { - printf("Failed to init mutex: %d\n", retc); - } - } - - create_other_thread(func_nonrt, NULL); - create_rr_thread(func_rt, NULL, 20); - create_rr_thread(func_rt, NULL, 30); - create_rr_thread(func_rt, NULL, 40); - create_rr_thread(func_noise, NULL, 40); - - printf("Joining threads\n"); - join_threads(); - printf("Done\n"); - - return 0; +int main(int argc, char *argv[]) +{ + int i, retc, nopi = 0; + cpu_set_t mask; + CPU_ZERO(&mask); + CPU_SET(0, &mask); + setup(); + + rt_init("h", parse_args, argc, argv); + + retc = pthread_barrier_init(&barrier, NULL, 5); + if (retc) { + printf("pthread_barrier_init failed: %s\n", strerror(retc)); + exit(retc); + } + + retc = sched_setaffinity(0, sizeof(mask), &mask); + if (retc < 0) { + printf("Main Thread: Can't set affinity: %d %s\n", retc, + strerror(retc)); + exit(-1); + } + for (i = 0; i < argc; i++) { + if (strcmp(argv[i], "nopi") == 0) + nopi = 1; + } + + printf("Start %s\n", argv[0]); + + glob_mutex = malloc(sizeof(pthread_mutex_t)); + if (glob_mutex == NULL) { + printf("Malloc failed\n"); + exit(errno); + } + + if (!nopi) + init_pi_mutex(glob_mutex); + + create_other_thread(func_nonrt, NULL); + create_rr_thread(func_rt, NULL, 20); + create_rr_thread(func_rt, NULL, 30); + create_rr_thread(func_rt, NULL, 40); + create_rr_thread(func_noise, NULL, 40); + + printf("Joining threads\n"); + join_threads(); + printf("Done\n"); + + pthread_mutex_destroy(glob_mutex); + pthread_mutex_destroy(&cond_mutex); + pthread_cond_destroy(&cond_var); + return 0; } hooks/post-receive -- ltp |
From: Garrett C. <yan...@gm...> - 2010-07-03 16:42:44
|
On Sat, Jul 3, 2010 at 7:05 AM, Subrata <ris...@li...> wrote: > The branch, master, has been updated > via 13adcb0c4496e75bdcdbc02410b46b9fbc6120a8 (commit) > from 04b500a71b8a410adf5b92978c9d93d659912c20 (commit) > > > - Log ----------------------------------------------------------------- > commit 13adcb0c4496e75bdcdbc02410b46b9fbc6120a8 > Author: Subrata Modak <sub...@su...> > Date: Fri Jul 2 22:47:57 2010 +0530 > > ima_measure doesn't build correctly. It needs config.h to determine whether openssl headers are present, and verbose needs to be global. Broken by commit ef77253961f909f87e82e6d2b620e87af33e9665. > Signed-off-by: Stephen D. Smalley <sd...@ty...>, > Acked-by: Garrett Cooper <yan...@gm...>, > > ----------------------------------------------------------------------- > > Summary of changes: > .../security/integrity/ima/src/ima_measure.c | 7 ++++--- > 1 files changed, 4 insertions(+), 3 deletions(-) > > diff --git a/testcases/kernel/security/integrity/ima/src/ima_measure.c b/testcases/kernel/security/integrity/ima/src/ima_measure.c > index dd6b1d0..0484c04 100644 > --- a/testcases/kernel/security/integrity/ima/src/ima_measure.c > +++ b/testcases/kernel/security/integrity/ima/src/ima_measure.c > @@ -22,7 +22,7 @@ > #include <fcntl.h> > #include <string.h> > #include <unistd.h> > -//#include "config.h" > +#include "config.h" > #include "test.h" > #if HAVE_OPENSSL_SHA_H > #include <openssl/sha.h> > @@ -33,6 +33,8 @@ > char *TCID = "ima_measure"; > int TST_TOTAL = 1; > > +static int verbose; > + > #define print_info(format, arg...) \ > if (verbose) \ > printf(format, ##arg) > @@ -135,9 +137,8 @@ main(int argc, char *argv[]) > FILE *fp; > struct event template; > u_int8_t pcr[SHA_DIGEST_LENGTH]; > - int i, count = 0, len; > + int i, count = 0; > > - int verbose = 0; > int validate = 0; > int verify = 0; I actually committed this (and another bugfix in the test scripts) to next, because it allows us to test things out before a release, as things migrate pu -> next -> master. Is everything being committed to master now? Thanks, -Garrett |
From: Subrata <ris...@li...> - 2010-07-03 14:05:58
|
The branch, master, has been updated via 13adcb0c4496e75bdcdbc02410b46b9fbc6120a8 (commit) from 04b500a71b8a410adf5b92978c9d93d659912c20 (commit) - Log ----------------------------------------------------------------- commit 13adcb0c4496e75bdcdbc02410b46b9fbc6120a8 Author: Subrata Modak <sub...@su...> Date: Fri Jul 2 22:47:57 2010 +0530 ima_measure doesn't build correctly. It needs config.h to determine whether openssl headers are present, and verbose needs to be global. Broken by commit ef77253961f909f87e82e6d2b620e87af33e9665. Signed-off-by: Stephen D. Smalley <sd...@ty...>, Acked-by: Garrett Cooper <yan...@gm...>, ----------------------------------------------------------------------- Summary of changes: .../security/integrity/ima/src/ima_measure.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/testcases/kernel/security/integrity/ima/src/ima_measure.c b/testcases/kernel/security/integrity/ima/src/ima_measure.c index dd6b1d0..0484c04 100644 --- a/testcases/kernel/security/integrity/ima/src/ima_measure.c +++ b/testcases/kernel/security/integrity/ima/src/ima_measure.c @@ -22,7 +22,7 @@ #include <fcntl.h> #include <string.h> #include <unistd.h> -//#include "config.h" +#include "config.h" #include "test.h" #if HAVE_OPENSSL_SHA_H #include <openssl/sha.h> @@ -33,6 +33,8 @@ char *TCID = "ima_measure"; int TST_TOTAL = 1; +static int verbose; + #define print_info(format, arg...) \ if (verbose) \ printf(format, ##arg) @@ -135,9 +137,8 @@ main(int argc, char *argv[]) FILE *fp; struct event template; u_int8_t pcr[SHA_DIGEST_LENGTH]; - int i, count = 0, len; + int i, count = 0; - int verbose = 0; int validate = 0; int verify = 0; hooks/post-receive -- ltp |