Skip to content

added examples and py utils #159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Feb 12, 2022
Merged
Prev Previous commit
Next Next commit
Update examples/embedding/main_test.go
Co-authored-by: Sebastien Binet <binet@cern.ch>
  • Loading branch information
drew-512 and sbinet authored Feb 12, 2022
commit 249e14e5ee022065e5cd45f1fcee41b6868cfe46
5 changes: 4 additions & 1 deletion examples/embedding/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ var regen = flag.Bool("regen", false, "regenerate golden files")

func TestEmbeddedExample(t *testing.T) {

cmd := exec.Command("go", "build", ".")
tmp, err := os.MkdirTemp("", "go-python-embedding-")
if err != nil { t.Fatal(err) }
defer os.RemoveAll(tmp)
cmd := exec.Command("go", "build", "-o", filepath.Join(tmp,"exe"), ".")
err := cmd.Run()
if err != nil {
t.Fatalf("failed to compile embedding example: %v", err)
Expand Down