Skip to content

Revise example test suite#63

Merged
rouson merged 9 commits intomainfrom
revise-example-test-suite
May 10, 2025
Merged

Revise example test suite#63
rouson merged 9 commits intomainfrom
revise-example-test-suite

Conversation

@rouson
Copy link
Copy Markdown
Contributor

@rouson rouson commented May 7, 2025

This PR

  1. Moves and renames example/example-test-suite to demo/,
  2. Adds demo/fpm.toml and sets up an fpm-inspired directory tree: demo/src, demo/test,
  3. Updates & expands demo/test/specimen_test_m to leverage Julienne operators,
  4. Updates the root-directory README.md accordingly,
  5. Deprecates the vector_* types as redundant with operator(.all.), and
  6. Adds example/README.md redirecting readers to ../demo except for the string-handling examples.

To Do

  • Fix gfortran issue below.\
  • Add an example of a skipped test
A specimen_t object
At line 29 of file build/dependencies/julienne/src/julienne/julienne_test_diagnosis_s.F90
Fortran runtime error: Index '2' of dimension 1 of array '__tmp_type_test_diagnosis_t_rank_1' above upper bound of 1

@rouson rouson requested a review from Copilot May 8, 2025 06:12
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR revises and reorganizes the example test suite by moving and renaming files from the "example" directory to a new "demo" directory and updating related documentation.

  • The example test modules have been removed, and their functionality migrated into the new demo structure.
  • A new fpm.toml file and updated documentation complete the migration, and several tests have been updated to leverage the new Julienne operators.

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
example/example-test-suite/specimen_test_m.F90 Removed as part of migration to the new demo structure
example/example-test-suite/scalar_and_vector_test_description_m.F90 Removed as part of migration
example/README.md Added redirect message to point users to the demo directory
demo/test/specimen_test_m.F90 New test module leveraging Julienne operators and updated test logic
demo/src/specimen_m.F90 Updated specimen module: changed zero() to return a real value and added one()
demo/include/language-support.F90 New file for compiler-dependent configuration
demo/fpm.toml New FPM manifest file with dependency specification
demo/README.md Updated documentation to reflect the new test suite structure
README.md Updated global README to refer to the demonstration test suite

Comment thread demo/README.md Outdated
Comment thread demo/README.md Outdated
Comment thread demo/test/specimen_test_m.F90 Outdated
@rouson
Copy link
Copy Markdown
Contributor Author

rouson commented May 8, 2025

@ktras this PR is ready for review.

@rouson
Copy link
Copy Markdown
Contributor Author

rouson commented May 8, 2025

@ktras I let Co-Pilot do a review. It caught a few typos and made suggestions that I have accepted. :)

@rouson rouson requested a review from ktras May 8, 2025 19:31
@rouson rouson force-pushed the revise-example-test-suite branch from bbd4059 to 9e746c7 Compare May 9, 2025 03:09
rouson and others added 9 commits May 8, 2025 20:27
This commit
1. Moves/renames example/example-test-suite to demo/,
2. Adds fpm.toml to demo/, sets up an fpm-inspired directory tree,
3. Updates & expands specimen_test_m to leverage Julienne operators,
4. Updates the root-directory README.md accordingly,
5. Deprecates vector_* types as redundant with operator(.all.), and
6. Adds example/README.md redirectoring readers to ../demo except
   for the string-handling examples.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@rouson rouson force-pushed the revise-example-test-suite branch from 9e746c7 to 6539c4a Compare May 9, 2025 03:28
Copy link
Copy Markdown
Collaborator

@ktras ktras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rouson rouson merged commit 9fd8749 into main May 10, 2025
8 checks passed
@rouson rouson deleted the revise-example-test-suite branch May 14, 2025 05:14
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.

3 participants