From: Jan Stancek <jstancek@redhat.com>
To: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Cc: ltp-list <ltp-list@lists.sourceforge.net>
Subject: Re: [LTP] [PATCH] securebits: some cleanup
Date: Wed, 13 Aug 2014 05:46:33 -0400 (EDT) [thread overview]
Message-ID: <179118855.6420138.1407923193096.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <1407402404.1347.29.camel@G08JYZSD130126>
----- Original Message -----
> From: "Zeng Linggang" <zenglg.jy@cn.fujitsu.com>
> To: "ltp-list" <ltp-list@lists.sourceforge.net>
> Sent: Thursday, 7 August, 2014 11:06:44 AM
> Subject: [LTP] [PATCH] securebits: some cleanup
>
> * Add Copyright for run_securebits.sh
>
> * Use test.sh for run_securebits.sh
>
> * Somecleanup for Makefile
>
> Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
> ---
> testcases/kernel/security/securebits/Makefile | 7 +--
> .../kernel/security/securebits/run_securebits.sh | 51
> +++++++++++++++-------
> 2 files changed, 39 insertions(+), 19 deletions(-)
Hi,
Can we list these testcases directly in runtest/securebits
and remove the .sh script which bundles all together?
Regards,
Jan
>
> diff --git a/testcases/kernel/security/securebits/Makefile
> b/testcases/kernel/security/securebits/Makefile
> index 51018d9..47271c9 100644
> --- a/testcases/kernel/security/securebits/Makefile
> +++ b/testcases/kernel/security/securebits/Makefile
> @@ -4,7 +4,8 @@
> ##
> ##
> ## This program is free software; you can redistribute it and#or modify
> ##
> ## it under the terms of the GNU General Public License as published by
> ##
> -## the Free Software Foundation; either version 2 of the License, or
> ## ## (at your option) any later version.
> ##
> +## the Free Software Foundation; either version 2 of the License, or
> ##
> +## (at your option) any later version.
> ##
> ##
> ##
> ## This program is distributed in the hope that it will be useful, but
> ##
> ## WITHOUT ANY WARRANTY; without even the implied warranty of
> MERCHANTABILITY ##
> @@ -12,8 +13,8 @@
> ## for more details.
> ##
> ##
> ##
> ## You should have received a copy of the GNU General Public License
> ##
> -## along with this program; if not, write to the Free Software
> ##
> -## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
> USA ##
> +## along with this program; if not, write to the Free Software Foundation,
> ##
> +## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
> ##
> ##
> ##
> ################################################################################
>
> diff --git a/testcases/kernel/security/securebits/run_securebits.sh
> b/testcases/kernel/security/securebits/run_securebits.sh
> index 4d9e272..c3a301c 100644
> --- a/testcases/kernel/security/securebits/run_securebits.sh
> +++ b/testcases/kernel/security/securebits/run_securebits.sh
> @@ -1,20 +1,39 @@
> #!/bin/sh
> +################################################################################
> +##
> ##
> +## Copyright (c) Linux Test Project, 2014
> ##
> +##
> ##
> +## This program is free software; you can redistribute it and/or modify
> ##
> +## it under the terms of the GNU General Public License as published by
> ##
> +## the Free Software Foundation; either version 2 of the License, or
> ##
> +## (at your option) any later version.
> ##
> +##
> ##
> +## This program is distributed in the hope that it will be useful,
> ##
> +## but WITHOUT ANY WARRANTY; without even the implied warranty of
> ##
> +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> ##
> +## GNU Library General Public License for more details.
> ##
> +##
> ##
> +################################################################################
>
> -echo "testing keepcaps"
> -check_keepcaps 1
> -tmp=$?
> -if [ $tmp -ne 0 ]; then
> - exit_code=$tmp
> -fi
> -check_keepcaps 2
> -tmp=$?
> -if [ $tmp -ne 0 ]; then
> - exit_code=$tmp
> -fi
> -check_keepcaps 3
> -tmp=$?
> -if [ $tmp -ne 0 ]; then
> - exit_code=$tmp
> +TCID="keepcaps"
> +TST_TOTAL=1
> +
> +. test.sh
> +
> +exit_code=0
> +for i in 1 2 3
> +do
> + check_keepcaps $i
> + ret=$?
> + if [ $ret -ne 0 ]; then
> + exit_code=$ret
> + fi
> +done
> +
> +if [ $exit_code -ne 0 ]; then
> + tst_resm TFAIL "Test $TCID FAIL"
> +else
> + tst_resm TPASS "Test $TCID PASS"
> fi
>
> -exit $exit_code
> +tst_exit
> --
> 1.9.3
>
>
>
>
> ------------------------------------------------------------------------------
> Infragistics Professional
> Build stunning WinForms apps today!
> Reboot your WinForms applications with our WinForms controls.
> Build a bridge from your legacy apps to the future.
> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
> _______________________________________________
> Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list
>
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next prev parent reply other threads:[~2014-08-13 9:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-07 9:06 [LTP] [PATCH] securebits: some cleanup Zeng Linggang
2014-08-13 9:46 ` Jan Stancek [this message]
2014-09-25 10:00 ` Zeng Linggang
2014-09-26 8:06 ` [LTP] [PATCH v2] " Zeng Linggang
2014-09-26 12:43 ` Jan Stancek
2014-10-08 7:23 ` Zeng Linggang
2014-10-08 7:49 ` [LTP] [PATCH v3] " Zeng Linggang
2014-10-13 9:34 ` Jan Stancek
2014-10-15 11:25 ` Cyril Hrubis
2014-10-15 11:32 ` [LTP] [PATCH v2] " Cyril Hrubis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179118855.6420138.1407923193096.JavaMail.zimbra@redhat.com \
--to=jstancek@redhat.com \
--cc=ltp-list@lists.sourceforge.net \
--cc=zenglg.jy@cn.fujitsu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox