All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel Sangorrin" <daniel.sangorrin@toshiba.co.jp>
To: Tim.Bird@sony.com, lixm.fnst@cn.fujitsu.com,
	fuego@lists.linuxfoundation.org
Subject: Re: [Fuego] [PATCH] LTP_Smack: add a new job to test "smack" module
Date: Wed, 18 Jul 2018 11:54:44 +0900	[thread overview]
Message-ID: <002e01d41e42$ae8ae500$0ba0af00$@toshiba.co.jp> (raw)
In-Reply-To: <ECADFF3FD767C149AD96A924E7EA6EAF7C1A0D7D@USCULXMSG01.am.sony.com>

> From: Tim.Bird@sony.com <Tim.Bird@sony.com>
> Sent: Saturday, July 14, 2018 2:15 AM
> > From: Daniel Sangorrin
> >
> > Hi Li, Tim:
> >
> > The smack tests can be run using:
> >   $ ftc run-test -b myboard -t Functional.LTP --dynamic-vars "{'tests':'smack'}"
> 
> Which reminds me that I want to get the dynamic-vars feature merged.
> Maybe we can find some time next week to split it from the 'call-ftc-directly'
> patches and get it into master?

OK, I will prepare clean patches for master and re-send.


> 
> >
> > Alternatively, while "Dynamic vars" are merged, you can instead add a spec
> > to Functional.LTP/spec.json
> 
> Do you mean "not merged"?

Yes, sorry.

> But yes, Li, you should be able to do this as a spec for Functional.LTP.  Is
> there a reason this was done as a separate test?  I thought there would
> be special setup (and there is, to some degree).  Is that the reason this
> is not just another LTP spec?
> 
> >
> > Note: make sure that you prepare your machine for smack by modifying
> > fstab and adding the security=smack kernel parameter
> > # vi /etc/fstab
> > smackfs /sys/fs/smackfs smackfs defaults 0 0
> > # reboot
> >   -> grub: add security=smack
> >
> > If you want to run a single smack test (e.g. smack_set_ambient) then you
> > should be able to use Function.LTP_one_test. Unfortunately,
> > Function.LTP_one_test's test_deploy function still needs some
> > improvements.
> >
> > After those improvements this should work:
> >   $ ftc run-test -b myboard -t Functional.LTP_one_test --dynamic-vars
> > "{'TEST':'smack_set_environment', 'scenario':'smack'}"
> 
> This looks like it will perform the smack setup, but does it also
> run the smack tests?

Sorry the test was supposed to read smack_set_ambient	
https://github.com/linux-test-project/ltp/blob/master/testcases/kernel/security/smack/smack_set_ambient.sh

Thanks,
Daniel






  reply	other threads:[~2018-07-18  2:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1530708469-14477-1-git-send-email-lixm.fnst@cn.fujitsu.com>
2018-07-06  5:50 ` [Fuego] [PATCH] LTP_Smack: add a new job to test "smack" module Li, Xiaoming
2018-07-06  8:03   ` Daniel Sangorrin
2018-07-13 17:14     ` Tim.Bird
2018-07-18  2:54       ` Daniel Sangorrin [this message]
2018-07-06  8:30   ` Daniel Sangorrin
2018-07-13 20:03     ` Tim.Bird
2018-07-13 17:05   ` Tim.Bird

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='002e01d41e42$ae8ae500$0ba0af00$@toshiba.co.jp' \
    --to=daniel.sangorrin@toshiba.co.jp \
    --cc=Tim.Bird@sony.com \
    --cc=fuego@lists.linuxfoundation.org \
    --cc=lixm.fnst@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 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.