mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-12 05:59:14 +00:00
11 lines
301 B
Bash
Executable File
11 lines
301 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
echo 'set -eu' > test.sh
|
|
|
|
for p in $(go list ./...); do
|
|
dir=".${p#github.com/ncruces/go-sqlite3}"
|
|
name="$(basename "$p").test"
|
|
(cd ${dir}; go test -c ${BUILDFLAGS:-})
|
|
[ -f "${dir}/${name}" ] && echo "(cd ${dir}; ./${name} ${TESTFLAGS:-})" >> test.sh
|
|
done |