Code Monkey home page Code Monkey logo

Comments (7)

stsp avatar stsp commented on June 3, 2024
$ test/test_dos.py PPDOSGITTestCase.test_fpu_qemu_f2xm1_SIM_SIM
Test PP-DOS-GIT  FPU (Qemu)           f2xm1     SIM_SIM                          ... ERROR

======================================================================
ERROR: Test PP-DOS-GIT  FPU (Qemu)           f2xm1     SIM_SIM                         
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/stas/src/dosemu2/test/fpu/qemu.py", line 42, in do_test_qemu
    qemu_test_item(self, test, x, y, z)
  File "/home/stas/src/dosemu2/test/fpu/qemu.py", line 68, in qemu_test_item
    copy(efil.with_suffix('.exe'), self.workdir / "fputest.exe")
  File "/usr/lib/python3.11/shutil.py", line 419, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib/python3.11/shutil.py", line 256, in copyfile
    with open(src, 'rb') as fsrc:
         ^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/stas/src/dosemu2/test/fpu/test-i386-f2xm1.exe'

----------------------------------------------------------------------
Ran 1 test in 0.003s

FAILED (errors=1)

from dosemu2.

andrewbird avatar andrewbird commented on June 3, 2024

Sorry, I forgot to say you need to do make -C test/fpu clean all in the build directory first.

from dosemu2.

stsp avatar stsp commented on June 3, 2024

Would you like to add some makefile
targets, so that instead of running test_dos.py
directly with broken deps, I'd run it via make,
getting the deps built as needed?

from dosemu2.

stsp avatar stsp commented on June 3, 2024

There are obviously the failures in the
test-case itself:

FAIL: f2xm1 0xb.3cae6b3899e20cep-5, expected 0x8.d1949341f4b6bafp-5 or
0x8.d1949341f4b6bbp-5, got 0x8.d1949341f4b6bb1p-5\r\n

Note that the last 2 digits do match:
0x8.d1949341f4b6bbp-5 matches 0x8.d1949341f4b6bb1p-5.
So the "got" answer is just a more precise
variation of what was expected.

from dosemu2.

stsp avatar stsp commented on June 3, 2024

Instead of the literal comparison, you just
need to subtract reply from expected answer,
take absolute value and make sure it doesn't
exceed the threshold.

from dosemu2.

stsp avatar stsp commented on June 3, 2024

Maybe you can keep the literal comparisons
for native cpu backends (like kvm) where
the exact match is guaranteed by testing
the physical CPU and using the physical
CPU for getting the expected values.
But I suppose even the physical CPUs may
alter the rounding algorithms eventually.

from dosemu2.

stsp avatar stsp commented on June 3, 2024

Or you can try just avoid the last
digit by the use of the different output
formatter.

from dosemu2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.