Skip to content

Commit

Permalink
Add c tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert committed Feb 13, 2025
1 parent 747803a commit 7c60799
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions recipes/stdhep/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ outputs:
- test -f $PREFIX/include/stdhep/stdver.h

- cd vendor/StdHEP/example/
- $FC listStdHep.F -o listStdHep $FFLAGS -std=legacy -I$PREFIX/include/stdhep $LDFLAGS -lstdhep -lFmcfio -lstdhepC
- $FC listStdHep.F -o listStdHep $FFLAGS -std=legacy -I$PREFIX/include/stdhep $LDFLAGS -lstdhep
# - ./listStdHep
# - test -f listStdHep.lpt

Expand Down Expand Up @@ -192,6 +192,9 @@ outputs:
- vendor/StdHEP/example/readPDG.F
- vendor/StdHEP/example/testCInOut.c
- vendor/StdHEP/example/testCInOut.sh
- vendor/StdHEP/example/testpdgtran.F
- vendor/StdHEP/example/testcsvpdg.F
- vendor/StdHEP/mass_width_2006.csv
requires:
- {{ compiler('fortran') }}
- {{ compiler('cxx') }}
Expand Down Expand Up @@ -281,6 +284,7 @@ outputs:
- test -f $PREFIX/include/stdhep/stdver.h

- cd vendor/StdHEP/example/
- rm -f *.lpt
- $FC listStdHep.F -o listStdHep $FFLAGS -std=legacy -I$PREFIX/include/stdhep $LDFLAGS -lstdhep
- ./listStdHep
- test -f listStdHep.lpt
Expand All @@ -293,9 +297,19 @@ outputs:
- ./readPDG
- test -f readPDG.lpt

- $CC $CFLAGS testCInOut.c -o testCInOut -I$PREFIX/include/stdhep $LDFLAGS -lstdhep -lFmcfio
- $CC $CFLAGS testCInOut.c -o testCInOut -I$PREFIX/include/stdhep -I$PREFIX/include/stdhep/mcfio/ $LDFLAGS -lstdhepC -lFmcfio
- bash testCInOut.sh

- $FC testpdgtran.F -o testpdg $FFLAGS -std=legacy -I$PREFIX/include/stdhep $LDFLAGS -lstdhep
- ./testpdg
- test -f testpdgtran.lpt

- $FC testcsvpdg.F -o testcsvpdg $FFLAGS -std=legacy -I$PREFIX/include/stdhep $LDFLAGS -lstdhep
- cp $SRC_DIR/vendor/StdHEP/mass_width_2006.csv .
- export PDG_MASS_TBL=./mass_width_2006.csv
- ./testcsvpdg
- test -f testcsvpdg.lpt

about:
home: https://github.com/mg5amcnlo/mg5amcnlo/tree/3.x/vendor/StdHEP
summary: 'StdHEP: Standard HEP'
Expand Down

0 comments on commit 7c60799

Please sign in to comment.