Skip to content

cmake with autotest#350

Merged
jgallagher59701 merged 19 commits into
masterfrom
jhrg/cmake-with-autotest
Apr 20, 2026
Merged

cmake with autotest#350
jgallagher59701 merged 19 commits into
masterfrom
jhrg/cmake-with-autotest

Conversation

@jgallagher59701

@jgallagher59701 jgallagher59701 commented Apr 5, 2026

Copy link
Copy Markdown
Member

Cmake with autotest

Change how the libdap4 cmake build runs the integration tests (aka. the autotool/autotest tests).

The first try at adding a cmake build for ported the tests used a bunch or Python code. It was complicated and really hard to use when a test failed. I have changed to a hybrid approach where cmake is used for the build and sets up ctest to run the unit tests. However, the new approach uses autoconf to set up the autotest tests and builds the tests using the original *.at files. Ctest is then used to run those. But since the shell scripts can be run themselves, it should be easier to use the tests when the code is broken. For example, we can use the --baselines=yes option to the scripts to build baselines for tests.

This change also removes ~1,000 lines of code.

Comment thread .github/workflows/cmake.yml Outdated
Comment thread tests/configure.ac Outdated
Comment thread tests/CMakeLists.txt Outdated
jgallagher59701 and others added 4 commits April 20, 2026 13:12
Co-authored-by: Hannah Robertson <hannahilea@users.noreply.github.com>
Co-authored-by: Hannah Robertson <hannahilea@users.noreply.github.com>
@sonarqubecloud

Copy link
Copy Markdown

@jgallagher59701 jgallagher59701 merged commit 9b0e1e0 into master Apr 20, 2026
7 checks passed
@jgallagher59701 jgallagher59701 deleted the jhrg/cmake-with-autotest branch April 20, 2026 21:03
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.

2 participants