mirror of
https://github.com/omniscale/magnacarto.git
synced 2025-09-28 12:33:33 +02:00
12 lines
No EOL
262 B
Bash
12 lines
No EOL
262 B
Bash
DEST=regression_cases_test.go
|
|
cat <<EOF > $DEST
|
|
package regression
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
EOF
|
|
|
|
|
|
ls -1 cases | perl -ne 's/\n$//g; $fname = $_; $fname =~ s/-/_/g; print "func Test_$fname(t *testing.T) { testIt(t, testCase{Name: \"$_\"}) }\n"' | gofmt >> $DEST |