mirror of
https://github.com/golang/go
synced 2024-11-26 15:06:52 -07:00
allow files to be named on the command line
R=rsc DELTA=3 (1 added, 1 deleted, 1 changed) OCL=19485 CL=19485
This commit is contained in:
parent
d495372509
commit
8b8630c6cf
@ -6,13 +6,13 @@
|
|||||||
# Using all the test*.go files in the current directory, write out a file
|
# Using all the test*.go files in the current directory, write out a file
|
||||||
# _testmain.go that runs all its tests. Compile everything and run the
|
# _testmain.go that runs all its tests. Compile everything and run the
|
||||||
# tests.
|
# tests.
|
||||||
|
# If files are named on the command line, use them instead of test*.go.
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
gofiles=$(echo test*.go)
|
gofiles=${*:-$(echo test*.go)}
|
||||||
ofiles=$(echo $gofiles | sed 's/\.go/.6/g')
|
ofiles=$(echo $gofiles | sed 's/\.go/.6/g')
|
||||||
files=$(echo $gofiles | sed 's/\.go//g')
|
files=$(echo $gofiles | sed 's/\.go//g')
|
||||||
echo $ofiles
|
|
||||||
|
|
||||||
for i in $gofiles
|
for i in $gofiles
|
||||||
do
|
do
|
||||||
|
Loading…
Reference in New Issue
Block a user