All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [LTP-20160510] acl_test01: 44: .: test.sh: not found
Date: Mon, 30 May 2016 16:21:31 +0200	[thread overview]
Message-ID: <20160530142131.GA7416@rei> (raw)
In-Reply-To: <CA+icZUWdzSCUCPM_91Rg3vk1LNGQ7iuAWVqxbPRcjs5ijKSFaw@mail.gmail.com>

Hi!
> The 1st issue I tried to hack by...
> 
> # diff -uprN testcases/bin/acl_test01.orig testcases/bin/acl_test01
> --- testcases/bin/acl_test01.orig       2016-05-30 15:11:10.771931080 +0200
> +++ testcases/bin/acl_test01    2016-05-30 15:22:31.627909726 +0200
> @@ -41,8 +41,6 @@ export TCID=acltest01
>  export TST_TOTAL=5
>  export TST_COUNT=1
> 
> -. test.sh
> -
>  TMP=${TMP:=/tmp}
> 
>  TEST_USER1="acltest1"
> @@ -54,6 +52,8 @@ FILE_ACL="$TMP/tacl/mount-ext3/test_file
>  FILE_ACL_LINK="$TMP/tacl/mount-ext3/test_file_link"
>  TCbin=`pwd`
> 
> +. $TCbin/test.sh
> +
>  COMMAND=$(command -v "getenforce" "setenforce" |wc -l)
>  if [ $COMMAND -eq 2 ]; then
>         SELINUX=$(getenforce)
> 
> Not sure if this correct.

No it's not. You have to have path to testcases/bin/ directory in $PATH
in order to run a LTP testcase (and it's even written in
documentation...).

Strangely enough the $PATH should be set correctly when you run
testcases via runltp. That is one of the first things done in setup() in
that script. And it works fine for me.

The TCbin should be removed from the test entirely.

> For the 2nd issue - dunno what's going on.

Looks like the do_cleanup is executed twice. Once via trap do_cleanup
EXIT and once at the end of the script. This should be fixed.

> Beyond all this, how can I test the work of Andreas with LTP?
> Any help appreciated.

I guess that kernel/syscalls/*xattr* should be relevant.

-- 
Cyril Hrubis
chrubis@suse.cz

  reply	other threads:[~2016-05-30 14:21 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-30 13:26 [LTP] [LTP-20160510] acl_test01: 44: .: test.sh: not found Sedat Dilek
2016-05-30 14:21 ` Cyril Hrubis [this message]
2016-05-30 14:56   ` Sedat Dilek
2016-05-30 15:11     ` Cyril Hrubis
2016-05-30 15:25       ` Sedat Dilek
2016-05-30 15:32         ` Cyril Hrubis
2016-05-30 15:53           ` Sedat Dilek
2016-05-30 16:30             ` Cyril Hrubis
2016-05-30 19:51               ` Sedat Dilek
2016-05-31 15:14                 ` Cyril Hrubis
2016-05-30 19:28           ` Sedat Dilek
2016-05-30 19:56             ` Sedat Dilek
2016-05-31 15:21               ` Cyril Hrubis
2016-05-31 23:46                 ` Andreas Gruenbacher
2016-06-13 15:46                   ` 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=20160530142131.GA7416@rei \
    --to=chrubis@suse.cz \
    --cc=ltp@lists.linux.it \
    /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.