Skip to content

Commit da32f41

Browse files
Copilotilaflott
andcommitted
Fix conda package tests to avoid make check in test phase
Co-authored-by: ilaflott <6273252+ilaflott@users.noreply.github.com>
1 parent aba7f8a commit da32f41

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

meta.yaml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,26 @@ requirements:
2929

3030
test:
3131
commands:
32-
- echo 'yay! we made it!'
33-
- echo "whereami? what is here...?" && pwd && ls
34-
# - autoreconf -i
35-
# - ./configure
36-
- echo "which timavg is it...? " && which timavg
37-
- echo "timavg -help is...?" && timavg -help
38-
- echo "make check RUN_EXPENSIVE_TESTS=no...?" && make check RUN_EXPENSIVE_TESTS=no
39-
# - make check
32+
- echo 'Testing FRE-NCtools conda package installation...'
33+
- echo "Installation directory:" && pwd && ls
34+
35+
# Test key installed programs with help flags (allow help commands to exit with any status)
36+
- echo "Testing timavg script..." && which timavg && (timavg -h || echo "timavg help command completed")
37+
- echo "Testing ncexists program..." && which ncexists && (ncexists --help || echo "ncexists help command completed")
38+
- echo "Testing combine-ncc program..." && which combine-ncc && (combine-ncc --help || echo "combine-ncc help command completed")
39+
- echo "Testing fregrid program..." && which fregrid && (fregrid --help || echo "fregrid help command completed")
40+
- echo "Testing make_hgrid program..." && which make_hgrid && (make_hgrid --help || echo "make_hgrid help command completed")
41+
42+
# Test some key script utilities exist
43+
- echo "Testing list_ncvars.sh script..." && which list_ncvars.sh && echo "list_ncvars.sh found"
44+
- echo "Testing split_ncvars.pl script..." && which split_ncvars.pl && echo "split_ncvars.pl found"
45+
46+
# Test version reporting for programs that support it (allow version commands to exit with any status)
47+
- echo "Testing version reporting..." && (ncexists --version || echo "ncexists version command completed")
48+
- echo "Testing combine-ncc version..." && (combine-ncc --version || echo "combine-ncc version command completed")
49+
- echo "Testing timavg version..." && (timavg -V || echo "timavg version command completed")
50+
51+
- echo 'All basic tests passed - FRE-NCtools installation is working!'
4052

4153
about:
4254
license: LGPL-3.0

0 commit comments

Comments
 (0)