kernel-tests master: Changes for packaging and config (d44e0fd)
by Justin Forbes
Repository : http://git.fedorahosted.org/cgit/kernel-tests.git
On branch : master
>---------------------------------------------------------------
commit d44e0fd40222b8ddef7baaac93d133af633591fd
Author: Justin M. Forbes <jforbes(a)redhat.com>
Date: Tue Aug 12 10:11:30 2014 -0500
Changes for packaging and config
>---------------------------------------------------------------
.gitignore | 1 +
runtests.sh | 26 +++++++++++++++++++-------
2 files changed, 20 insertions(+), 7 deletions(-)
diff --git a/.gitignore b/.gitignore
index 2ccc518..dc05b62 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
*.o
logs
*.sw?
+.config
diff --git a/runtests.sh b/runtests.sh
index f0b3fb5..0bfdf1b 100755
--- a/runtests.sh
+++ b/runtests.sh
@@ -3,12 +3,18 @@
# Licensed under the terms of the GNU GPL License version 2
date=$(date +%s)
-topdir=$(pwd)
-logfile=$topdir/logs/kernel-test-$date.log.txt
+logdir=$(pwd)/logs
+logfile=$logdir/kernel-test-$date.log.txt
verbose=n
testset=default
cleanrun=PASS
failedtests=None
+commit=n
+commithook=/usr/bin/true
+
+if [ -f ./.config ]; then
+ source ./.config
+fi
kver=$(uname -r)
release=$(cat /etc/redhat-release)
@@ -24,8 +30,8 @@ fi
unset MALLOC_CHECK_
unset MALLOC_PERTURB_
-if [ ! -d "$topdir/logs" ] ; then
- mkdir $topdir/logs
+if [ ! -d "$logdir" ] ; then
+ mkdir $logdir
fi
args=y
@@ -120,7 +126,7 @@ do
if [ "$result" == "FAIL" ]; then
cleanrun=FAIL
if [ "$failedtests" == "None" ]; then
- failedtests="$testname"
+ failedtests="$testname"
else
failedtests="$failedtests $testname"
fi
@@ -134,8 +140,14 @@ done
sed -i "s,RESULTHOLDER,$cleanrun\nFailed Tests: $failedtests,g" $logfile
printf "\n%-65s%-8s\n" "Test suite complete" "$cleanrun"
-printf "\nYour log file is located at: $logfile\n"
-printf "Submit your results to: https://apps.fedoraproject.org/kerneltest/\n"
+if [ "$commit" == "y" ]; then
+ printf "\nYour log file is being submitted\n"
+ $commithook
+else
+ printf "\nYour log file is located at: $logfile\n"
+ printf "Submit your results to: https://apps.fedoraproject.org/kerneltest/\n"
+fi
+
if [ "$cleanrun" == "FAIL" ]; then
exit 1
9 years, 8 months
Kernel tests
by Jon Stanley
So I have to admit that I saw that Fedora badges were now being
awarded for kernel testing, so I went ahead and submitted my results.
In the process, I made a few observations (both on the process and on
the tests themselves):
First from the process standpoint, has it been thought about to make
the process easier for testers than going to a webpage and uploading
results manually? Could we make it even easier by somehow asking for a
FAS identity and then uploading it?
As for the test content itself, the test header has no information as
to what hardware it is running on, which for performance tests
matters, and possibly for some functionality tests as well (vendors
with buggy firmware, etc). I'm not sure what format patches are
preferred in, but there's a branch hw-info of
git://githuib.com/jds2001/kernel-tests that has this. A log header now
looks like:
Date: Mon Aug 11 16:39:26 EDT 2014
Test set: default
Kernel: 3.16.0-1.fc22.x86_64
Release: Fedora release 20 (Heisenbug)
Result: PASS
Failed Tests: None
System Manufaturer: Hewlett-Packard
System Product Name: h8-1070t
BIOS Version: 7.05
BIOS Release Date: 05/18/2011
Processor: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
gcc version: gcc-4.8.3-1.fc20.x86_64
glibc version: glibc-2.18-12.fc20.x86_64
Virtualization: none
============================================================
There might be other useful things to include as well, these are some
things that I can think of from a "possible to provide in a singe
line" output. Note that since some users might be concerned about
giving out lots of (potentially sensitive - think things like serial
number/asset tag), I didn't include a full dump of dmidecode, though
that really would be the holy grail of information that I'd want (and
lspci, lsmod, etc).
Another test that would be worthwhile that I don't think I'm smart
enough to write on my own is whether AutoNUMA is working as intended.
This would of course require NUMA hardware (or booting a system with
fake NUMA).
9 years, 8 months
kernel-tests master: Add .txt extension to log file so firefox doesn't flub the mime type on upload (202b0ac)
by Justin Forbes
Repository : http://git.fedorahosted.org/cgit/kernel-tests.git
On branch : master
>---------------------------------------------------------------
commit 202b0ac97234db37d260e6a515a166762b3a583b
Author: Justin M. Forbes <jforbes(a)redhat.com>
Date: Sat Aug 9 09:34:18 2014 +0200
Add .txt extension to log file so firefox doesn't flub the mime type on upload
>---------------------------------------------------------------
runtests.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/runtests.sh b/runtests.sh
index c19d907..f0b3fb5 100755
--- a/runtests.sh
+++ b/runtests.sh
@@ -4,7 +4,7 @@
date=$(date +%s)
topdir=$(pwd)
-logfile=$topdir/logs/kernel-test-$date.log
+logfile=$topdir/logs/kernel-test-$date.log.txt
verbose=n
testset=default
cleanrun=PASS
9 years, 8 months
kernel-tests master: Point users to the new kernel test frontend to submit results (748050c)
by Justin Forbes
Repository : http://git.fedorahosted.org/cgit/kernel-tests.git
On branch : master
>---------------------------------------------------------------
commit 748050c1908e11a30491b5b5bc57a61a6c9958ad
Author: Justin M. Forbes <jforbes(a)redhat.com>
Date: Fri Aug 8 10:35:43 2014 +0200
Point users to the new kernel test frontend to submit results
>---------------------------------------------------------------
runtests.sh | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/runtests.sh b/runtests.sh
index 1d9ad98..c19d907 100755
--- a/runtests.sh
+++ b/runtests.sh
@@ -132,11 +132,13 @@ done
# Fix up logfile headers
sed -i "s,RESULTHOLDER,$cleanrun\nFailed Tests: $failedtests,g" $logfile
+printf "\n%-65s%-8s\n" "Test suite complete" "$cleanrun"
+
+printf "\nYour log file is located at: $logfile\n"
+printf "Submit your results to: https://apps.fedoraproject.org/kerneltest/\n"
if [ "$cleanrun" == "FAIL" ]; then
- printf "\n%-65s%-8s\n" "Test suite complete" "$cleanrun"
exit 1
else
- printf "\n%-65s%-8s\n" "Test suite complete" "$cleanrun"
exit 0
fi
9 years, 8 months
kernel-tests master: Check for SELinux before running paxtest (24bf68b)
by Justin Forbes
Repository : http://git.fedorahosted.org/cgit/kernel-tests.git
On branch : master
>---------------------------------------------------------------
commit 24bf68be38c799c83440252a2c07ff682a342d80
Author: Justin M. Forbes <jforbes(a)redhat.com>
Date: Thu Aug 7 16:54:06 2014 +0200
Check for SELinux before running paxtest
>---------------------------------------------------------------
default/paxtest/runtest.sh | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/default/paxtest/runtest.sh b/default/paxtest/runtest.sh
index 8b44626..8aa3b4e 100755
--- a/default/paxtest/runtest.sh
+++ b/default/paxtest/runtest.sh
@@ -23,6 +23,13 @@ check_bits()
fi
}
+# Ensure SELinux is enforcing
+selinux=`getenforce`
+if [ "$selinux" != "Enforcing" ]; then
+ echo "SELinux must be enforcing for this test"
+ exit 3
+fi
+
# Build.
make linux >/dev/null 2>/dev/null
if [ ! -f ./paxtest ]; then
9 years, 8 months
kernel-tests master: selinux-dac-controls test came from rhbz 1013466 (d632c33)
by Justin Forbes
Repository : http://git.fedorahosted.org/cgit/kernel-tests.git
On branch : master
>---------------------------------------------------------------
commit d632c335751ee265cf83492f240f2413aad1a9cc
Author: Justin M. Forbes <jforbes(a)redhat.com>
Date: Thu Aug 7 16:49:17 2014 +0200
selinux-dac-controls test came from rhbz 1013466
>---------------------------------------------------------------
default/selinux-dac-controls/mmap_test.c | 26 +++++++++++++++++++++
default/selinux-dac-controls/runtest.sh | 37 ++++++++++++++++++++++++++++++
2 files changed, 63 insertions(+), 0 deletions(-)
diff --git a/default/selinux-dac-controls/mmap_test.c b/default/selinux-dac-controls/mmap_test.c
new file mode 100644
index 0000000..a63e8cd
--- /dev/null
+++ b/default/selinux-dac-controls/mmap_test.c
@@ -0,0 +1,26 @@
+#include <stdlib.h>
+#include <stdio.h>
+#include <errno.h>
+#include <sys/mman.h>
+#include <sys/types.h>
+#include <unistd.h>
+
+
+int main(int argc, char *argv[])
+{
+ int rc;
+ void *mem;
+ /* Run as nobody, we don't want CAP_SYS_RAWIO */
+ setuid(99);
+ setgid(99);
+
+ mem = mmap(0x0, 4096,
+ PROT_READ | PROT_WRITE,
+ MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, -1, 0);
+ if (mem == MAP_FAILED)
+ return errno;
+ printf("mem = %p\n", mem);
+ munmap(mem, 4096);
+
+ return 0;
+}
diff --git a/default/selinux-dac-controls/runtest.sh b/default/selinux-dac-controls/runtest.sh
new file mode 100755
index 0000000..736ac97
--- /dev/null
+++ b/default/selinux-dac-controls/runtest.sh
@@ -0,0 +1,37 @@
+#!/bin/bash
+#
+# Licensed under the terms of the GNU GPL License version 2
+
+# This test came from rhbz 1013466
+
+# Make sure we can run this test successfully
+source ../../utils/root-check.sh
+check_root
+is_root=$?
+if [ "$is_root" -ne "0" ]; then
+ exit 3
+fi
+
+selinux=`getenforce`
+if [ "$selinux" == "Permissive" ]; then
+ echo "SELinux must be enabled for this test"
+ exit 3
+fi
+
+#Build
+gcc -g -O0 -o mmap_test mmap_test.c
+if [ ! -f ./mmap_test ]; then
+ echo "Something went wrong during mmap_test build."
+ exit -1
+fi
+
+./mmap_test
+
+avcdenial=`ausearch -m AVC -ts recent | grep -c mmap_zero`
+if [ "$avcdenial" -ne "0" ]; then
+ echo "AVC Denail found for mmap_zero"
+ exit -1
+fi
+
+
+exit 0
9 years, 8 months
3.16.0 building
by Josh Boyer
Hi All,
The final 3.16.0 release is building in koji now for both F21 and
rawhide. I'll leave both on this kernel version for most of the week
due to Flock. Next week, rawhide will move on to the 3.17 merge
window.
Fedora 21 may or may not wind up with 3.17 for release. We're going
to keep an eye on how that release is shaping up in rawhide and how
the development schedules align.
As always, if you have questions please let me know.
josh
9 years, 8 months