Skip to content

Console Output

+ PYTHONPATH=/eda/processor-ci-communication PORT=/dev/ttyACM0 python /eda/processor-ci-communication/run_tests.py

Running tests...
----------------------------------------------------------------------
..FFFFFFFFFFFFF
======================================================================
FAIL [0.107s]: test_jalr (test_00.TestTypeIBasic.test_jalr)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/eda/processor-ci-communication/tests/test_00.py", line 112, in test_jalr
    self.assertEqual(int.from_bytes(retorno, "big"), 7)
AssertionError: 10 != 7

======================================================================
FAIL [0.107s]: test_jalr_2 (test_00.TestTypeIBasic.test_jalr_2)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/eda/processor-ci-communication/tests/test_00.py", line 119, in test_jalr_2
    self.assertEqual(int.from_bytes(retorno, "big"), 7)
AssertionError: 10 != 7

======================================================================
FAIL [0.109s]: test_lb (test_00.TestTypeIBasic.test_lb)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/eda/processor-ci-communication/tests/test_00.py", line 105, in test_lb
    self.assertEqual(int.from_bytes(retorno, "big"), 0xFF)
AssertionError: 10 != 255

======================================================================
FAIL [0.108s]: test_lh (test_00.TestTypeIBasic.test_lh)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/eda/processor-ci-communication/tests/test_00.py", line 98, in test_lh
    self.assertEqual(int.from_bytes(retorno, "big"), 0xFFC0)
AssertionError: 10 != 65472

======================================================================
FAIL [0.107s]: test_lw (test_00.TestTypeIBasic.test_lw)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/eda/processor-ci-communication/tests/test_00.py", line 91, in test_lw
    self.assertEqual(int.from_bytes(retorno, "big"), 0x809)
AssertionError: 10 != 2057

======================================================================
FAIL [0.106s]: test_ori (test_00.TestTypeIBasic.test_ori)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/eda/processor-ci-communication/tests/test_00.py", line 35, in test_ori
    self.assertEqual(int.from_bytes(retorno, "big"), 7)
AssertionError: 10 != 7

======================================================================
FAIL [0.106s]: test_slli (test_00.TestTypeIBasic.test_slli)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/eda/processor-ci-communication/tests/test_00.py", line 70, in test_slli
    self.assertEqual(int.from_bytes(retorno, "big"), 8)
AssertionError: 10 != 8

======================================================================
FAIL [0.109s]: test_slli_2 (test_00.TestTypeIBasic.test_slli_2)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/eda/processor-ci-communication/tests/test_00.py", line 77, in test_slli_2
    self.assertEqual(int.from_bytes(retorno, "big"), 0x10)
AssertionError: 10 != 16

======================================================================
FAIL [0.108s]: test_slti (test_00.TestTypeIBasic.test_slti)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/eda/processor-ci-communication/tests/test_00.py", line 49, in test_slti
    self.assertEqual(int.from_bytes(retorno, "big"), 0)
AssertionError: 10 != 0

======================================================================
FAIL [0.109s]: test_slti_2 (test_00.TestTypeIBasic.test_slti_2)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/eda/processor-ci-communication/tests/test_00.py", line 56, in test_slti_2
    self.assertEqual(int.from_bytes(retorno, "big"), 1)
AssertionError: 10 != 1

======================================================================
FAIL [0.111s]: test_sltiu (test_00.TestTypeIBasic.test_sltiu)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/eda/processor-ci-communication/tests/test_00.py", line 63, in test_sltiu
    self.assertEqual(int.from_bytes(retorno, "big"), 1)
AssertionError: 10 != 1

======================================================================
FAIL [0.106s]: test_srli (test_00.TestTypeIBasic.test_srli)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/eda/processor-ci-communication/tests/test_00.py", line 84, in test_srli
    self.assertEqual(int.from_bytes(retorno, "big"), 2)
AssertionError: 10 != 2

======================================================================
FAIL [0.109s]: test_xori (test_00.TestTypeIBasic.test_xori)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/eda/processor-ci-communication/tests/test_00.py", line 42, in test_xori
    self.assertEqual(int.from_bytes(retorno, "big"), 6)
AssertionError: 10 != 6

----------------------------------------------------------------------
Ran 15 tests in 2.013s

FAILED (failures=13)

Generating XML reports...
Traceback (most recent call last):
  File "/eda/processor-ci-communication/run_tests.py", line 27, in <module>
    xmlrunner.XMLTestRunner(output=output).run(test_case)
  File "/usr/lib/python3/dist-packages/xmlrunner/runner.py", line 113, in run
    result.generate_reports(self)
  File "/usr/lib/python3/dist-packages/xmlrunner/result.py", line 674, in generate_reports
    test_runner.output.write(xml_content)
TypeError: write() argument must be str, not bytes