github.com/ncruces/go-sqlite3@v0.15.1-0.20240520133447-53eef1510ff0/.github/workflows/build-test.sh (about)

     1  #!/usr/bin/env bash
     2  set -euo pipefail
     3  
     4  echo 'set -eu' > test.sh
     5  
     6  for p in $(go list ./...); do
     7    dir=".${p#github.com/ncruces/go-sqlite3}"
     8    name="$(basename "$p").test"
     9    (cd ${dir}; go test -c)
    10    [ -f "${dir}/${name}" ] && echo "(cd ${dir}; ./${name} ${TESTFLAGS})" >> test.sh
    11  done