Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUILD BUGFIX: Remove use of BUILT_SOURCES in ncdump directory... #633

Merged
merged 14 commits into from
Nov 16, 2017

Conversation

edhartnett
Copy link
Contributor

@edhartnett edhartnett commented Nov 12, 2017

The incorrect handling of BUILT_SOURCES ctest.c and ctest64.c has been present in the library for at least a decade, since I put it there. ;-) So it's good to get a chance to clean it up.

Fixes #606.

In autotools terminology, "built sources" are source files that are built during configure, instead of shipped in the tarball. Their use introduces dependencies in testing order.

I have changed the ncdump testing so that we no longer need to use built sources. The same stuff is tested, but in a different way.

Current Behavior (with --enable-extra-tests):

  • ctest.c is created from c0.cdl with ncgen.
  • ctest is built and run.
  • CDL of data file is compared to c0.cdl to make sure it's correct.

Current Behavior (without --enable-extra-tests)"

  • ctest.c is copied from ref_ctest.c.
  • ctest is built and run.
  • CDL of data file is compared to c0.cdl to make sure it's correct.
    (Note that this does not actually test ncgen/ncdump. It was just a hack to get around the BUILT_SOURCES problem.)

New behavior:

  • ref_ctest.c is built and run.
  • ctest.c is created from c0.cdl with ncgen.
  • ctest.c and ref_ctest.c are diff'ed to ensure they are the same.
    (Note that ctest.c is never built, but we know it would work because it's exactly the same as ref_ctest.c, which is built.)

This new behavior tests the same things, but without using built sources. This removed the dependency and simplifies both CMakeLists.txt and Makefile.am.

And this also fixes the BUILT_SOURCES problem that prevents make distcheck from working.

See #635 for in-depth discussion of ncdump test dependencies.

@edhartnett edhartnett changed the title Remove use of BUILT_SOURCES in ncdump directory... BUILD BUGFIX: Remove use of BUILT_SOURCES in ncdump directory... Nov 12, 2017
@WardF WardF merged commit 3d4548a into Unidata:master Nov 16, 2017
@edhartnett edhartnett deleted the ejh_ncdump_again branch November 16, 2017 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improper handling of BUILT_SOURCES in ncdump/Makefile.am
2 participants