Skip to content

Commit 95a6b42

Browse files
committed
litebuild gotestfile support TESTARGS
1 parent 16acba3 commit 95a6b42

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

liteidex/deploy/litebuild/gosrc.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<action id="Get Update Network" menu="Get" img="blue/get.png" cmd="$(GO)" args="get -u -v ." save="all" output="true" codec="utf-8"/>
2828
<action id="Get Force Rebuilding" menu="Get" img="blue/reget.png" cmd="$(GO)" args="get -a -v ." save="all" output="true" codec="utf-8"/>
2929
<action id="Test" img="blue/test.png" key = "Ctrl+T" cmd="$(GO)" args="test $(TESTARGS)" save="all" output="true" codec="utf-8" regex="$(ERRREGEX)" takeall="true" navigate="true"/>
30-
<action id="FileTest" menu="Test" img="blue/filetest.png" key = "Alt+T" cmd="$(GOTOOLS)" args="gotest -f $(EDITOR_FILE_NAME)" save="all" output="true" codec="utf-8" regex="$(ERRREGEX)" takeall="true" navigate="true"/>
30+
<action id="FileTest" menu="Test" img="blue/filetest.png" key = "Alt+T" cmd="$(GOTOOLS)" args="gotest -f $(EDITOR_FILE_NAME) $(TESTARGS)" save="all" output="true" codec="utf-8" regex="$(ERRREGEX)" takeall="true" navigate="true"/>
3131
<action id="TestAll" menu="Test" img="blue/test.png" key = "Ctrl+Alt+T" cmd="$(GO)" args="test $(TESTARGS) ./..." save="all" output="true" codec="utf-8" regex="$(ERRREGEX)" takeall="true" navigate="true"/>
3232
<action id="TestBench" menu="Test" img="blue/testbench.png" cmd="$(GO)" args="test -test.bench=.* $(BENCHMARKARGS)" save="all" output="true" codec="utf-8" regex="$(ERRREGEX)" navigate="true"/>
3333
<action id="TestBuild" menu="Test" img="blue/buildtest.png" cmd="$(GO)" args="test -c -gcflags &quot;-N -l&quot;" save="all" output="true" codec="utf-8" regex="$(ERRREGEX)"/>

liteidex/make_tools.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#!/bin/sh
22

3-
export GOPATH=$PWD:$GOPATH
3+
if [ -z $GOPATH ]; then
4+
export GOPATH=$PWD
5+
else
6+
export GOPATH=$PWD:$GOPATH
7+
fi
8+
49

510
go install -ldflags "-s" -v github.com/visualfc/gotools
611
go install -ldflags "-s" -v github.com/nsf/gocode

0 commit comments

Comments
 (0)