TEST: Run the Align Sections example pipelines as pipeline tests

Aperta Adatta ai principianti
#1,979 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 6 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
62/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cmake, cpp
Ambito
testing-qa

Direzione di ricerca

Inizia dalla lista PREBUILT_PIPELINE_NAMES in src/Plugins/SimplnxCore/test/CMakeLists.txt (righe 386-411) e controlla come create_pipeline_tests() registra ogni voce. Aggiungi a quella lista le tre pipeline Align_Sections da src/Plugins/SimplnxCore/pipelines/Align_Sections_Examples/ e verifica che l'archivio di input Data/ venga scaricato per esse. È completato quando ctest esegue tutti e tre i test delle pipeline di allineamento e questi passano.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Testing

Summary

The three example pipelines in src/Plugins/SimplnxCore/pipelines/Align_Sections_Examples/ are not run by any test. A change that breaks them is found only by running them by hand.

How it works now. create_pipeline_tests() turns each pipeline in a plugin's PREBUILT_PIPELINE_NAMES list into a ctest entry. The SimplnxCore list (test/CMakeLists.txt lines 386-411) has 9 of the 41 SimplnxCore example pipelines. None of the three alignment pipelines is listed:

  • Align_Sections_Backwards_Compatibility.d3dpipeline
  • Align_Sections_No_File.d3dpipeline
  • Align_Sections_User_Input.d3dpipeline

Why it is needed. #1908 item L78 was a defect in exactly this path: the backwards-compatibility pipeline read a legacy shift file that was missing its first row, and no test noticed. The batch 4 fix updates the pipelines and the input archive (align_sections_input_v2.tar.gz), but they are still checked only by hand.

Where it applies. The three pipelines above and the SimplnxCore PREBUILT_PIPELINE_NAMES list. They read their inputs from the Data/ folder, so the tests need the input archive to be downloaded. Whether the other unlisted SimplnxCore example pipelines should be registered in the same change is still open.

Found during the review of the #1908 batch 4 changes. No open issue covered it.

Lingua principale
C++
Stelle
18
Fork
15
Merge medio
4g 23h
PR unite (30g)
42

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di BlueQuartzSoftware/simplnx

Tutte le issue di BlueQuartzSoftware/simplnx

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.