[Sound-open-firmware] help with unit tests

Wilson, Danny danny.wilson at verisilicon.com
Thu Feb 28 20:45:19 CET 2019


Hello,

I am a new user from VeriSilicon, also trying to get unit tests to run.   Thanks for bringing this project to GitHub.

On 2/8/19 1:06 PM Jankowski, Janusz wrote:
> TL;DR: Unit Tests are not supported for xtensa GCC toolchains at the moment (work in progress). You can run them only with xtensa xt-* toolchain that provides simulator (xt-run).

On 2/8/19 8:24 PM, Pierre-Louis Bossart pierre-louis.bossart at linux.intel.com  worte:
> FWIW, there is an alternate way of getting everything in one shot with
> 'repo', there are build-scripts provided so that you can reproduce the
> same setup as other developers.
>
> repo init -u https://github.com/thesofproject/sof-manifests
>
> repo sync -c

My environment is:   Ubuntu 18.04.2 LTS

When trying the alternate method described by Pierre, I get the following permission denied error:

~/work/sof$ repo init -u https:://github.com/thesofproject/sof-manifests

Traceback (most recent call last):
  File "/home/us9005/work/sof/.repo/repo/main.py", line 40, in <module>
    import event_log
  File "/home/us9005/work/sof/.repo/repo/event_log.py", line 165, in <module>
    _EVENT_ID = multiprocessing.Value('i', 1)
  File "/snap/git-repo/18/usr/lib/python2.7/multiprocessing/__init__.py", line 253, in Value
    return Value(typecode_or_type, *args, **kwds)
  File "/snap/git-repo/18/usr/lib/python2.7/multiprocessing/sharedctypes.py", line 108, in Value
    lock = RLock()
 File "/snap/git-repo/18/usr/lib/python2.7/multiprocessing/__init__.py", line 183, in RLock
    return RLock()
  File "/snap/git-repo/18/usr/lib/python2.7/multiprocessing/synchronize.py", line 172, in __init__
    SemLock.__init__(self, RECURSIVE_MUTEX, 1, 1)
  File "/snap/git-repo/18/usr/lib/python2.7/multiprocessing/synchronize.py", line 75, in __init__
    sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
OSError: [Errno 13] Permission denied

Is this a repository permission I am lacking?   Is there a particular build-script that includes the xtensa-xt* toolchain for unit tests?

Regards,
Danny Wilson






More information about the Sound-open-firmware mailing list