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

Ctest for testing (Cmake) #15

Open
13 of 16 tasks
Tracked by #5
Iximiel opened this issue Aug 2, 2023 · 2 comments
Open
13 of 16 tasks
Tracked by #5

Ctest for testing (Cmake) #15

Iximiel opened this issue Aug 2, 2023 · 2 comments

Comments

@Iximiel
Copy link
Owner

Iximiel commented Aug 2, 2023

Setting up ctest for doing the tests

the config files have the following options:

  • type usually are a type of plumed input can be
    • simplemd runs a simplemd simulations (does not use args but needs a in file)
    • driver usually tests a input for plumed driver
    • sum_hills tests a plumed sum_hills input
    • make this compiles a test program that depends on plumed as a library and runs it
    • plumed a generic call to the plumed executable
    • python tests a python script
  • arg the arguments to pass to plumed
  • plumed_modules the module necessaries for running the test
  • plumed_needs plumed needs some specific components to be activated to run the test
  • mpiprocs activates the run with mpi and specifies the number of processors
  • extra_files this copies files in other directories (usually in ../../trajectories) and copies them in the working directory
  • PLUMED_ALLOW_SKIP_ON_TRAVIS -used only in isdb/rt-saxs-gpu?-
  • plumed_language specify the test file to be compiled in some make type tests
  • PLUMED_NUM_THREADS (sometimes) exported to limit the number of omp threads used by plumed
  • plumed_regtest_before and plumed_regtest_after defines two function that run before or after the regtests
@Iximiel Iximiel mentioned this issue Aug 2, 2023
17 tasks
@Iximiel
Copy link
Owner Author

Iximiel commented Aug 25, 2023

plumed_language specify the test file to be compiled in some make type tests

This is done automatically, I must move the tests for c11 and Fortran2008 in the CMakeLists as a language check and not in the tests

@Iximiel
Copy link
Owner Author

Iximiel commented Aug 28, 2023

I need to add checking for tests (in the special test directory 'testIntegrity'):

  • exporting variables
  • importing extrafiles
  • presence of modules or extra components
  • plumed_regtest_before
  • plumed_regtest_after
  • plumed_custom_skip
  • plumed subcommands:
    • plain plumed
    • plumed driver
    • plumed simplemd
    • plumed sum_hills
  • (c)make tests are compiled correcly

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

No branches or pull requests

1 participant