Skip to content

Commit

Permalink
fix(e2e:cli): build for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
emil14 committed Jan 25, 2025
1 parent e976768 commit 5323e39
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions e2e/cli/build_windows/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,16 @@ func TestBuildWindows(t *testing.T) {
require.NoError(t, cmd.Run())

cmd = exec.Command("neva", "build", "--target-os=windows", "--target-arch=amd64", "src")
require.NoError(t, cmd.Run())
require.Equal(t, 0, cmd.ProcessState.ExitCode())
out, err := cmd.CombinedOutput()
require.NoError(t, err)
if code := cmd.ProcessState.ExitCode(); code != 0 {
t.Log(string(out))
t.Fatal("failed to build windows executable")
}
defer func() {
require.NoError(t, os.Remove("output.exe"))
}()

_, err := os.Stat("output.exe")
_, err = os.Stat("output.exe")
require.NoError(t, err)
}

0 comments on commit 5323e39

Please sign in to comment.