Skip to content

Linux Test Project for ARC

Yuriy Kolerov edited this page Aug 18, 2016 · 5 revisions

Overview

There are 2 separate repositories of LTP - upstream and local:

  1. https://github.com/linux-test-project/ltp
  2. https://github.com/foss-for-synopsys-dwc-arc-processors/ltp.git

If you want to run tests on ARC the second one must be used. Upstream repository has no a full support of ARC - there are still a lot of blocking issues like tests which hang Linux.

Building and running

Command for building LTP:

git clone https://github.com/foss-for-synopsys-dwc-arc-processors/ltp.git
cd ltp
make autotools
./configure CFLAGS="-Dlinux -matomic" --host=arc-linux-uclibc --enable-arc-support --with-open-posix-testsuite --prefix=`readlink -m ../ltp-install`
make UCLIBC=1
make UCLIBC=1 install

Commands for running LTP tests on target:

./runltp -l ltp.results -C ltp.fail -p -q -f syscalls,mm,ipc,sched,nptl,pty,containers,fs_bind,controllers,filecaps,cap_bounds,fcntl-locktests,connectors,admin_tools,timers,numa,hugetlb,commands,hyperthreading 2>&1 | tee ltp.log

Sending patches

Maintainers of Linux Test Projects accept patches through mailing list ltp@lists.linux.it. When sending patches:

  • It is recommended to attach patches to emails rather than sending them inside of emails.
  • Patches must be checked using checkpatch.pl script from Linux source tree.
  • All emails for patches must contain prefix [LTP] [PATCH] instead of just [PATCH]. If you want to send a second version of patches then a prefix may be like [LTP] [PATCH v2].
  • Send patches using git send-email command. E.g. git send-email --to ltp@lists.linux.it *.patch.

Here is an example of the workflow of preparing patches for sending to upstream:

git format-patch --attach master..fix-branch
path-to-linux/scripts/checkpatch.pl *.patch
sed -i 's/Subject: \[PATCH/Subject: \[LTP\] \[PATCH/g' *.patch
git send-email --to ltp@lists.linux.it --cc Vineet.Gupta1@synopsys.com --cc Alexey.Brodkin@synopsys.com --cc Anton.Kolesov@synopsys.com *.patch

Add these lines to .gitconfig to enable sending patches using git:

[sendemail]
        smtpserver = mailhost
        confirm = auto