mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-12 05:59:14 +00:00
18 lines
320 B
Bash
Executable File
18 lines
320 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
cd -P -- "$(dirname -- "$0")"
|
|
|
|
rm -rf gorm/ tests/
|
|
git clone --filter=blob:none --branch=v1.25.1 https://github.com/go-gorm/gorm.git
|
|
mv gorm/tests tests
|
|
rm -rf gorm/
|
|
|
|
patch -p1 -N < tests.patch
|
|
|
|
cd tests
|
|
go mod tidy && go work use . && go test
|
|
|
|
cd ..
|
|
rm -rf tests/
|
|
go work use -r . |