TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How can I test binary packages automatically?

2 点作者 patrickg超过 8 年前
I have written an OpenSource software (https:&#x2F;&#x2F;speedata.github.io&#x2F;publisher&#x2F;index.html) that generates PDF files and I provide ZIP files for various operating systems (Mac&#x2F;Linux&#x2F;Windows 64 and 32 bit each). Now from time to time I mess up the ZIP files (such as removing the x flag from the binaries).<p>I&#x27;d like to run a simple test from time to time on each of these operating systems (if possible) that does the following:<p>1) download a ZIP file from a given location and extract it 2) change to a directory (a hello world example) 3) run a binary from another path within the ZIP file and check if a PDF file has been generated.<p>Of course I could do a much better check with PDF comparison etc.<p>How can I automate this task? A &quot;free&quot; online solution would be nice, but any automatic testing solution is appreciated.

1 comment

brudgers超过 8 年前
To me, this sounds like the sort of thing that a person will probably have to build themselves...maybe start by automating the build process so that the -x- flag doesn&#x27;t get skipped. Which points out an advantage of building it one&#x27;s self: the tooling can be incremental, modular, and tailored to specific needs and not require learning a third party package and tuning the configuration.<p>Good luck.