ltp icon indicating copy to clipboard operation
ltp copied to clipboard

How to run ltp-aiodio.part1 on btrfs?

Open adam900710 opened this issue 7 years ago • 7 comments

Hi

The test file runtest/ltp-aiodio.part1 can be executed by ./runltp -f ltp-aiodio.part1 directly. As it needs the extra junkfiles.

And although test scripts testscripts/ltp-aiodio.sh can setup needed files and run that test, it needs extra partition and doesn't support btrfs.

Is there any way to execute ./runltp -f ltp-aiodio.part1 on an existing directory other than a new partition?

adam900710 avatar Apr 24 '18 06:04 adam900710

Yes indeed it misses the junkfile preparation step, we should add mkdir and dd to the runtest file as a preparation steps. You can see the preparation steps we use in openqa here: https://openqa.opensuse.org/tests/661051/modules/create_junkfile_ltp/steps/1/src It would make much more sense to move these into the runtest file. I can look into this and prepare a patch for the runtest file later on, or you can try ourself.

The testscript is outdated, we should get rid of it and fix the runtest file instead.

metan-ucw avatar Apr 24 '18 07:04 metan-ucw

Thanks for the help. However the aiodio.$$ is still causing a lot of problem, "$$" get increased for each line, thus adding preparation work in it doesn't make much sense here. It would make more sense if we could get rid of "$$". (Not sure if it's related to bash)

<<<test_output>>>
/mnt/btrfs/ltp-YDf6hqyDqk/aiodio.6470/ff1: No such file or directory
...
<<<test_output>>>
/mnt/btrfs/ltp-YDf6hqyDqk/aiodio.6471/ff2: No such file or directory
...

Anyway, for my use case, I could just craft my own test script using the command in "ltp-aiodio.part1", as long as there is no extra trick runltp does. So at least we don't need that fix in a hurry.

adam900710 avatar Apr 24 '18 10:04 adam900710

@adam900710 How can I use test script using the command in "ltp-aiodio.part1" so that it does not show 'No such file or directory' messages like mentioned is above comment? Currently I run as: /opt/ltp/runltp -f ltp-aiodio.part1 and /opt/ltp/runltp -f ltp-aiodio.part1 -s aiocp

kribalac avatar Apr 27 '19 11:04 kribalac

@adam900710 How can I use test script using the command in "ltp-aiodio.part1" so that it does not show 'No such file or directory' messages like mentioned is above comment? Currently I run as: /opt/ltp/runltp -f ltp-aiodio.part1 and /opt/ltp/runltp -f ltp-aiodio.part1 -s aiocp

In the runtest file, you can add mkdir and dd commands.

vgs24 avatar May 14 '19 04:05 vgs24

@acerv is currently rewriting these tests, half of them should work without any specific hacks in the latest git and the second half being worked on..

metan-ucw avatar Jan 07 '22 10:01 metan-ucw

@metan-ucw and @acerv, we have fix for below issue from ltp-aiodio.part3 module? /tmp/aiodio.794624/junkfile: No such file or directory

bharath1r avatar Aug 05 '22 14:08 bharath1r

@bharath1r the fixes for these runtest files are still ongoing, there is an in-flight patch that is going to be merged soon that fixes ltp-aiodio.part1 I suppose that we will get to the part3 after that.

metan-ucw avatar Aug 08 '22 08:08 metan-ucw