aboutsummaryrefslogtreecommitdiff
path: root/pan
AgeCommit message (Collapse)Author
2015-06-16pan/symbol.c: remove unnecessary malloc type castManinder Singh
Signed-off-by: Maninder Singh <maninder1.s@samsung.com> Signed-off-by: Akhilesh Kumar <akhilesh.k@samsung.com>
2015-06-16pan/reporter.c: remove unnecessary malloc type castManinder Singh
Signed-off-by: Maninder Singh <maninder1.s@samsung.com> Signed-off-by: Akhilesh Kumar <akhilesh.k@samsung.com>
2015-06-16pan/ltp-bump.c: remove unnecessary malloc type castManinder Singh
Signed-off-by: Maninder Singh <maninder1.s@samsung.com> Signed-off-by: Akhilesh Kumar <akhilesh.k@samsung.com>
2015-06-16pan/ltp-pan.c: remove unnecessary malloc type castManinder Singh
Signed-off-by: Maninder Singh <maninder1.s@samsung.com> Signed-off-by: Akhilesh Kumar <akhilesh.k@samsung.com>
2015-06-16pan/splitstr.c: remove unnecessary malloc type castManinder Singh
Signed-off-by: Maninder Singh <maninder1.s@samsung.com> Signed-off-by: Akhilesh Kumar <akhilesh.k@samsung.com>
2015-06-16pan/zoolib.c: remove unnecessary type cast for mallocManinder Singh
Signed-off-by: Maninder Singh <maninder1.s@samsung.com> Signed-off-by: Akhilesh Kumar <akhilesh.k@samsung.com>
2015-06-11pan/symbol.c: fix memory leak for failure caseWei,Jiangang
Signed-off-by: Wei,Jiangang <weijg.fnst@cn.fujitsu.com>
2015-06-04pan/splitstr.c: Add check for realloc failure caseManjeet Pawar
This patch adds check for realloc failure case and free arg_string before returning from splitstr() to avoid memory leaks Signed-off-by: Yogesh Gaur <yn.gaur@samsung.com> Signed-off-by: Manjeet Pawar <manjeet.p@samsung.com> Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
2015-06-01pan/ltp-pan.c: avoid memory leakManjeet Pawar
This patch avoid memory leak by freeing the buf before the slurp() function return. Signed-off-by: Yogesh Gaur <yn.gaur@samsung.com> Signed-off-by: Manjeet Pawar <manjeet.p@samsung.com>
2014-09-24Make use of NULLCyril Hrubis
Replace all (type *)0 with NULL Created with coccinelle patch: @@ type T; @@ -(T*)0 +NULL Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
2014-09-23runltp, pan/ltp-pan.c: record test cases(not fully tested) into fileXiaoguang Wang
Since commit 6f6878f4e1406d79cae53564777c5e1245d2a124, we start to differentiate TCONF from TFAIL, but in pan/ltp-pan.c, we still write test cases that return TCONF into failcmdfile, this is wrong, fix this. Meanwhile we add a '-T' option for runltp, to let user record test cases that return TCONF, namely, by this file, users can know what cases are not fully tested. Reported-by: Shuang Qiu <shuang.qiu@oracle.com> Signed-off-by: Xiaoguang Wang <wangxg.fnst@cn.fujitsu.com> Acked-by: Cyril Hrubis <chrubis@suse.cz>
2014-06-26pan/ltp-pan.c: add statistics about not fully tested testcasesXiaoguang Wang
Currently numbers of testcases in LTP will return TCONF when they are not appropriate to run. But when users execute './runltp' to run the default test suite towards an linux distribution or upstream kernel, if testcases return TCONF, ultimately they will print TPASS to users, then users will not know the real LTP test coverage. NOTE: The overall test status would be TCONF even if just one test assertion reported TCONF, which is not ideall but still far better than the previous state. Here we change this behaviour and show users testcases which return TCONF, meaning that these testcases are not fully tested. Here is a sample: 1. Before this patch, The output will be: Test Start Time: Tue Jun 24 14:32:15 2014 ----------------------------------------- Testcase Result Exit Value -------- ------ ---------- access01 PASS 0 access02 PASS 0 access03 PASS 0 getxattr01 PASS 0 getxattr02 PASS 0 access04 PASS 0 ext4-nsec-timestamps PASS 0 ext4-uninit-groups PASS 0 access05 PASS 0 access06 PASS 0 ----------------------------------------------- Total Tests: 10 Total Failures: 0 Kernel Version: 3.16.0-rc1+ Machine Architecture: x86_64 Hostname: localhost.localdomain 2. After this patch, the output will be: Test Start Time: Tue Jun 24 14:28:27 2014 ----------------------------------------- Testcase Result Exit Value -------- ------ ---------- access01 PASS 0 access02 PASS 0 access03 PASS 0 getxattr01 CONF 32 getxattr02 CONF 32 access04 PASS 0 ext4-nsec-timestamps CONF 32 ext4-uninit-groups CONF 32 access05 PASS 0 access06 PASS 0 ----------------------------------------------- Total Tests: 10 Total Skipped Tests: 4 Total Failures: 0 Kernel Version: 3.16.0-rc1+ Machine Architecture: x86_64 Hostname: localhost.localdomain Signed-off-by: Xiaoguang Wang <wangxg.fnst@cn.fujitsu.com> Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
2014-06-24pan/ltp-pan.c: fix compilation warningsXiaoguang Wang
Delete the useless 'char *av[2], bigarg[82];' definition. Fix the 'ignoring return value of read(2)' compilation warnings. Signed-off-by: Xiaoguang Wang <wangxg.fnst@cn.fujitsu.com>
2014-04-23lib, tools, pan: old-style function definition fixesStanislav Kholmanskikh
No functional changes. No "cleanup". Just fixes for "old-style function definition" compile warnings. Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
2013-03-22pan: fix potential overrun in tag_reportJan Stancek
char *cuts_info[5]; ... while (tok_num < 5 && (cuts_info[++tok_num] = strtok(NULL, "\t ")) != NULL) ; While above can run for tok_num == 4, in which case: cuts_info[++tok_num] becomes cuts_info[5] and that is outside of cuts_info array. Signed-off-by: Jan Stancek <jstancek@redhat.com> Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
2012-12-07cleanup code indentWanlong Gao
Cleanup the code indent using: find . -name *.c -exec Lindent {} \; It's really a big change, but can fix almost all of the indent problem in C code, although we can't ensure all of the changes are right, but the error changes are really few. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
2012-10-24Fix FSF addressWanlong Gao
find . -type f -exec sed -i 's/the Free Software Foundation, Inc., 59/the Free Software Foundation, Inc.,/g;s/Temple Place - Suite 330, Boston MA 02111-1307, USA/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA/g' {} \; Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
2012-10-18Remove whitespace at end of lineChris Dearman
This is a scripted change done using the following command: find . -type d -name .git -prune -o \ -type f \! -name \*\~ \! -name .\#\* \ \! -name \*.gz \! -name \*.pdf \! -name \*.patch -print0 | \ xargs -0 sed -i -e 's/[\t ]*$//' Signed-off-by: Chris Dearman <chris@mips.com>
2012-10-18Add missing newline at end of fileChris Dearman
This is a scripted change done using the following command: find . -type d -name .git -prune -o \ -type f \! -name \*\~ \! -name .\#\* \ \! -name \*.gz \! -name \*.pdf \! -name \*.patch -print0 | \ xargs -0 sed -i -e '$a\' Signed-off-by: Chris Dearman <chris@mips.com>
2012-05-17ltp-pan.c: fix error of Total TestsPeng Haitao
When execvp() fails, the testcases is counted in Total Tests, but not added in logfile. In fact the testcases result should be added in logfile. Signed-off-by: Peng Haitao <penght@cn.fujitsu.com> Acked-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> Acked-by: Garrett Cooper <yanegomi@gmail.com>
2011-02-23Fix pan compile on some versions of flex/lex.Garrett Cooper
"%option nolex-compat" can silence warning, but also make the global variable "yylineno" undeclared. The following patch add "%option yylineno" to make the global variable "yylineno" to be accessed. Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
2011-02-23Clean up pan a bit.Garrett Cooper
1. malloc.h is obsolete for malloc(3), et all. 2. Fix some compile-time warnings. Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
2011-02-23Fix some warnings.Garrett Cooper
Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
2010-12-21Turn on -Wno-error in pan.Garrett Cooper
All of the nasty warnings have been resolved; all of the errors from here on out are in the generated lex code that we don't have control over. Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
2010-12-21Make failures to write fatal and noisy.Garrett Cooper
There was a bug lurking in here with exec* failures before where it wouldn't print out anything helpful; maybe this will unroot the problem now. Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
2010-12-19Resolving all compile errors via a scriptGarrett Cooper
This may leave dupe calls to tst_exit in main, but those are easier to deal (and much less) than no-compile scenarios. As a side-effect, fix all trailing whitespace issues. Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
2010-12-17Silence warnings.Garrett Cooper
Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
2010-11-23More cleanup.Garrett Cooper
Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
2010-01-18Make ltp-scanner (the only item that requires bison/flex), optional.yaberauneya
It isn't invoked anywhere in the sourcebase from what I can see, but it could still be a functional / helpful utility... Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
2010-01-18Remove other generate_vpath_rule calls because they cause problems with make ↵yaberauneya
3.80. Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
2009-10-15While trying to figure out why entries don't get entered in the execyaberauneya
log, I found the following issue with a malloc call. I also fixed a typo and a whacky indentation item as well. Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
2009-10-091. Please see README.mk-devel for a full description of the changesyaberauneya
from a Make perspective. 2. Several files were changed to accomodate correct installation practices, most notably ones in testcases/network/{ipv6,tcp_cmds}, testcases/kernel/sched/hyperthreading/ht_enabled/..., and some items in tools/..., and also to avoid collisions as far as installed testcases (scripts, compiled C apps) were concerned. 3. Several apps weren't autoconf safe and some autoconf tests and conditional statements have been placed in sourcecode and in Makefiles to either a) prevent the tests from being built / installed or b) turn the tests into dummy apps which print out TCONF messages due to lack-of-build support. Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
2009-06-09Return immediately when the ZOO file couldn't be opened, prevent crash ↵subrata_modak
later: There was a crash in pan when the zoofile couldn't be opened; this patch fixes it by disallowing the zoo_open function to continue. Signed-off-by: Jiri Palecek <jpalecek@web.de>.
2009-06-09Detect test results more accurately when generating HTML. PFA the patch for ↵subrata_modak
the changes to pan driver for a possible fix to the report generation issue. I have modified genhtml.pl script to reflect changes in pan driver. Note: The 'Initiation-status' column is now present after Test-output column. Signed-off-by: rohit verma <rohit.170309@gmail.com>.
2009-06-01Reverting ltp-pan.c to ↵subrata_modak
http://ltp.cvs.sourceforge.net/viewvc/*checkout*/ltp/ltp/pan/pan.c?revision=1.32, as the existing one was not running and was hung at runtime. Signed-off-by: Subrata Modak <subrata@linux.vnet.ibm.com>.
2009-05-19Attached (against ltp-full-20090430.tgz) patch renames binaries in pan ↵subrata_modak
directory to have ltp- prefix as plain pan when installed in /usr/bin/ directory conflict with gnome pan. It also fixes all occurrences of pan in scripts and howtos. Signed-off-by: Cyril Hrubis <chrubis@suse.cz>.
2009-02-23pan: Forward error messages to stderr: Unsure if I understand the code in ↵subrata_modak
the right manner, but other error messages are also forwarded to stderr instead of stdout. Signed-off-by: Juergen Beisert <jbe@pengutronix.de>.
2009-02-23pan: Honor the -q command line option: If one wants pan to be quiet, pan ↵subrata_modak
should honor this. Signed-off-by: Juergen Beisert <jbe@pengutronix.de>.
2009-02-19Limit starts when running for certain time, too: Please find attached a ↵subrata_modak
small patch to add this simple feature to pan without changing its previous behaviour. Running a test only once by pan for a specific time is currently also possible without this patch. Just give the '-t <time>' option *and* than the '-s 1' option. But it is racy yet, to do so. Adding this patch removes this race. With: $ pan <....> -t 60s -s 1 -- my_test, the my_test will now run for one time only. If everyhing went ok, it returns happy within the 60 seconds period. If my_test runs amok, it will never return and pan will kill it after 60 seconds. --8<--------8<-------8<-------8<--------8<-------8<-----8<--------8<------. This patches add a feature to limit the number of times a test is started when running for a certain time instead of infinite runs. This could be used to give a timeout for a certain test. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>, Acked-by: Juergen Beisert <jbe@pengutronix.de>.
2009-01-19This patch fixes a segfault of pan, when the command file doesn't end with a ↵subrata_modak
newline. Signed-Off-By: Jiri Palecek <jpalecek@web.de>.
2008-11-11Hello, these are some little fixes I've created for ltp. They are typos, ↵subrata_modak
fixes for compiler warning, bashisms in the makefiles etc. Signed-off-by: Jiri Palecek <jpalecek@web.de>.
2008-10-29Fix segfault of "pan" on signal action. pan segfaults when receiving various ↵subrata_modak
signal registered by sigaction. Valgrind reports various uninitalied bytes of the sigaction struct: Initializing the sigaction struct as empty avoids a segfault of "pan". Signed-off-by: Daniel Gollub <dgollub@suse.de>. Acked-by: Nate Straz <nstraz@redhat.com>.
2008-10-17Introduced PREFIX and LIBSUFFIX variables. DESTDIR is often used within ↵subrata_modak
packaging scripts/spec files. Use PREFIX variable instead to manipulate the installation destination directory. Introduced LIBSUFFIX to allow to manipulate library directory to lib64 e.g. for distribution packaging for x86_64 or others architectures. Signed-off-by: Daniel Gollub <dgollub@suse.de>.
2008-10-16Hello. I had two errors when compiling the CVS version with Ubuntu. The one ↵subrata_modak
in regen.sh might have to do with some dash limitation (it complains about not supporting more than 32 shifts.) The one with the Makefile has to do with the version of lex I have here (lex 2.5.33) complaining about -l not accepting an extra argument (I believe it interprets the w as such). I did a quick check after applying the changes and they seem not to break anything. Signed-Off-By: Elder Costa <elder.costa@terra.com.br>.
2008-10-15This patch fixes build failures seen on RHEL 4 (2.6.9 based Kernel), and ↵subrata_modak
several warnings. The build failures are caused by pec_listener.c and then ptrace06.c, It because the Kernel version checking code is incorrect from it, as you can see from the error message above, "/bin/sh: ../../bin/tst_kvercmp: No such file or directory". I solve it by querying an entry in proc file system instead. For ptrace06.c case, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO are unavailable in this version of Kernel, Given that this test also fails to compile for IA-64 entirely (please see more details on one of my previous emails sent not long ago), I disable this test temperately until those problems have been fixed. In addition, it fixed the following unnecessary compiling warnings. Finally, check_for_unshare.c:21: warning: implicit declaration of function `tst_kvercmp'. Signed-off-by: CAI Qian <caiqian@cclom.cn>.
2008-05-19The "pan/pan" would failed in segmentation fault with a wrong option "-f ↵subrata_modak
command-file". Among the options, the "/tmp/test" does not exist. The solution is to add condition judgements before use the pointer. To execute pan/pan with option "-p" will occurs Segmentation fault. The reason is that it not appends the "-l" option to pan to open the "logfile" for writing log. Just add a condition judgement to fix it. Signed-off-by: Jin Bing Guo <guojb@cn.ibm.com>.
2008-04-02Addition of SPEC File for creation of LTP-DEVEL RPMs on various ↵subrata_modak
Architectures for Standalone development of LTP Unit Testcase. Contributed by George Kraft <gk4@us.ibm.com>
2007-07-25"rsalveti@linux.vnet.ibm.com" added more options to 'runltp'subrata_modak
2006-12-13do not use variable names the same as system functions (like stime() or utime())vapier
2006-07-10A fix Submitted by Andy Echols to fix an infinite loop problem that occurs ↵mreed10
in pan if runltp tries to run a test that isn't present.