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.
The pristine copy of the upstream source is kept on a branch called upstream-master. This branch is then merged into an Android development branch.
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
Check out the upstream-master branch, which contains the pristine, filter-branch'd copy of the source code. Pushing non-merge commits with a “forged” author/committer can only be done against the upstream-master branch.
git checkout -b upstream-master aosp/upstream-master
Update this upstream-master branch to the newly filtered branch of upstream-linux.
git merge --ff-only update-YYYYMMDD
Upload the changes on upstream-master for review and submit them.
Merge the changes from upstream-master into the Android development branch (typically master). Resolve any conflicts with the local modifications present in the repository.
repo start sync-upstream . git subtree merge -P linux/ upstream-master
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.
c反应蛋白高说明什么 | 做梦梦见前男友是什么意思 | 梦到自己开车是什么意思 | 打豆豆是什么意思 | 朗姆酒是什么酒 |
鼻涕带血是什么原因 | 屁股大什么原因 | 龙潭虎穴是什么生肖 | 手臂上长痣代表什么 | 脑控是什么 |
什么可以代替人体润滑油 | 杀虫剂中毒有什么症状 | hcg是什么 | 均码是什么意思 | 吃什么蛋白质含量最高 |
什么叫道德绑架 | 梦见黑色的蛇是什么意思 | 宗室是什么意思 | 卵巢早衰检查什么项目 | 切除子宫有什么危害 |
真菌感染是什么意思adwl56.com | 意面是什么面hcv7jop5ns1r.cn | 缺硒吃什么hcv9jop3ns6r.cn | 三伏天晒背有什么好处xscnpatent.com | 高位截瘫是什么意思hcv9jop4ns7r.cn |
鸭子为什么会游泳baiqunet.com | 五联什么时候打hcv7jop5ns4r.cn | 老人脚肿吃什么药消肿hcv9jop7ns9r.cn | 姑婆的儿子叫什么hcv8jop1ns4r.cn | 胃ct能检查出什么病hcv8jop2ns4r.cn |
ed是什么意思hcv8jop6ns6r.cn | 阳虚是什么意思hcv8jop3ns3r.cn | 举头三尺有神明是什么意思hcv9jop2ns8r.cn | bishop是什么意思hcv9jop2ns6r.cn | 命犯桃花是什么意思hcv8jop1ns2r.cn |
牛油果是什么季节的水果hcv8jop4ns3r.cn | 为什么月经期有性冲动hcv7jop6ns5r.cn | 榴莲有什么功效hcv9jop5ns3r.cn | 1987年是什么年beikeqingting.com | 婚检检查什么项目hcv8jop4ns7r.cn |