Skip to content
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

Add tests #13

Open
akavel opened this issue Feb 26, 2016 · 0 comments
Open

Add tests #13

akavel opened this issue Feb 26, 2016 · 0 comments

Comments

@akavel
Copy link
Owner

akavel commented Feb 26, 2016

I think there are some Windows APIs for reading resources from an .exe file on disk. Those could be used to verify that we've built a .syso that results in a correct .exe, with all information in right places. In such case the tests could look like this:

  1. TestExeLinks — this would:
    • run rsrc -ico ... -manifest ... to create a test.syso file
    • run go build dummy.go test.syso and verify it exits successfully, and that an .exe file was created;
  2. TestExeRuns — this would execute same code as TestExeLinks, but then would check that the .exe runs successfully and produces some "Hello-world"-like output on stdout.
  3. TestIco — this would execute TestExeLinks and then try to open it with Windows resources API and check if it contains an icon, and some basic info about this icon.
  4. TestManifest — similar like TestIco, but would verify manifest, and ideally its contents too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant