#!/bin/sh
set -efu

PYS=${PYS:-"$(py3versions -s 2>/dev/null)"}
TESTPKG=${TESTPKG:-pystac}
TESTDIR=${PWD}/tests
cd "$AUTOPKGTEST_TMP"

for py in $PYS; do
    echo "=== $py ==="
    $py -m pytest -v -k "\
not test_read_remote \
and not test_validate_all \
and not test_validate_all_with_max_n \
and not test_validate_all_with_recusive_off \
and not test_testcases \
and not test_validate_examples \
and not test_validate_all \
and not test_set_field \
and not test_label \
and not test_item_asset \
and not test_null_geometry \
and not test_non_hierarchical_relative_link \
and not test_apply_bitfields \
and not test_validate_classification \
and not test_validate \
and not test_set_variables \
and not test_set_dimensions \
and not test_asset_bands \
and not test_bands \
and not test_cloud_cover \
and not test_validate_eo \
and not test_validate_collection \
and not test_validate_item \
and not test_attributes \
and not test_modify \
and not test_asset_bands \
and not test_validate_raster \
and not test_collection_validate \
and not test_retry_stac_io \
and not test_item_validate \
and not test_all \
and not test_required \
and not PointcloudTest \
and not ItemScientificExtensionTest \
and not CollectionScientificExtensionTest \
and not ItemVersionExtensionTest \
and not CollectionVersionExtensionTest \
and not SatTest \
and not ViewTest \
and not TimestampsTest \
and not AssetStorageExtensionTest \
and not ProjectionTest" \
${TESTDIR} 2>&1
done
