File tree Expand file tree Collapse file tree 5 files changed +34
-33
lines changed Expand file tree Collapse file tree 5 files changed +34
-33
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- # --- check nothing bombs when changing packing
4
- # --- for now limited to just a few packing schemes
3
+ # (C) Copyright 2005- ECMWF.
4
+ #
5
+ # This software is licensed under the terms of the Apache Licence Version 2.0
6
+ # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
7
+ #
8
+ # In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
9
+ # virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
10
+ #
11
+
12
+ # Check nothing bombs when changing packing
5
13
6
14
. ./include.ctest.sh
7
15
Original file line number Diff line number Diff line change 10
10
11
11
. ./include.ctest.sh
12
12
13
- # ---------------------------------------------------------
14
- # This is the test for the JIRA issue ECC-XXXX
15
- # < Add issue summary here >
16
- # ---------------------------------------------------------
17
-
18
- REDIRECT=/dev/null
19
-
20
- label=" grib_cmp_paramtype_test" # Change prod to bufr or grib etc
13
+ label=" grib_cmp_paramtype_test"
21
14
tempGrib=temp.$label .grib
22
15
tempFilt=temp.$label .filt
23
16
Original file line number Diff line number Diff line change
1
+ /*
2
+ * (C) Copyright 2005- ECMWF.
3
+ *
4
+ * This software is licensed under the terms of the Apache Licence Version 2.0
5
+ * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
6
+ *
7
+ * In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
8
+ * virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
9
+ */
10
+
1
11
#include < stdlib.h>
2
12
#include < stdio.h>
3
13
#include < string.h>
Original file line number Diff line number Diff line change 10
10
11
11
. ./include.ctest.sh
12
12
13
- # ---------------------------------------------------------
14
- # This is the test for the JIRA issue ECC-XXXX
15
- # < Add issue summary here >
16
- # ---------------------------------------------------------
17
-
18
- REDIRECT=/dev/null
19
-
20
- label=" grib_paramtypeconcept_all_pdtn" # Change prod to bufr or grib etc
13
+ label=" grib_paramtypeconcept_test"
21
14
tempGrib=temp.$label .grib
22
- tempText=temp.$label .txt
23
- rm -f $tempGrib $tempText
15
+
16
+ if [ $ECCODES_ON_WINDOWS -eq 1 ]; then
17
+ echo " $0 : This test is currently disabled on Windows"
18
+ exit 0
19
+ fi
24
20
25
21
sample_grib2=$ECCODES_SAMPLES_PATH /GRIB2.tmpl
26
22
latestOfficial=$( ${tools_dir} /grib_get -p tablesVersionLatestOfficial $sample_grib2 )
@@ -30,7 +26,6 @@ if [ -f "$latest_codetable_file" ]; then
30
26
for pdtn in $pdtns ; do
31
27
# echo "Doing $pdtn "
32
28
${tools_dir} /grib_set -s tablesVersion=$latestOfficial ,productDefinitionTemplateNumber=$pdtn $sample_grib2 $tempGrib
33
- ${tools_dir} /grib_get -p paramtype $tempGrib
34
29
paramtype=$( ${tools_dir} /grib_get -p paramtype $tempGrib )
35
30
if [[ $paramtype == ' unknown' ]]; then
36
31
echo " productDefinitionTemplateNumber=$pdtn : paramtype not defined"
@@ -40,4 +35,4 @@ if [ -f "$latest_codetable_file" ]; then
40
35
fi
41
36
42
37
# Clean up
43
- rm -f $tempGrib $tempText
38
+ rm -f $tempGrib
Original file line number Diff line number Diff line change 10
10
11
11
. ./include.ctest.sh
12
12
13
- # ---------------------------------------------------------
14
- # This is the test for the JIRA issue ECC-XXXX
15
- # < Add issue summary here >
16
- # ---------------------------------------------------------
17
-
18
- REDIRECT=/dev/null
19
-
20
13
label=" grib_timespan_concept_test"
21
14
tempGrib=temp.$label .grib
22
- tempText=temp.$label .txt
23
15
tempFilt=temp.$label .filt
24
- rm -f $tempGrib $tempText $tempFilt
16
+
17
+ if [ $ECCODES_ON_WINDOWS -eq 1 ]; then
18
+ echo " $0 : This test is currently disabled on Windows"
19
+ exit 0
20
+ fi
25
21
26
22
sample_grib2=$ECCODES_SAMPLES_PATH /GRIB2.tmpl
27
23
latestOfficial=$( ${tools_dir} /grib_get -p tablesVersionLatestOfficial $sample_grib2 )
@@ -41,7 +37,6 @@ if (defined(lengthOfTimeRange)){
41
37
write;
42
38
EOF
43
39
${tools_dir} /grib_filter -o $tempGrib $tempFilt $sample_grib2
44
- ${tools_dir} /grib_get -p timeSpan $tempGrib
45
40
timeSpan=$( ${tools_dir} /grib_get -p timeSpan $tempGrib )
46
41
if [[ $timeSpan == ' unknown' ]]; then
47
42
echo " productDefinitionTemplateNumber=$pdtn : timeSpan not defined"
51
46
fi
52
47
53
48
# Clean up
54
- rm -f $tempGrib $tempText
49
+ rm -f $tempGrib
You can’t perform that action at this time.
0 commit comments