-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unit test clarification #20
Comments
Hi, thanks for your interest in the project. That command runs a single test, which is by default hello world (SUITE=bp-tests PROG=hello_world). Running different tests is covered here in the eval guide: The guide also explains how to run a testlist (run_testlist.vcs), which contain many unit tests and can be run in parallel |
Hi! |
prog_lite (prep_lite) builds a subset of tests just to smoke test the environment. For any serious verification, I'd recommend building the rest of the free suites (riscv-tests, coremark, beebs) |
I am running make prep inside the docker to install all necessary testing package, but it is giving me the error below in the screenshot. I don’t see errors when I was running make prep_lite. Do you know how to fix this? Should I clean and rebuild black parrot sdk? Thank you! |
Which docker image are you using, centos or Ubuntu? I'll take a look, those should work out of box |
Ubuntu I believe, I just followed the commands below and then run make prep inside black-parrot-sim. Am I missing any important steps? Docker build For a painless Ubuntu build, download and install Docker Desktop then run the following: git clone https://github.com/black-parrot/black-parrot-sim.git |
I clean everything and rerun the make prep, but the same issue remains. I am using a MacBook, is this going to work for Mac OS inside the docker? |
Hi, I just cloned anew, worked all the way through "make prep" for me. The default docker image is centos7, built and ran from scratch. My docker version is: You might want to update if you're much older than that.
If it is an M1/M2 macbook, it could be a rosetta issue running an x86 image on an ARM64 processor. Unfortunately, that's way beyond my debugging scope. I'd suggest running in an x86 VM instead, which I understand have better emulation capabilities. |
I also found this, could be some help: https://akintola-lonlon.medium.com/your-mac-m-1-docker-image-is-not-going-to-work-on-production-heres-why-f8175bc33d90 This snippet is interesting:
"--platform linux/amd64" could be helpful |
Thank you for your reply! I am using an old MacBook (not M1/2), with Docker version 26.1.1, build 4cf5afa. I think they should work,. Probably I just missed some steps. Btw, make prep_lite works for me |
The idea of a docker image is to work out of box, with no additional dependencies. (You do not need to pip install anything). You can see the docker image doing everything in the getting started guide here:
I would try in order
It's possible the MacOS kernel itself incompatible with parts of the build process, in which case a VM is the |
Thanks for your explanation! It is surprising that CentOS image isn’t compatible with macOS. How to switch to Ubuntu docker Image on MacBook? Is there any other developers using macOS before able to build it? |
Hi we are a research team from Harvard and we are trying to figure out what exactly each provided test is testing in the black parrot simulation environment (https://github.com/black-parrot/black-parrot-sim). For example, make -C black-parrot/bp_top/syn tire_kick and make -C black-parrot/bp_top/syn build.sc sim.sc COSIM_P=1
We understand that the tests above are made of many lower level unit tests. Could anyone provide some insight on what exact unit tests are included in each test case provided in a lower level? What are some other low level unit test that we can do to make sure every little piece is working well?
We really appreciate that! Thanks!
The text was updated successfully, but these errors were encountered: