adonmo / meos

Mobility Engine, Open Source
https://adonmo.github.io/meos/
MIT License
21 stars 3 forks source link

Support 32 bit architectures #14

Open chaitan94 opened 4 years ago

chaitan94 commented 4 years ago

Right now MEOS does not support 32 bit architectures. I am not sure if there is any demand for this issue right now, so I might not invest more into this right now. However, putting the details here in case anyone wants to take a stab at it.

How to test in a 32 bit environment

We can spin up a temporary container with 32 bit ubuntu with a volume mapping using:

$ docker run --rm -it -v $(pwd):/app i386/ubuntu:rolling bash

Then we can build and test MEOS within the container

# apt update
# apt install python3-pip git
# cd /app
# python3 -m pip install .
# python3 -m pip install -r test/python/requirements.txt
# pytest

Right now most errors are because of loss of information in datetime, example:

E       AssertionError: assert 'STBOX ZT((11...:00:43+0000))' == 'STBOX ZT((11...:00:00+0000))'
E         - STBOX ZT((11, 12, 13, 2011-01-01T00:00:00+0000), (21, 22, 23, 2011-01-02T00:00:00+0000))
E         ?                       ^ --    -   ^    ^^                     ^ --    ^^  ^    ^^
E         + STBOX ZT((11, 12, 13, 1970-01-13T05:00:43+0000), (21, 22, 23, 1970-01-14T05:00:43+0000))
E         ?                       ^^^      +  ^    ^^                     ^^^     ^^  ^    ^^