forked from OSGeo/gdal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create tag v3.8.1
- Loading branch information
Showing
1,785 changed files
with
353,907 additions
and
98,009 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
|
||
set -eu | ||
|
||
CMAKE_ARGS=( | ||
"-DUSE_CCACHE=ON" \ | ||
"-DCMAKE_BUILD_TYPE=Release" \ | ||
"-DCMAKE_INSTALL_PREFIX=/usr" \ | ||
"-DGDAL_USE_TIFF_INTERNAL=ON" \ | ||
"-DGDAL_USE_GEOTIFF_INTERNAL=ON" \ | ||
"-DECW_ROOT=/opt/libecwj2-3.3" \ | ||
"-DMRSID_ROOT=/usr/local" \ | ||
"-DFileGDB_ROOT=/usr/local/FileGDB_API" \ | ||
"-DBUILD_CSHARP_BINDINGS=OFF" \ | ||
"-DBUILD_JAVA_BINDINGS=OFF" \ | ||
"-DGDAL_BUILD_OPTIONAL_DRIVERS=OFF" \ | ||
"-DOGR_BUILD_OPTIONAL_DRIVERS=OFF" \ | ||
"-DOGR_ENABLE_DRIVER_GPKG=ON" \ | ||
) | ||
|
||
cmake ${GDAL_SOURCE_DIR:=..} \ | ||
"${CMAKE_ARGS[@]}" | ||
|
||
make -j$(nproc) | ||
|
||
mkdir old_version | ||
cd old_version | ||
git clone https://github.com/OSGeo/gdal | ||
cd gdal | ||
git checkout 32ec2a989c083fbfd9498169052829640b7df7c6 | ||
mkdir build | ||
cd build | ||
|
||
cmake .. \ | ||
"${CMAKE_ARGS[@]}" | ||
|
||
make -j$(nproc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
|
||
set -eu | ||
|
||
BENCHMARK_STORAGE="file://${PWD}/benchmark_results" | ||
|
||
# Use time.process_time for more reliability on VMs | ||
BENCHMARK_OPTIONS=( | ||
"--benchmark-storage=${BENCHMARK_STORAGE}" \ | ||
"--benchmark-timer=time.process_time" \ | ||
) | ||
|
||
# Dry run to hopefully stabilize later timings | ||
(cd old_version/gdal/build; source ../scripts/setdevenv.sh; pytest autotest/benchmark "${BENCHMARK_OPTIONS[@]}" --capture=no -ra -vv) | ||
|
||
# Run reference (old) build and save its results | ||
(cd old_version/gdal/build; source ../scripts/setdevenv.sh; pytest autotest/benchmark "${BENCHMARK_OPTIONS[@]}" --benchmark-save=ref --capture=no -ra -vv) | ||
|
||
# Run target build and compare its results to the reference one. | ||
# Fail if we get results 20% slower or more. | ||
# Retry if that fails a first time. | ||
BENCHMARK_COMPARE_OPTIONS=( | ||
"--benchmark-compare-fail=min:20%" \ | ||
"--benchmark-compare=0001_ref" \ | ||
) | ||
|
||
(source ${GDAL_SOURCE_DIR:=..}/scripts/setdevenv.sh; pytest autotest/benchmark "${BENCHMARK_OPTIONS[@]}" "${BENCHMARK_COMPARE_OPTIONS[@]}" --capture=no -ra -vv || (echo "Retrying..."; pytest autotest/benchmark "${BENCHMARK_OPTIONS[@]}" "${BENCHMARK_COMPARE_OPTIONS[@]}" --capture=no -ra -vv)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/sh | ||
|
||
set -eu | ||
|
||
export CXXFLAGS="--coverage" | ||
export CFLAGS="--coverage" | ||
export LDFLAGS="-lgcov" | ||
|
||
cmake ${GDAL_SOURCE_DIR:=..} \ | ||
-DUSE_CCACHE=ON \ | ||
-DCMAKE_BUILD_TYPE=Debug \ | ||
-DCMAKE_INSTALL_PREFIX=/usr \ | ||
-DGDAL_USE_TIFF_INTERNAL=ON \ | ||
-DGDAL_USE_GEOTIFF_INTERNAL=ON \ | ||
-DECW_ROOT=/opt/libecwj2-3.3 \ | ||
-DMRSID_ROOT=/usr/local \ | ||
-DFileGDB_ROOT=/usr/local/FileGDB_API \ | ||
-DSQLite3_INCLUDE_DIR=/usr/local/install-sqlite-trusted-schema-off/include \ | ||
-DSQLite3_LIBRARY=/usr/local/install-sqlite-trusted-schema-off/lib/libsqlite3.so | ||
|
||
make -j$(nproc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
set -eu | ||
|
||
export OGR_HANA_CONNECTION_STRING='DRIVER=/usr/sap/hdbclient/libodbcHDB.so;HOST=917df316-4e01-4a10-be54-eac1b6ab15fb.hana.prod-us10.hanacloud.ondemand.com;PORT=443;USER=GDALCI;PASSWORD=u7t!Ukeugzq7' | ||
|
||
ctest -V -j $(nproc) | ||
|
||
lcov --directory . --capture --output-file gdal.info 2>/dev/null | ||
cp gdal.info gdal_filtered.info | ||
lcov --remove gdal_filtered.info '/usr/*' --output-file gdal_filtered.info | ||
lcov --remove gdal_filtered.info '/opt/*' --output-file gdal_filtered.info | ||
lcov --remove gdal_filtered.info '*jpeg/libjpeg*' --output-file gdal_filtered.info | ||
lcov --remove gdal_filtered.info '*pcraster/libcsf*' --output-file gdal_filtered.info | ||
lcov --remove gdal_filtered.info '*googletest-src*' --output-file gdal_filtered.info | ||
genhtml -o ./coverage_html --ignore-errors source --num-spaces 2 gdal_filtered.info >/dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.