aboutsummaryrefslogtreecommitdiff
path: root/mkdeps.sh
blob: 1ff0acbbc583081aaf6fe17dc9a99992e149d618 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
set -eu

export LANG=POSIX.UTF-8


find tests/functional/*.go -not -name extension.go | varlist 'functional-tests-butone.go'
find tests/functional/*.go | varlist 'functional-tests.go'
find tests/fuzz/*.go       | varlist 'fuzz-targets.go'
find tests/benchmarks/*.go | varlist 'benchmarks.go'


tfiles() {
	find tests/functional/*.go tests/fuzz/*.go tests/benchmarks/*.go | sort
}

tfiles | sed 's/^\(.*\)\.go$/\1.a:\t\1.go/'
tfiles | sed 's/^\(.*\)\.go$/\1.bin:\t\1.a/'
tfiles | sed 's/^\(.*\)\.go$/\1.bin-check:\t\1.bin/'