[gdal-dev] How to run autotest

Fengting Chen fengting.chen at oracle.com
Tue Apr 9 13:48:20 PDT 2019


I did run scripts/setdevenv.sh and the path looks correct.

ogrinfo runs ok too:

bash-4.2$ ogrinfo
Usage: ogrinfo [--help-general] [-ro] [-q] [-where 
restricted_where|@filename]
                [-spat xmin ymin xmax ymax] [-geomfield field] [-fid fid]
                [-sql statement|@filename] [-dialect sql_dialect] [-al] 
[-rl] [-so] [-fields={YES/NO}]
                [-geom={YES/NO/SUMMARY}] [[-oo NAME=VALUE] ...]
                [-nomd] [-listmdd] [-mdd domain|`all`]*
                [-nocount] [-noextent] [-wkt_format WKT1|WKT2|...]
                datasource_name [layer [layer ...]]

Thanks,

-Fengting

On 4/9/2019 3:01 PM, Andrew C Aitchison wrote:
> On Tue, 9 Apr 2019, Fengting Chen wrote:
>
>> gdalinfo and gdal_translate are working fine. just pytest failed with 
>> the same error.
>>
>> Here is my configure:
>>
>> ./configure --prefix=${PREFIX} \
>>   --without-libtool \
>>   --disable-rpath \
>>   --with-libz=internal \
>>   --with-png=internal \
>>   --with-libtiff=internal \
>>   --with-geotiff=internal \
>>   --with-jpeg=internal \
>>   --with-gif=internal \
>>   --without-pg \
>>   --without-sqlite3 \
>>   --without-expat \
>>   --without-odbc \
>>   --with-curl=/usr/bin/curl-config \
>>   --without-perl \
>>   --without-pcre \
>>   --with-hdfs=no \
>>   --with-python=/scratch/SDK/Python-2.7.5/dist/bin/python \
>>   --with-proj=/scratch/SDK/proj-6.0.0/dist
>>
>> After that:
>>
>> make clean
>> make -j8 -s
>> cd apps; make -s test_ogrsf; cd ..
>>
>> -Fengting
>
> If you are running ogr tests, you might wish to try
>     ogrinfo
> first.
>
> If you didn't install the gdal you wish to test,
> I think you need to run the script
>   scripts/setdevenv.sh
> so that the test gdal is used.
>


More information about the gdal-dev mailing list