All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [LTP] [PATCH v3 1/2] sigaction:16-1: leave it untested on the Linux kernel less than 2.6.22
       [not found] <1393236325-30766-1-git-send-email-penght@cn.fujitsu.com>
@ 2014-02-24 15:51 ` chrubis
       [not found] ` <1393236527-30874-1-git-send-email-penght@cn.fujitsu.com>
  1 sibling, 0 replies; 2+ messages in thread
From: chrubis @ 2014-02-24 15:51 UTC (permalink / raw)
  To: Peng Haitao; +Cc: ltp-list

Hi!
> As the Linux signal(7) said:
> POSIX semaphore interfaces: sem_wait(3) and sem_timedwait(3) (since Linux 2.6.22; beforehand, always failed with EINTR).
> 
> So, on Linux, we just leave it untested when the kernel version
> is less than 2.6.22 and user wants to filter it.
> 
> Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
> Signed-off-by: Jan Stancek <jstancek@redhat.com>
> ---
>  testcases/open_posix_testsuite/Makefile              |  4 ++++
>  testcases/open_posix_testsuite/Makefile.linux        | 20 ++++++++++++++++++++
>  .../open_posix_testsuite/scripts/tst_kvercmp.sh      | 20 ++++++++++++++++++++
>  3 files changed, 44 insertions(+)
>  create mode 100644 testcases/open_posix_testsuite/Makefile.linux
>  create mode 100755 testcases/open_posix_testsuite/scripts/tst_kvercmp.sh
> 
> diff --git a/testcases/open_posix_testsuite/Makefile b/testcases/open_posix_testsuite/Makefile
> index 9c61fa4..500ddc2 100644
> --- a/testcases/open_posix_testsuite/Makefile
> +++ b/testcases/open_posix_testsuite/Makefile
> @@ -40,6 +40,10 @@ exec_prefix?=		$(prefix)
>  
>  all: conformance-all functional-all stress-all tools-all
>  
> +ifeq ($(shell uname -s), Linux)
> +include Makefile.linux
> +endif
> +
>  clean: $(CRITICAL_MAKEFILES)
>  	@rm -f $(LOGFILE)*
>  	@for dir in $(SUBDIRS) tools; do \
> diff --git a/testcases/open_posix_testsuite/Makefile.linux b/testcases/open_posix_testsuite/Makefile.linux
> new file mode 100644
> index 0000000..3b09433
> --- /dev/null
> +++ b/testcases/open_posix_testsuite/Makefile.linux
> @@ -0,0 +1,20 @@
> +cmd_disable = @set -e; \
> +	echo "Disabling: $(1)"; \
> +	echo "\#!/bin/sh" > $(1); \
> +	echo "echo $(1) skipped" >> $(1); \
> +	echo "echo $(2)" >> $(1); \
> +	echo "exit 0" >> $(1); \
> +	chmod a+x $(1)
> +
> +BROKEN :=
> +
> +kver_cmp = $(shell $(top_srcdir)/scripts/tst_kvercmp.sh 2 6 22)
> +ifeq ($(kver_cmp), 1)
> +BROKEN += t_sigaction_16-1
> +endif
> +
> +filter-broken: $(BROKEN)

Just a minor nit, this should be filter-known-fails or similar because
the test itself is not broken. If the test was broken we would either
disable it or remove it.

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [LTP] [PATCH v3 2/2] open_posix_testsuite: Update document
       [not found] ` <1393236527-30874-1-git-send-email-penght@cn.fujitsu.com>
@ 2014-02-24 15:59   ` chrubis
  0 siblings, 0 replies; 2+ messages in thread
From: chrubis @ 2014-02-24 15:59 UTC (permalink / raw)
  To: Peng Haitao; +Cc: ltp-list

Hi!
> Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
> ---
>  testcases/open_posix_testsuite/Documentation/HOWTO_RunTests | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/testcases/open_posix_testsuite/Documentation/HOWTO_RunTests b/testcases/open_posix_testsuite/Documentation/HOWTO_RunTests
> index 7b346ed..74c35da 100644
> --- a/testcases/open_posix_testsuite/Documentation/HOWTO_RunTests
> +++ b/testcases/open_posix_testsuite/Documentation/HOWTO_RunTests
> @@ -49,6 +49,11 @@ From there, execute:
>  
>  This will build all of the conformance, functional, and stress tests.
>  
> +From there, execute:
> +    # make all filter-broken
> +
> +This will build all of the conformance, functional, and stress tests except some broken tests. Now, the filter-broken target will disable sigaction_16-1.run-test on the Linux kernel less than 2.6.22.
> +

Now this is completly wrong for several reasons:

1) The filter-broken target is available only on Linux

2) It provides too detailed information about which tests are skipped

3) It talks about broken tests, these are known failures not broken
   tests


It should look more like:

...

 To run conformance tests for a specific directory, just cd to the directory
 and run make all test.
 
+To disable known failures on Linux do make filter-known-fails.
+
 Example:
     # cd conformance/definitions/time_h ; make all test
 
@@ -77,6 +79,10 @@ To make only functional tests, run:
 To make only stress tests, run:
     # make stress-all
 
+To skip known failures on Linux
+    # make filter-known-fails
+    # make test
+
 4. Running POSIX Option Group Feature Tests
 -----------------------------------------------------

...

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-24 15:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1393236325-30766-1-git-send-email-penght@cn.fujitsu.com>
2014-02-24 15:51 ` [LTP] [PATCH v3 1/2] sigaction:16-1: leave it untested on the Linux kernel less than 2.6.22 chrubis
     [not found] ` <1393236527-30874-1-git-send-email-penght@cn.fujitsu.com>
2014-02-24 15:59   ` [LTP] [PATCH v3 2/2] open_posix_testsuite: Update document chrubis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.