commit | 45dc53194367043d3bd1e5e10ff37c875f9ee7b9 | [log] [tgz] |
---|---|---|
author | Robert Sesek <rsesek@google.com> | Thu Dec 15 18:51:03 2016 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Thu Dec 15 18:51:03 2016 +0000 |
tree | c14f5d7598fbb69b14824288a2febc851f30f9f2 | |
parent | 7ee435f0a8b6ee8008a2555c86cee95fca0a7441 [diff] | |
parent | f5b9c09bed20e620c75e146fafba3c29ae9d3dbe [diff] |
Create Android.mk file and a wrapper header for use by CTS. am: 659656f2fd am: faaa6a7035 am: f5b9c09bed Change-Id: I3a4ae479404f457ac42541b780b42bcf786d0dac
This repository contains a mirror of the upstream Linux kernel test suite for the Seccomp-BPF system call filter. The test suite runs as part of CTS, but it is maintained in a separate repository because the code is GPL.
Rather than hold the entire Linux history in this repository, only the subdirectory for the Seccomp selftests are preserved here. In order to sync this repository to the upstream Linux, follow these instructions.
These instructions only need to be followed for the first time you are updating the repository from a checkout.
git remote add upstream-linux git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git -t master --no-tags
Perform these steps every time you need to update the test suite from upstream.
Update the remote to fetch the latest sources:
git remote update upstream-linux
Create a new local branch from the updated source, replacing YYYYMMDD with today's date:
git checkout -b update-YYYYMMDD upstream-linux/master
Filter the branch to just the subtree containing the Seccomp test suite:
git filter-branch --subdirectory-filter tools/testing/selftests/seccomp
Start a new CL branch into which the updated sources will be merged:
repo start sync-upstream .
Subtree-merge the changes into the directory. Resolve any conflicts with the local modifications present in the repository.
git subtree merge -P linux/ update-YYYYMMDD
Now build and test the changes by running CTS:
$ mmma cts/tests/tests/os $ cts-tradefed run singleCommand cts -m CtsOsTestCases -t android.os.cts.SeccompTest
The tests are expected to pass on arm, arm64, x86, and x86_64. If they pass, then repo upload/submit the CL branch. Afterwards, you can remove the update-YYYYMMDD branch.
If you already have a Linux kernel checkout, you can skip adding Linux as a remote and instead perform steps 1-3 of "Updating the Source" in the kernel checkout. Then simply fetch the filtered branch into the seccomp-tests repository and subtree merge it (as FETCH_HEAD). This will avoid copying the entire kernel history into your local checkout.