From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] runltp-ng hackweek experiment
Date: Wed, 1 Mar 2017 11:35:14 +0100 [thread overview]
Message-ID: <20170301103513.GA17074@rei> (raw)
In-Reply-To: <20170301101149.5hlkduqfdvlxmpqx@dell5510>
Hi!
> It looks really interesting.
>
> BTW while Open Posix Testcases (-o switch) are working, "normal" tests doesn't. Do I miss
> something?
>
> $ /opt/ltp/bin/ltp-runner -S /opt/ltp/runtest/io
The -S option sets a skipfile, runtest files are passed as positional
parameters.
> Overall results:
> -------------------------------------
>
> Passed 0 out of 0
>
>
> And shouldn't there be a different check as otherwise it segfaults?
>
> $ /opt/ltp/bin/ltp-runner -S /opt/ltp/runtest/mm
> Segmentation fault (core dumped)
Hmm, looks like a bug.
> --- tools/runltp-ng/bin/runner_test_filter.c
> +++ tools/runltp-ng/bin/runner_test_filter.c
> @@ -100,7 +100,7 @@ static void trie_insert(const char *str)
>
> str = trie_search(str, &node);
>
> - while (*str) {
> + while (str) {
> int key = char2key(*str);
>
> if (key == -1)
Does not look correct, we are looping over the string characters here
inserting nodes into the tree. Here we likely segfault since the
trie_search() encountered unexpected character and returned NULL since I
deliberately allow only printable ascii characters in the test id. So we
should do something as:
str = trie_search(str, &node);
if (!str) {
WARN("Invalid character found in '%s'", str);
return;
}
> > - The code is split into several modules, the parsers prepare list of
> > tests to be executed, then there is code to execute the tests and
> > store logs, then the output writers can produce logs in several
> > different formats. I've experimented a bit with a better html
> > output[4][5] (table sorting is not implemented yet, but planned).
>
> Tables looks very nice. I'd be for more features like hover highlighting a and slightly
> different color for odd and even rows, but thats a detail (see
> http://adminer.sourceforge.net/adminer.php?username=&db=a264133_6rgs7fa4 as example).
I have something like that in mind as well, the table was done in a half
of a day and I've spend most of the time looking into javascript
documentation...
But I've managed to write a table sorting function yesterday evenning, I
will push that code into my github repo soon enough.
--
Cyril Hrubis
chrubis@suse.cz
next prev parent reply other threads:[~2017-03-01 10:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-28 14:29 [LTP] runltp-ng hackweek experiment Cyril Hrubis
2017-03-01 10:11 ` Petr Vorel
2017-03-01 10:35 ` Cyril Hrubis [this message]
2017-03-01 11:55 ` Petr Vorel
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=20170301103513.GA17074@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox