mirror of
https://github.com/johnkerl/miller.git
synced 2026-08-04 05:23:20 +00:00
36 lines
758 B
Bash
Executable file
36 lines
758 B
Bash
Executable file
#!/bin/bash
|
|
|
|
runner="bash"
|
|
if [ "$1" = "-v" ]; then
|
|
set -x
|
|
runner="bash -x"
|
|
fi
|
|
|
|
set -euo pipefail
|
|
|
|
# ----------------------------------------------------------------
|
|
# GO-SOURCE TESTS
|
|
|
|
# go test -v ./... doesn't work since it triggers unready things in
|
|
# src/github.com/goccmack
|
|
|
|
export GOPATH=$(pwd)
|
|
go test miller/types
|
|
|
|
# ----------------------------------------------------------------
|
|
# COMMAND-LINE TESTS
|
|
$runner u/try-io > u/try-io.out
|
|
$runner u/try-chain > u/try-chain.out
|
|
$runner u/try-verbs > u/try-verbs.out
|
|
$runner u/try-help > u/try-help.out
|
|
$runner u/try-parse > u/try-parse.out
|
|
$runner u/try-cst > u/try-cst.out
|
|
|
|
git diff \
|
|
u/try-io.out \
|
|
u/try-chain.out \
|
|
u/try-verbs.out \
|
|
u/try-parse.out \
|
|
u/try-cst.out
|
|
|
|
echo "Test OK"
|