You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want start by thanking the developers for this very useful tool.
I am using fpm to build my own project, elphbolt (https://github.com/nakib/elphbolt). Compared to cmake, I faced one difficulty with fpm related to running a regression test. For elphbolt, and perhaps for a lot of other codes, one needs to prepare a a directory tree with the necessary input files before running a parallel job. I do this with a script as shown below:
#!/bin/bash
# Download data from public repo
curl -X GET "https://nomad-lab.eu/prod/v1/api/v1/uploads/5b-c4JYRSG6qitMFjFUUzQ/raw/?offset=0&length=-1&compress=true" -o 3C-SiC.zip
#Extract data
unzip 3C-SiC.zip
rm 3C-SiC.zip
workdir="./3C-SiC_test_output"
datadir="./3C-SiC/elphbolt_input_data"
inputdir="../test/3C-SiC"
mkdir $workdir
cp $datadir/* $workdir
cp $inputdir/input.nml $workdir
rm -r 3C-SiC
cd $workdir
#gcc+opencoarrays
# if test fails, propagate the error
cafrun -n 2 test_bte_regression || exit -1
cd ..
With cmake, I can add the following to the CMakeLists.txt to run this script:
However, I could not find out how I could achieve this with fpm. It seems like fpm does not allow executing external scripts at the moment, as mentioned here: #923. Would the developers consider adding this feature?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, all!
I want start by thanking the developers for this very useful tool.
I am using
fpm
to build my own project,elphbolt
(https://github.com/nakib/elphbolt). Compared tocmake
, I faced one difficulty withfpm
related to running a regression test. Forelphbolt
, and perhaps for a lot of other codes, one needs to prepare a a directory tree with the necessary input files before running a parallel job. I do this with a script as shown below:With
cmake
, I can add the following to the CMakeLists.txt to run this script:However, I could not find out how I could achieve this with
fpm
. It seems likefpm
does not allow executing external scripts at the moment, as mentioned here: #923. Would the developers consider adding this feature?Best regards,
Nakib
Beta Was this translation helpful? Give feedback.
All reactions