Skip to content

Commit 0d0b028

Browse files
committed
Revert "Fix conda test autoreconf issue by using simple functional tests without build infrastructure"
This reverts commit 02e53c5.
1 parent 02e53c5 commit 0d0b028

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

meta.yaml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ requirements:
3030
test:
3131
commands:
3232
- echo 'Testing FRE-NCtools conda package installation...'
33-
- echo "Environment check:" && pwd && ls -la && echo "PATH=$PATH"
33+
- echo "Installation directory:" && pwd && ls
3434

3535
# Test key installed programs with help flags (allow help commands to exit with any status)
3636
- echo "Testing timavg script..." && which timavg && (timavg -h || echo "timavg help command completed")
@@ -49,15 +49,8 @@ test:
4949
- echo "Testing combine-ncc version..." && (combine-ncc --version || echo "combine-ncc version command completed")
5050
- echo "Testing timavg version..." && (timavg -V || echo "timavg version command completed")
5151

52-
# Simple functional tests that don't require build infrastructure
53-
- echo "Creating simple test data..." && echo 'netcdf test { dimensions: time=2; x=2; variables: double time(time); time:units="days"; float data(time,x); data: time=1,2; data=10,20,30,40; }' > timtest.cdl
54-
- echo "Testing ncgen availability..." && ncgen -o timtest.nc timtest.cdl && test -f timtest.nc && echo "ncgen test PASSED"
55-
- echo "Testing timavg basic functionality..." && timavg -o timout.nc timtest.nc && test -f timout.nc && echo "timavg basic test PASSED"
56-
- echo "Testing ncdump on timavg output..." && ncdump -h timout.nc && echo "ncdump test PASSED"
57-
58-
# Test ncexists functionality
59-
- echo "Testing ncexists functionality..." && ncexists -f timtest.nc -v data && echo "ncexists variable test PASSED"
60-
- echo "Testing ncexists global attribute..." && ncexists -f timtest.nc -g Conventions || echo "ncexists global test completed (no global attr expected)"
52+
# Run actual tests using the repository's test infrastructure
53+
- echo "Setting up test environment..." && mkdir -p test_build && cd test_build && autoreconf -i .. && ./configure && make -j check RUN_EXPENSIVE_TESTS=no TESTS="timeavg/timavg timeavg/timeavg-m"
6154

6255
- echo 'All tests completed - FRE-NCtools installation verified!'
6356

0 commit comments

Comments
 (0)