mirror of
https://github.com/go-i2p/gojava.git
synced 2025-07-03 17:59:42 -04:00
Added test for scan directory feature and updated readme.
This commit is contained in:
@ -4,23 +4,24 @@ import (
|
||||
"testing"
|
||||
|
||||
"flag"
|
||||
"go/build"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
"go/build"
|
||||
)
|
||||
|
||||
var javaTest = flag.String("javatest", ".*", "Run only java tests matching the regular expression")
|
||||
|
||||
func TestJavaBind(t *testing.T) {
|
||||
verbose = testing.Verbose()
|
||||
tmpDir, err := ioutil.TempDir("", "gojavatest")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
jar := filepath.Join(tmpDir, "gojavatest.jar")
|
||||
if err := bindToJar(jar,
|
||||
"",
|
||||
"testdata",
|
||||
"github.com/sridharv/gomobile-java/bind/testpkg",
|
||||
"github.com/sridharv/gomobile-java/bind/testpkg/secondpkg",
|
||||
"github.com/sridharv/gomobile-java/bind/testpkg/simplepkg",
|
||||
|
Reference in New Issue
Block a user