[Rpm-maint] [rpm-software-management/rpm] How to run unit tests (#243)

Jun Aruga notifications at github.com
Fri Jun 30 17:39:33 UTC 2017


I want to run unit tests under `tests/` directory.

I tried below way seeing `INSTALL` document
https://github.com/rpm-software-management/rpm/blob/master/INSTALL#L181-L186

```
$ make check
make  check-recursive
make[1]: Entering directory '/home/jaruga/git/rpm'
Making check in po
make[2]: Entering directory '/home/jaruga/git/rpm/po'
make[2]: Nothing to be done for 'check'.
make[2]: Leaving directory '/home/jaruga/git/rpm/po'
Making check in misc
make[2]: Entering directory '/home/jaruga/git/rpm/misc'
make[2]: Nothing to be done for 'check'.
make[2]: Leaving directory '/home/jaruga/git/rpm/misc'
Making check in luaext
make[2]: Entering directory '/home/jaruga/git/rpm/luaext'
make[2]: Nothing to be done for 'check'.
make[2]: Leaving directory '/home/jaruga/git/rpm/luaext'
Making check in rpmio
make[2]: Entering directory '/home/jaruga/git/rpm/rpmio'
make  
make[3]: Entering directory '/home/jaruga/git/rpm/rpmio'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/jaruga/git/rpm/rpmio'
make[2]: Leaving directory '/home/jaruga/git/rpm/rpmio'
Making check in lib
make[2]: Entering directory '/home/jaruga/git/rpm/lib'
make  check-am
make[3]: Entering directory '/home/jaruga/git/rpm/lib'
make  
make[4]: Entering directory '/home/jaruga/git/rpm/lib'
make  all-am
make[5]: Entering directory '/home/jaruga/git/rpm/lib'
make[5]: Nothing to be done for 'all-am'.
make[5]: Leaving directory '/home/jaruga/git/rpm/lib'
make[4]: Leaving directory '/home/jaruga/git/rpm/lib'
make[3]: Leaving directory '/home/jaruga/git/rpm/lib'
make[2]: Leaving directory '/home/jaruga/git/rpm/lib'
Making check in sign
make[2]: Entering directory '/home/jaruga/git/rpm/sign'
make[2]: Nothing to be done for 'check'.
make[2]: Leaving directory '/home/jaruga/git/rpm/sign'
Making check in build
make[2]: Entering directory '/home/jaruga/git/rpm/build'
make[2]: Nothing to be done for 'check'.
make[2]: Leaving directory '/home/jaruga/git/rpm/build'
Making check in scripts
make[2]: Entering directory '/home/jaruga/git/rpm/scripts'
make[2]: Nothing to be done for 'check'.
make[2]: Leaving directory '/home/jaruga/git/rpm/scripts'
Making check in fileattrs
make[2]: Entering directory '/home/jaruga/git/rpm/fileattrs'
make[2]: Nothing to be done for 'check'.
make[2]: Leaving directory '/home/jaruga/git/rpm/fileattrs'
Making check in doc
make[2]: Entering directory '/home/jaruga/git/rpm/doc'
make[2]: Nothing to be done for 'check'.
make[2]: Leaving directory '/home/jaruga/git/rpm/doc'
Making check in .
make[2]: Entering directory '/home/jaruga/git/rpm'
make[2]: Leaving directory '/home/jaruga/git/rpm'
Making check in plugins
make[2]: Entering directory '/home/jaruga/git/rpm/plugins'
make[2]: Nothing to be done for 'check'.
make[2]: Leaving directory '/home/jaruga/git/rpm/plugins'
make[1]: Leaving directory '/home/jaruga/git/rpm'
```

I expected below kind of result. My way is correct?
https://github.com/rpm-software-management/rpm/issues/170#issue-211735874

Also the `fakechroot` URL https://github.com/fakechroot in the document is correct? The URL is just a user's page.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/243
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20170630/d54351b3/attachment.html>


More information about the Rpm-maint mailing list