- 08 6月, 2018 2 次提交
-
-
由 Dan Carpenter 提交于
"len" needs to be signed for the error handling to work. Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com> Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Naveen N. Rao 提交于
Add powerpc support for the recently added kprobe args tests. Signed-off-by: NNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> Reviewed-by: NMasami Hiramatsu <mhiramat@kernel.org> Acked-by: NSteven Rostedt (VMware) <rostedt@goodmis.org> Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
- 31 5月, 2018 38 次提交
-
-
由 Shuah Khan (Samsung OSG) 提交于
prime_numbers modules search and skip logic removes the module instead of searching for it. Fix it. Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Jeffrin Jose T 提交于
The intel_pstate related testing script need root level privileges when trying to access certain file for the successful execution of the script.But this is not the case always like when using evaluation only mode, which only require user level privilege. This patch is to notify the user about the privilege the script demands for the successful execution of the test. Signed-off-by: NJeffrin Jose T (Rajagiri SET) <ahiliation@gmail.com> Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Mike Rapoport 提交于
The test verifies that when there is active TCP connection, the memory.stat.sock and memory.current values are close. Signed-off-by: NMike Rapoport <rppt@linux.vnet.ibm.com> Acked-by: NRoman Gushchin <guro@fb.com> Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Jeffrin Jose T 提交于
Additional message along with an error message which is more verbose for debug support from aperf.c and updated with the new return value "KSFT_SKIP". Signed-off-by: NJeffrin Jose T [Rajagiri SET] <ahiliation@gmail.com> Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Roman Gushchin 提交于
cg_name(const char *root, const char *name) is always called with non-empty root and name arguments, so there is no sense in checking it in the function body (after using in strlen()). Signed-off-by: NRoman Gushchin <guro@fb.com> Reported-by: NDan Carpenter <dan.carpenter@oracle.com> Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Daniel Díaz 提交于
Using coreutils' pr, a nicer table is printed out with the results. Signed-off-by: NDaniel Díaz <daniel.diaz@linaro.org> Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Daniel Díaz 提交于
A few changes improve the overall usability of the test: * fix a hard-coded maximum frequency (3300), * don't adjust the CPU frequency if only evaluating results, * fix a comparison for multiple frequencies. A symptom of that last issue looked like this: ./run.sh: line 107: [: too many arguments ./run.sh: line 110: 3099 3099 3100-3100: syntax error in expression (error token is \"3099 3100-3100\") Because a check will count how many differente frequencies there are among the CPUs of the system, and after they are tallied another read is performed, which might produce different results. Signed-off-by: NDaniel Díaz <daniel.diaz@linaro.org> Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Mike Rapoport 提交于
The new test verifies that memory.swap.max and memory.swap.current behave as expected for simple allocation scenarios Signed-off-by: NMike Rapoport <rppt@linux.vnet.ibm.com> Acked-by: NTejun Heo <tj@kernel.org> Acked-by: NRoman Gushchin <guro@fb.com> Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Roman Gushchin 提交于
Cgroups are used for controlling the physical resource distribution (memory, CPU, io, etc) and often are used as basic building blocks for large distributed computing systems. Even small differences in the actual behavior may lead to significant incidents. The codebase is under the active development, which will unlikely stop at any time soon. Also it's scattered over different kernel subsystems, which makes regressions more probable. Given that, the lack of any tests is crying. This patch implements some basic tests for the memory controller, as well as a minimal required framework. It doesn't pretend for a very good coverage, but pretends to be a starting point. Hopefully, any following significant changes will include corresponding tests. Tests for CPU and io controllers, as well as cgroup core are next in the todo list. Signed-off-by: NRoman Gushchin <guro@fb.com> Cc: Tejun Heo <tj@kernel.org> Cc: Shuah Khan <shuah@kernel.org> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@linux.vnet.ibm.com> Cc: kernel-team@fb.com Cc: linux-kselftest@vger.kernel.org Cc: linux-kernel@vger.kernel.org Acked-by: NTejun Heo <tj@kernel.org> Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Shuah Khan (Samsung OSG) 提交于
Split normal memfd and hugetlbfs tests to improve the test reporting. Remove run_fuse_test.sh and memfd_test from run_tests.sh and add them to the Makefile. Add memfd_test to TEST_GEN_PROGS to be run separately. Rename run_tests.sh to run_hugetlbfs_test.sh Add run_fuse_test.sh and run_hugetlbfs_test.sh to TEST_PROGS The report for non-root run wth this change is: TAP version 13 selftests: memfd: memfd_test ======================================== memfd: CREATE memfd: BASIC memfd: SEAL-WRITE memfd: SEAL-SHRINK memfd: SEAL-GROW memfd: SEAL-RESIZE memfd: SHARE-DUP memfd: SHARE-MMAP memfd: SHARE-OPEN memfd: SHARE-FORK memfd: SHARE-DUP (shared file-table) memfd: SHARE-MMAP (shared file-table) memfd: SHARE-OPEN (shared file-table) memfd: SHARE-FORK (shared file-table) memfd: DONE ok 1..1 selftests: memfd: memfd_test [PASS] selftests: memfd: run_fuse_test.sh ======================================== opening: ./mnt/memfd fuse: DONE ok 1..2 selftests: memfd: run_fuse_test.sh [PASS] selftests: memfd: run_hugetlbfs_test.sh ======================================== Please run memfd with hugetlbfs test as root not ok 1..3 selftests: memfd: run_hugetlbfs_test.sh [SKIP] Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org> Reviewed-by: NMike Kravetz <mike.kravetz@oracle.com> Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Shuah Khan (Samsung OSG) 提交于
When net test is skipped because of unmet dependencies and/or unsupported configuration, it returns 0 which is treated as a pass by the Kselftest framework. This leads to false positive result even when the test could not be run. Change it to return kselftest skip code when a test gets skipped to clearly report that the test could not be run. Kselftest framework SKIP code is 4 and the framework prints appropriate messages to indicate that the test is skipped. Change psock_tpacket to use ksft_exit_skip() when a non-root user runs the test and add an explicit check for root and a clear message, instead of failing the test when /sys/power/state file open fails. Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Shuah Khan (Samsung OSG) 提交于
When mqueue test is skipped because of unmet dependencies and/or unsupported configuration, it exits with error which is treated as a fail by the Kselftest framework. This leads to false negative result even when the test could not be run. Change it to return kselftest skip code when a test gets skipped to clearly report that the test could not be run. Change it to use ksft_exit_skip() when the test is skipped. Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Shuah Khan (Samsung OSG) 提交于
When memory-hotplug test is skipped because of unmet dependencies and/or unsupported configuration, it returns non-zero value hich is treated as a fail by the Kselftest framework. This leads to false negative result even when the test could not be run. Change it to return kselftest skip code when a test gets skipped to clearly report that the test could not be run. Kselftest framework SKIP code is 4 and the framework prints appropriate messages to indicate that the test is skipped. Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Shuah Khan (Samsung OSG) 提交于
When memfd test is skipped because of unmet dependencies and/or unsupported configuration, it returns non-zero value which is treated as a fail by the Kselftest framework. This leads to false negative result even when the test could not be run. Change it to return kselftest skip code when a test gets skipped to clearly report that the test could not be run. Added an explicit check for root user at the start of memfd hugetlbfs test and return skip code if a non-root user attempts to run it. In addition, return skip code when not enough huge pages are available to run the test. Kselftest framework SKIP code is 4 and the framework prints appropriate messages to indicate that the test is skipped. Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org> Reviewed-by: NMike Kravetz <mike.kravetz@oracle.com> Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Shuah Khan (Samsung OSG) 提交于
When membarrier test is skipped because of unmet dependencies and/or unsupported configuration, it exits with error which is treated as a fail by the Kselftest framework. This leads to false negative result even when the test could not be run. Change it to return kselftest skip code when a test gets skipped to clearly report that the test could not be run. Change it to use ksft_exit_skip() when the test is skipped. Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Shuah Khan (Samsung OSG) 提交于
When media_tests test is skipped because of unmet dependencies and/or unsupported configuration, it exits with error which is treated as a fail by the Kselftest framework. This leads to false negative result even when the test could not be run. Change it to return kselftest skip code when a test gets skipped to clearly report that the test could not be run. Change it to use ksft_exit_skip() when the test is skipped. Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Shuah Khan (Samsung OSG) 提交于
When locking test is skipped because of unmet dependencies and/or unsupported configuration, it exits with error which is treated as a fail by the Kselftest framework. This leads to false negative result even when the test could not be run. Change it to return kselftest skip code when a test gets skipped to clearly report that the test could not be run. Added an explicit search for ww_mutex module and return skip code if it isn't found to differentiate between the failure to load the module condition and module not found condition. Kselftest framework SKIP code is 4 and the framework prints appropriate messages to indicate that the test is skipped. Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Shuah Khan (Samsung OSG) 提交于
Add Makefile for locking test. Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Shuah Khan (Samsung OSG) 提交于
When lib test(s) is skipped because of unmet dependencies and/or unsupported configuration, it returns non-zero value hich is treated as a fail by the Kselftest framework. This leads to false negative result even when the test could not be run. Change it to return kselftest skip code when a test gets skipped to clearly report that the test could not be run. Kselftest framework SKIP code is 4 and the framework prints appropriate messages to indicate that the test is skipped. Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Shuah Khan (Samsung OSG) 提交于
prime_numbers.sh is not included in TEST_PROGS. Add it. Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Shuah Khan (Samsung OSG) 提交于
When kvm test is skipped because of unmet dependencies and/or unsupported configuration, it exits with error which is treated as a fail by the Kselftest framework. This leads to false negative result even when the test could not be run. Change it to return kselftest skip code when a test gets skipped to clearly report that the test could not be run. Change it to use ksft_exit_skip() when the test is skipped. In addition, refine test_assert() message to include strerror() string and add explicit check for EACCES to cleary identify when test doesn't run when access is denied to resources required e.g: open /dev/kvm failed, rc: -1 errno: 13 Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org> Acked-by: NPaolo Bonzini <pbonzini@redhat.com> Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Shuah Khan (Samsung OSG) 提交于
When kmod test is skipped because of unmet dependencies and/or unsupported configuration, it returns 0 which is treated as a pass by the Kselftest framework. This leads to false positive result even when the test could not be run. It returns fail in some cases when test is skipped. Either way, it is incorrect and incosnistent reporting. Change it to return kselftest skip code when a test gets skipped to clearly report that the test could not be run. Kselftest framework SKIP code is 4 and the framework prints appropriate messages to indicate that the test is skipped. Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org> Reviewed-by: NLuis R. Rodriguez <mcgrof@kernel.org> Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Shuah Khan (Samsung OSG) 提交于
When ipc test is skipped because of unmet dependencies and/or unsupported configuration, it exits with error which is treated as a fail by the Kselftest framework. This leads to false negative result even when the test could not be run. Change it to return kselftest skip code when a test gets skipped to clearly report that the test could not be run. Change it to use ksft_exit_skip() when the test is skipped. Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Shuah Khan (Samsung OSG) 提交于
When intel_pstate test is skipped because of unmet dependencies and/or unsupported configuration, it returns 0 which is treated as a pass by the Kselftest framework. This leads to false positive result even when the test could not be run. Change it to return kselftest skip code when a test gets skipped to clearly report that the test could not be run. Kselftest framework SKIP code is 4 and the framework prints appropriate messages to indicate that the test is skipped. Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Shuah Khan (Samsung OSG) 提交于
When gpio test is skipped because of unmet dependencies and/or unsupported configuration, it exits with error which is treated as a fail by the Kselftest framework. This leads to false negative result even when the test could not be run. Change it to return kselftest skip code when a test gets skipped to clearly report that the test could not be run. Kselftest framework SKIP code is 4 and the framework prints appropriate messages to indicate that the test is skipped. Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Shuah Khan (Samsung OSG) 提交于
When firmware test(s) get skipped because of unmet dependencies and/or unsupported configuration, it returns 0 which is treated as a pass by the Kselftest framework. This leads to false positive result even when the test could not be run. Change it to return kselftest skip code when a test gets skipped to clearly report that the test could not be run. Kselftest framework SKIP code is 4 and the framework prints appropriate messages to indicate that the test is skipped. Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org> Reviewed-by: NLuis R. Rodriguez <mcgrof@kernel.org> Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Shuah Khan (Samsung OSG) 提交于
When devpts_pts test is skipped because of unmet dependencies and/or unsupported configuration, it exits with error which is treated as a fail by the Kselftest framework. This leads to false negative result even when the test could not be run. In another case, it returns pass for a skipped test reporting a false postive. Change it to return kselftest skip code when a test gets skipped to clearly report that the test could not be run. Change it to use ksft_exit_skip() when test is skipped. Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org> Acked-by: NChristian Brauner <christian.brauner@ubuntu.com> Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Shuah Khan (Samsung OSG) 提交于
When execveat test is skipped because of unmet dependencies and/or unsupported configuration, it exits with error which is treated as a fail by the Kselftest framework. This leads to false negative result even when the test could not be run. Change it to return kselftest skip code when a test gets skipped to clearly report that the test could not be run. Change it to use ksft_exit_skip() when kernel doesn't support execveat. Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Shuah Khan (Samsung OSG) 提交于
When efivarfs test is skipped because of unmet dependencies and/or unsupported configuration, it returns 0 which is treated as a pass by the Kselftest framework. This leads to false positive result even when the test could not be run. Change it to return kselftest skip code when a test gets skipped to clearly report that the test could not be run. Kselftest framework SKIP code is 4 and the framework prints appropriate messages to indicate that the test is skipped. Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Shuah Khan (Samsung OSG) 提交于
When cpufreq test is skipped because of unmet dependencies and/or unsupported configuration, it exits with error which is treated as a fail by the Kselftest framework. This leads to false negative result even when the test could not be run. Change it to return kselftest skip code when a test gets skipped to clearly report that the test could not be run. Kselftest framework SKIP code is 4 and the framework prints appropriate messages to indicate that the test is skipped. Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org> Acked-by: NViresh Kumar <viresh.kumar@linaro.org> Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Shuah Khan (Samsung OSG) 提交于
When cpu-on-off-test is skipped because of unmet dependencies and/or unsupported configuration, it returns 0 which is treated as a pass by the Kselftest framework. This leads to false positive result even when the test could not be run. Change it to return kselftest skip code when a test gets skipped to clearly report that the test could not be run. Kselftest framework SKIP code is 4 and the framework prints appropriate messages to indicate that the test is skipped. Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Shuah Khan (Samsung OSG) 提交于
When step_after_suspend_test is skipped because of unmet dependencies and/or unsupported configuration, it exits with error which is treated as a fail by the Kselftest framework. This leads to false negative result even when the test could not be run. Change it to return kselftest skip code when a test gets skipped to clearly report that the test could not be run. Change it to use ksft_exit_skip() when a non-root user runs the test and add an explicit check for root and a clear message, instead of failing the test when /sys/power/state file open fails. Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Shuah Khan (Samsung OSG) 提交于
When ion test is skipped because of unmet dependencies and/or unsupported configuration, it returns 0 which is treated as a pass by the Kselftest framework. This leads to false positive result even when the test could not be run. Change it to return kselftest skip code when a test gets skipped to clearly report that the test could not be run. Kselftest framework SKIP code is 4 and the framework prints appropriate messages to indicate that the test is skipped. Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org> Acked-by: NPintu Agarwal <pintu.ping@gmail.com> Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Shuah Khan (Samsung OSG) 提交于
Delete RUN_TESTS and EMIT_TESTS overrides and use common defines in lib.mk. Common defines work after making the change the test to run with ratio=2 as the default mode to be able to invoke the test without the "-r 2" argument from the common RUN_TESTS and EMIT_TESTS. The run_full_tests target now calls the test with "-r 10". Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org> Reviewed-by: NAnders Roxell <anders.roxell@linaro.org> Reviewed-by: Lei.Yang@windriver.com Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Shuah Khan (Samsung OSG) 提交于
Delete RUN_TESTS and EMIT_TESTS overrides and use common defines in lib.mk. The overrides are in place to call mq_open_tests with queue name argument. The change to delete overrides is coupled with a change to mq_open_tests to use default queue name when it is called without one. Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org> Reviewed-by: NAnders Roxell <anders.roxell@linaro.org> Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Shuah Khan (Samsung OSG) 提交于
Delete RUN_TESTS and EMIT_TESTS overrides and use common defines in lib.mk. Add new run_tests.sh to do the dependency checks the custom RUN_TESTS did. Common defines work with the run_tests.sh set as the TEST_PROGS and defining unprivileged-remount-test in TEST_GEN_FILES. Kselftest framework builds and installs TEST_GEN_FILES and doesn't run them via RUN_TESTS and include it in EMIT_TESTS. With this change the new run_tests.sh runs the test after checking dependencies. This change also adds Skip handling to return kselftest skip code when test is skipped to clearly identify when the test is skipped instead of reporting it as failed. Output with this change: TAP version 13 selftests: mount: run_tests.sh ======================================== WARN: No /proc/self/uid_map exist, test skipped. not ok 1..1 selftests: mount: run_tests.sh [SKIP] Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org> Reviewed-by: NAnders Roxell <anders.roxell@linaro.org> Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Shuah Khan (Samsung OSG) 提交于
Delete RUN_TESTS and EMIT_TESTS overrides and use common defines in lib.mk. Common defines work just fine and there is no need to define custom overrides. Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org> Reviewed-by: NAnders Roxell <anders.roxell@linaro.org> Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-
由 Shuah Khan (Samsung OSG) 提交于
Delete RUN_TESTS and EMIT_TESTS overrides and use common defines in lib.mk. Common defines work just fine and there is no need to define custom overrides. Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
-