How to run ltp-aiodio.part1 on btrfs?
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?
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.
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 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
@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.
@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 and @acerv, we have fix for below issue from ltp-aiodio.part3 module? /tmp/aiodio.794624/junkfile: No such file or directory
@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.