aboutsummaryrefslogtreecommitdiff
path: root/testsuite
AgeCommit message (Collapse)Author
2012-10-30Turn on leak checking with --enable-valgrindPetr Machata
As of the previous commit, I'm getting leak-free valgrind runs of ltrace testsuite on x86_64 as well as i386.
2012-10-30For string types in printf.c, return a pointer to array, not arrayPetr Machata
Though ltrace currently translates the latter to the former, this is the actual proper parameter type. Also fix one prototype in test suite for the same reason.
2012-10-27Show failed command in ltraceRun and ltrace_runtestPetr Machata
2012-10-27Guard failures in ltraceRun and ltrace_runtestPetr Machata
This gives us reasonable error messages for valgrind citations.
2012-10-26Fix trace-exec test casePetr Machata
2012-10-24Change filters.exp to check both plain and PIE tracingPetr Machata
2012-10-24Support building PIE binaries in testsuitePetr Machata
2012-10-18In testsuite, don't leave temporary objects behindPetr Machata
2012-10-14Rewrite four test cases to use the new vocabularyPetr Machata
- In main-internal in particular, we never actually tested intra-binary call. Now we do.
2012-10-14New support for writing test casesPetr Machata
This provides a more fitting vocabulary for writing test cases that we typically deal with. This is designed to make writing test cases much simpler, with as little duplication as possible. It is now easy to embed literal program text into expect scripts themselves, instead of keeping .c and .exp files in sync. - ltraceSource creates a temporary file with contents given directly in expect script. - ltraceCompile compiles a binary (which can be a library) from given source files. - ltraceRun runs ltrace command with arguments given directly on ltraceRun command line, and produces a temporary file with ltrace log. - ltraceMatch and ltraceMatch1 support querying ltrace log files. Matching is done in TCL instead of running grep|wc. Because of this, it should now be unnecessary to put arrays of backslashes to properly escape control characters. This also supports normal mathematical operators for comparing numbers of matches to expectation. Previously it was impossible to express that such and such pattern should never appear. Now this can be tested trivially. - ltraceDone cleans up temporary files that were introduced by above calls.
2012-10-14ltrace.exp: Drop unused proc ltrace_saveoutputPetr Machata
2012-10-14Libraries shouldn't be added to command line if object is compiledPetr Machata
Command lines like gcc x.c -c y.so prompt gcc to emits warnings, and DejaGNU then thinks there were failures.
2012-10-14ltrace.exp: Add licence blurbPetr Machata
2012-10-14ltrace.exp: Extract logic for compiling object files into a separate procPetr Machata
2012-10-14Drop meaningless global declarations on top level of ltrace.expPetr Machata
2012-10-14Support running test suite in valgrindPetr Machata
2012-10-14Invoke get_compiler_info before ltrace_compile_shlib in libdl-simple.expPetr Machata
This test case fails when run by itself. When run in a batch with the rest of the test suite, someone else calls get_compiler_info and things get initialized properly. A related change is not to reference compiler_info global variable before we even test its existence.
2012-10-14Clean up test environment before compiling or running testsPetr Machata
2012-10-14testsuite: Add testcase for sprintf like functionsEdgar E. Iglesias
Signed-off-by: Edgar E. Iglesias <edgar@axis.com>
2012-10-14Fix handling of arg0 in parameter listPetr Machata
2012-10-01Add tests covering -l behaviorPetr Machata
2012-10-01Add parsing of -l optionPetr Machata
2012-09-26testsuite: Avoid compile warningEdgar E. Iglesias
Running ./ltrace.main/parameters.exp ... compile failed for ltrace test, ./ltrace.main/parameters.c: In function 'main': ./ltrace.main/parameters.c:196: warning: format '%ld' expects type 'long int', but argument 4 has type 'int' Testcase compile failed, so all tests in this file will automatically fail. Signed-off-by: Edgar E. Iglesias <edgar@axis.com>
2012-09-22Add ia64-specific testsPetr Machata
These test passing and returning homogeneous floating-point aggregates.
2012-08-29Forgot to add dejagnu portions of the new test casesPetr Machata
2012-08-29Add test cases that check passing structures of various widths by valuePetr Machata
2012-08-29Add a test for passing of floating-equivalent structuresPetr Machata
This is relevant on s390x, where these should be passed in a register.
2012-08-29We need to fetch floating registers on pure i386 as wellPetr Machata
Also, remove i386 from the fail spec of parameters.exp, as now it's expected to pass.
2012-08-29Add enum lens, drop ARGTYPE_ENUMPetr Machata
2012-08-29Drop ARGTYPE_STRING, reimplement as lens over array of charsPetr Machata
2012-08-29Replace ARGTYPE_OCTAL with lens, add also hex lensPetr Machata
2012-08-29Add many test cases to the test suitePetr Machata
2012-08-29Add expr.c, expr.h, plug in properlyPetr Machata
- in callstack_pop, we don't free arch_ptr. That's because this doesn't get copied over the clone. It's a mere coincidence that fork() doesn't need to save register arguments, and this works. - added copyright notices to files that this touches. This is based on git blame. Only contributors of 10+ lines are added - test suite adjusted to not include "void" type as "don't show this int". Back ends in general need to know the exact type, so this never worked anyway.
2012-06-01Demangle test should just skip testing if demangling wasn't compiled inPetr Machata
It happens to pass, which is not correct. It needs to be reported as unsupported.
2012-04-25Add a test for filtering expressions and DSO callsPetr Machata
2012-04-19Call func_work indirectly in ltrace.main/parameters testcasePetr Machata
That because otherwise, on PPC64, func_call gets a pointer to the address of func_work entry point. I guess we could work around that by reading .rela.dyn and rewriting GOT, but that's not the point of this test case.
2012-04-19Change libdl-simple.exp test to use ltrace_verify_output, update to passPetr Machata
The update is that we are not matching "test_libdl(", but "test_libdl@liblibdl-simple.so".
2012-04-12Add code for stepping over atomic instruction sequence on PPCPetr Machata
2012-04-12Fix previous commit, which broke the common casePetr Machata
- in this commit I drop a bit of MIPS support. First, I don't think MIPS is supported right now. The multi-threading merge was an invasive change and most arches other than x86 are in fact currently broken. Second, deciding that we shouldn't push a slot just based on address equality is too strong. This would also reject actual recursion, which is a common case (for -x anyway, for -e less so).
2012-04-12Limited support for returns from tail call functionsPetr Machata
- we use a heuristic: several consecutive calls with the same return address, but a different symbol. We can't use just the former case, because that way we would also kill honest recursive (library) calls. It's only this particular case that we know that a tail call took place.
2011-11-09Only delay continuing the process if we are actually mid-_stopping_Petr Machata
- The check fired also on vfork handling, and this hung the process - Add a test case exercising this code, courtesy of Michal Nowak and Denys Vlasenko
2011-10-06Add a test case for thread/vfork scenarioPetr Machata
2011-10-06Trace vfork return in parent as well as in childPetr Machata
2011-10-06Add a test case for vforkPetr Machata
2011-10-06Basic support for tracing vforkPetr Machata
- allow even individual tasks to have their event handlers. These are called in precedence to the thread group event handlers. - distinguish CLONE and VFORK events - add methods for dynamic changes of leader - add new process status ps_sleeping
2011-10-06Fix threading test casePetr Machata
2011-10-06Add a test casePetr Machata
2011-08-11Fix compilationPetr Machata
2011-01-07Add calls to setup_xfail in parameters.expZachary T Welch
Marks the expected failures on ARM and x86. Signed-off-by: Zachary T Welch <zwelch@codesourcery.com>
2011-01-06Make test suite work with non-standard installationsZachary T Welch
Augment LD_LIBRARY_PATH with alternate locations of libelf and libunwind in ltrace_runtest. Also adds support for passing extra arguments, so all tests can be rewritten to use that API calls. This patch makes the test suite work (without any hacking) on systems that do not have those libraries installed in standard locations. Signed-off-by: Zachary T Welch <zwelch@codesourcery.com>