dourunlao1642 2017-10-12 01:47
浏览 98
已采纳

如何在ARM上测试Google Go二进制文件?

Basically, I want to test Google Go compiler binary package on my aarch64 Linux machine. The package was available here: https://golang.org/dl/

As the platform is not any OS on x86, I am a bit worried if the binary package would work fine or not. My question is how to test.

I have written a simple GO codes, built them, and ran. So far so good. However, I am not a GO programmer. Thus, I could not be so sure yet that the GO compiler binary package works fine.

If it were not Google GO compiler but GDB for example, I would run make check. If the outcome is not very different from the one that I get on x86, I would be relieved. I do not know what's the preferred way of testing. Any popular test suite?

I do see the test sub directory in the tar ball. What is the sub directory for? If it is testing after porting or so, how do we use it? I could not find documentation in the tarball. I could not find any appropriate texts from Google search either.

Thank you so much for your help in advance!

  • 写回答

1条回答 默认 最新

  • douxiapi4381 2017-10-12 02:48
    关注

    When installing go from source tests are run to make sure all is well, generally there is no real reason to do this with a binary install. However if you wish to test anyway just run go test std to make sure the standard library tests all run fine.

    If you are really paranoid you can run ./all.bash in the go source directory (user/local/go/src IIRC) to rebuild from source and run tests on, well, everything. I am not sure how much more (if anything) is actually tested compared to just running the standard library tests though.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 latex投稿显示click download
  • ¥15 请问读取环境变量文件失败是什么原因?
  • ¥15 在若依框架下实现人脸识别
  • ¥15 网络科学导论,网络控制
  • ¥100 安卓tv程序连接SQLSERVER2008问题
  • ¥15 利用Sentinel-2和Landsat8做一个水库的长时序NDVI的对比,为什么Snetinel-2计算的结果最小值特别小,而Lansat8就很平均
  • ¥15 metadata提取的PDF元数据,如何转换为一个Excel
  • ¥15 关于arduino编程toCharArray()函数的使用
  • ¥100 vc++混合CEF采用CLR方式编译报错
  • ¥15 coze 的插件输入飞书多维表格 app_token 后一直显示错误,如何解决?