Hi Liao, That is correct, the script is trying to download binaries from:
http://dist.gem5.org/dist/current/ If you want to download them manually, you might need the full path of the binary the test is trying to download. Once you download them the first time, you won't have to download them again every time you run your tests, unless the binary gets replaced on the website. Wrt this I suggest you to have a look at the -bin-path option in testlib Regards Giacomo From: Liao Xiongfei via gem5-users <gem5-users@gem5.org> Sent: 14 October 2020 11:13 To: gem5-users@gem5.org Cc: Liao Xiongfei <liao.xiong...@huawei.com> Subject: [gem5-users] Exceptions and errors when running tests with gem5 release 20.1 Hi, I tried to run tests in the folder $GEM5_HOME/tests using the below command: "python main.py run". However, I saw lots of exceptions from Python and thus many tests failed. One of the error message is as below. Traceback (most recent call last): File "/usr/lib/python3.6/http/client.py", line 897, in _get_hostport port = int(host[i+1:]) ValueError: invalid literal for int() with base 10: 'Rich' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/working/gem5_sim/gem5-20.1/tests/../ext/testlib/runner.py", line 201, in setup fixture.setup(testitem) File "/home/working/gem5_sim/gem5-20.1/tests/gem5/fixture.py", line 129, in setup self._setup(testitem) File "/home/working/gem5_sim/gem5-20.1/tests/gem5/fixture.py", line 321, in _setup self._download() File "/home/working/gem5_sim/gem5-20.1/tests/gem5/fixture.py", line 306, in _download urllib.request.urlretrieve(self.url, self.filename) File "/usr/lib/python3.6/urllib/request.py", line 248, in urlretrieve with contextlib.closing(urlopen(url, data)) as fp: File "/usr/lib/python3.6/urllib/request.py", line 223, in urlopen return opener.open(url, data, timeout) File "/usr/lib/python3.6/urllib/request.py", line 526, in open response = self._open(req, data) File "/usr/lib/python3.6/urllib/request.py", line 544, in _open '_open', req) File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain result = func(*args) File "/usr/lib/python3.6/urllib/request.py", line 1353, in http_open return self.do_open(http.client.HTTPConnection, req) File "/usr/lib/python3.6/urllib/request.py", line 1293, in do_open h = http_class(host, timeout=req.timeout, **http_conn_args) File "/usr/lib/python3.6/http/client.py", line 859, in __init__ (self.host, self.port) = self._get_hostport(host, port) File "/usr/lib/python3.6/http/client.py", line 902, in _get_hostport raise InvalidURL("nonnumeric port: '%s'" % host[i+1:]) http.client.InvalidURL: nonnumeric port: 'Rich' Exception raised while setting up fixture for SuiteUID:tests/gem5/asmtest/tests.py:asm-rv64ua-ps-amoadd_d-AtomicSimpleCPU-RISCV-x86_64-opt Test: asm-rv64ua-ps-amoadd_d-AtomicSimpleCPU-RISCV-x86_64-opt Errored >From the error message, Internet access is required to run tests. Which >website does the testing script need to download files from? Can anyone please >help clarify? Thanks. Xiongfei IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
_______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s