message: Inline tests
diff: @@ -65,7 +65,41 @@ jobs:
  run: |
  if [[ "$GITHUB_REF" =~ ^(refs/heads/master|refs/tags/v.+)$ && "$GITHUB_REPOSITORY" = "duckdb/duckdb" ]] ; then
  ./scripts/extension-upload.sh linux_amd64
  - ./scripts/extension-upload-test.sh
  - else
  - ./scripts/extension-upload-test.sh local
  fi
  +
  + - name: Test
  + run: |
  + CMAKE_CONFIG=Release
  + EXT_BASE_PATH=build/release
  + FILES="${EXT_BASE_PATH}/extension/*/*.duckdb_extension"
  + EXTENSION_LIST=""
  + for f in $FILES
  + do
  + ext=`basename $f .duckdb_extension`
  + EXTENSION_LIST="${EXTENSION_LIST}-$ext"
  + done
  + mkdir -p testext
  + cd testext
  + cmake -DCMAKE_BUILD_TYPE=${CMAKE_CONFIG} -DTEST_REMOTE_INSTALL="${EXTENSION_LIST}" ..
  + cmake --build . -j --config ${CMAKE_CONFIG}
  + cd ..
  + duckdb_path="testext/duckdb"
  + unittest_path="testext/test/unittest"
  + if [ ! -f "${duckdb_path}" ]; then
  + duckdb_path="testext/${CMAKE_CONFIG}/duckdb.exe"
  + unittest_path="testext/test/${CMAKE_CONFIG}/unittest.exe"
  + fi
  + for f in $FILES
  + do
  + ext=`basename $f .duckdb_extension`
  + install_path=${ext}
  + if [ "$1" = "local" ]
  + then
  + install_path=${f}
  + fi
  + echo ${install_path}
  + ${duckdb_path} -c "INSTALL '${install_path}'"
  + ${duckdb_path} -c "LOAD '${ext}'"
  + done
  + ${unittest_path}
  +
  