Commit Graph

20 Commits

Author SHA1 Message Date
David Anderson
e16794254d For the 20000 or so regressiontests do larger diff using
cmp as on many systems multiple differences affecting
many tests will be painfully slow.  Affects
tests generating text over 30MB (some individual
tests generate 3GB to 5GB of text)..
	modified:   scripts/run-all-tests.sh
2024-08-06 10:37:43 -07:00
David Anderson
b6140a57f2 Adjusted cmake build to use Ninja instead of Unix Makefiles
modified:   scripts/buildandreleasetest.sh
Now stops early on fail.
	modified:   scripts/run-all-tests.sh
New baselines due to output of Refers to:
by dwarfdump.
	modified:   test/testobjLE32PE.base
	modified:   test/testuriLE64ELf.base
2024-08-05 07:49:22 -07:00
David Anderson
137c06bf9e Restoring functionality to this.
The regression tests run with meson now.
	modified:   scripts/run-all-tests.sh
2024-06-16 10:36:09 -07:00
David Anderson
fb711366c6 Issue #247, github libdwarf-code.
Line 14 is missing a required back-tick.
	modified:   scripts/run-all-tests.sh
2024-06-15 18:07:22 -07:00
Jeremy Rifkin
62838e8663 Remove trailing whitespace from files (#229)
* Remove trailing whitespace from files

* Remove whitespace from pdfbuild.sh

---------

Co-authored-by: David Anderson <dandelot@linuxmail.org>
2024-02-29 08:54:35 -08:00
David Anderson
e5cf21b004 Adding output of the number of minutes
at the end of the run of each script
	modified:   scripts/buildandreleasetest.sh
	modified:   scripts/run-all-tests.sh
2023-10-13 09:29:45 -07:00
David Anderson
336ad49af6 Removed mention of libelf (because it is no longer
used).
	modified:   scripts/buildandreleasetest.sh

Fixed the check for errors on running regression tests:
some time ago the final count emitted
by libdwarf-regressiontests was changed from
FAIL 0
to
FAIL     count: 0
and run-all-tests.sh was not adjusted to match.
Now these match.
	modified:   scripts/run-all-tests.sh
2023-08-09 09:14:52 -07:00
David Anderson
505cfd1a00 Fix to make this work
modified:   scripts/run-all-tests.sh
2021-06-12 11:37:59 -07:00
David Anderson
0ac9007f9f Now honor the new locations of source code
in the new source directory setup.
	modified:   ../../../scripts/UPDATEDWARFDUMPVERSION.sh
	modified:   ../../../scripts/buildandreleasetest.sh
	modified:   ../../../scripts/buildstandardsource.sh
	modified:   ../../../scripts/ddbuild.sh
	modified:   ../../../scripts/libbuild.sh
	modified:   ../../../scripts/run-all-tests.sh
2021-06-11 19:18:09 -07:00
David Anderson
47a79afd33 Getting regression test startup right
now we are doing it all in tmp directories.
	modified:   scripts/run-all-tests.sh
2020-10-27 13:37:16 -07:00
David Anderson
1f68e1f6ef Fixes problems with reporting rangelists, loclists,
and several report-formatting issues.

dwarfdump
    * checkutil.c: Removed trailing whitespace.
    * command_options.c:
    * dwarfdump.1: Making the -C option intent
      clearer.
    * dwarfdump.c: Fixed trailing whitespace and indents.
    * naming.c: Fixed trailing whitespace.
    * print_die.c: Removed dead code. Corrected printing
      if rnglists, ranges, loclists locations. Corrected
      handling of the output with -k detected an error.
      Ensured a couple esb_s variables get destructed
      in case of error.  Added explanation how the
      print_attribute() code actually works.
    * print_frames.c: Corrected handling location operations
      when checking (-k options).
    * print_llex_codes.c,print_loclists_codes.c,
      print_origloclist_codes.c: Corrected handling
      location data when checking (-k options).
    * tag_attr_ext_list.c: Added DW_AT_MIPS_linkage_name
      as a common extension on a couple TAGs.

libdwarf
 * dwarf_loc.c: Corrected indents.
    * dwarf_loclists.c: Corrected indents, removed
      trailing whitespace.
    * dwarf_peread.c: Removed trailing whitespace.
    * dwarf_rnglists.c: Removed trailing whitespace.
    * libdwarf2.1.mm: Rev 2.98. Added documentation
      on the .debug_names section printing functions.
      These intended for debugging .debug_names
      (that is, by dwarfdump),
      not things user code are likely to want to use.
      Documented the new function
      dwarf_get_rnglists_entry_fields_a() as the original
      dwarf_get_rnglists_entry_fields()
      (which is still there and works as well as before)
      left off a field important to callers.
    * libdwarf2.1.pdf: Rev 2.98. Regenerated.
2020-06-25 14:07:34 -07:00
David Anderson
330c289703 Remarks on recent improvements
modified:   README

Tiny change to the script to clean up cases that
the readelfobj project data has a leftover
build in the source tree.
	modified:   scripts/run-all-tests.sh
2020-05-22 18:42:11 -07:00
David Anderson
5453bbe05c modified: libdwarf/dwarf_line_table_reader_common.h
* dwarf_line_table_reader_common.h: Now with dwarfstring
      containers in local scopes and easily evaluated
      as to lifetime and correctness.

	modified:   scripts/run-all-tests.sh
 * run-all-tests.sh: Added echo statments to make
      it clearer were we are in the run
`
2020-02-25 19:56:40 -08:00
David Anderson
ab3ea9f23e modified: configure regenerated as Version 20191108
modified:   configure.ac Version 20191108

     * Makefile.am: Added debuglink example.
       Added a small executable. Added test code.
     * Makefile.in: Regenerated.
     * debuglink.base: Baseline output of getdebuglink.
     * dummyexecutable.c: A tiny C source to create
       an executable via "cc -g dummyexecutable.c"
     * dummyexecutable: The output of the compile.
       This is included in the distribution as a binary
       testcase for getdebuglink.
     * getdebuglink.c: A new example showing how one
       can use libdwarf to find the external gnu
       DWARF object.
     * runtests.sh: Use 'make ch
	modified:   dwarfexample/Makefile.am
	modified:   dwarfexample/Makefile.in
	new file:   dwarfexample/debuglink.base
	new file:   dwarfexample/dummyexecutable
	new file:   dwarfexample/dummyexecutable.c
	new file:   dwarfexample/getdebuglink.c
	new file:   dwarfexample/runtests.sh

     * dwarf_debuglink.c: Now if paths_returned is
       a null pointer the code skips the phase of
       generating a list of paths (assuming the caller
       will generate a list itself).
     * dwarf_errmsg_list.h: New error DW_DLE_DWARF_INIT_DBG_NULL.
     * dwarf_generic_init.c,dwarf_original_elf_init: Now check
       for a null pointer-to-dbg
       and return error DW_DLE_DWARF_INIT_DBG_NULL
       instead of segfaulting.
     * libdwarf.h.in,generated_libdwarf.h.in: Add the new
       error code.
     * libdwarf2.1.mm: Version 2.83. Documents the allowance
       of a null passed in to dwarf_gnu_debuglink instead
       of a valid pointer.
     * libdwarf2.1.pdf: Regenerated 2.83.
	modified:   libdwarf/dwarf_debuglink.c
	modified:   libdwarf/dwarf_errmsg_list.h
	modified:   libdwarf/dwarf_generic_init.c
	modified:   libdwarf/dwarf_original_elf_init.c
	modified:   libdwarf/generated_libdwarf.h.in
	modified:   libdwarf/libdwarf.h.in
	modified:   libdwarf/libdwarf2.1.mm
	modified:   libdwarf/libdwarf2.1.pdf

Add PASS/FAIL echo statements as final summary.
	modified:   scripts/run-all-tests.sh
2019-11-10 09:54:08 -08:00
David Anderson
b425df18bc top level:
* configure.ac: Version 20191106. separating
       cxx_compiler flags from c_compiler_flags
       as C does not understand -Wno-unused-private-field
       and we have -Werror set at times.
* configure: Regenerated

	modified:   dwarfdump/Makefile.am
	modified:   dwarfdump/Makefile.in
	modified:   dwarfdump/makename.c
	modified:   dwarfdump/makename_test.c
	modified:   dwarfdump/runtests.sh
* Makefile.am: Now set env vars so make check can
      get the compiler options.
* Makefile.in: Regenerated.
* makename.c,makename_test.c: Refine the ifdef around the pragma
      so it only appears with windows and when
      the compile is not using gcc or clang to compile.
* runtests.sh: New the new env var to get the configure time
      compiler options into the tests compilations.

	modified:   dwarfexample/simplereader.c
* simplereader.c: It was using %llx for printf
       (wrong) and is now using the DW_PR_DUx macros
       as it should.  Avoiding errors
       when --enable-nonstandardprintf is needed.

	modified:   scripts/buildandreleasetest.sh
	modified:   scripts/run-all-tests.sh

* run-all-tests.sh,buildandreleasetest.sh: Now handle
       --enable-nonstandardprintf
       though that's not sufficient to let these work everywhere.
2019-11-07 14:45:47 -08:00
David Anderson
cd5ee9e591 * Makefile.am: Removed inproper SUBDIRS if clauses.
* Makefile.in: Regenerated.
     * configure.ac: Removed dist-xz frm AM_INIT_AUTOMAKE
       as we don't use it and MacOS command line tools
       do not have xz.
     * configure: Regenerated.

	modified:   dwarfdump/Makefile.am
* Makefile.am: Fixed a trailing blank after a backslash.

	modified:   scripts/buildandreleasetest.sh
	modified:   scripts/run-all-tests.sh
* buildandreleasetest.sh: Now handles --disable-libelf
       so we can run this test successfully in more environments.
       A few fixes to silly indentations.
       If cmake is not available skip the cmake test.
* run-all-tests.sh: Now handles --disable-libelf
       and when libelf missing avoids checks that could
       not possibly pass.
2019-11-04 15:12:35 -08:00
David Anderson
6df43cb96b Adding words to some of the messages to make
it easier to read the output status text.
	modified:   scripts/run-all-tests.sh
2019-10-24 07:47:05 -07:00
David Anderson
909f2a757b Doing a better job reporting context in the tests, both
for FAILs (errors) and for successful runs..
	modified:   dwarfdump/runtests.sh

	modified:   libdwarf/runtests.sh

	modified:   scripts/run-all-tests.sh
2019-10-18 20:37:47 -07:00
David Anderson
5bf82d6b84 dwarfdump:
* Makefile.am: A couple test files got left out of
       the list of critical files, so doing dist
       and then testing the result would fail 'make check'
     * Makefile.in: Regenerated.
     * runtests.sh: Small tweaks so 'make check'
       from outside the source tree works now.

scripts
     * buildandreleasetest.sh:  The cmake test had misspellings
       in the cmake command options.
     * run-all-tests.sh: Renamed from run-bld-tests-readelfobj.sh
       and with small corrections. It now works in one environment!
       So all available tests run with a single command.
       It requires 'standard' naming of the three sets of git files:
       code, regressiontests, readelfobj and those must be
       attached to the same directory (any directory).
2019-10-18 08:20:00 -07:00
David Anderson
6188a727e4 The old name was misleading. run-all-tests.sh is much clearer.
renamed:    scripts/run-bld-tests-readelfobj.sh -> scripts/run-all-tests.sh
2019-10-17 13:43:08 -07:00