[debian-edu-commits] r80484 - in trunk/src/debian-edu-config: debian testsuite
pere at alioth.debian.org
pere at alioth.debian.org
Mon Jun 10 08:02:44 UTC 2013
Author: pere
Date: 2013-06-10 08:02:44 +0000 (Mon, 10 Jun 2013)
New Revision: 80484
Modified:
trunk/src/debian-edu-config/debian/changelog
trunk/src/debian-edu-config/testsuite/filesystems
trunk/src/debian-edu-config/testsuite/network
trunk/src/debian-edu-config/testsuite/taskpkgs
Log:
* Add new filesystem testsuite check to report too full file
systems, meaning file systems with less than 10% left. Copied
from Wheezy version.
* Fix typo in error reporting in the taskpkgs testsuite check, and
add support for checking the Minimal profile there. Copied from
Wheezy version.
* Extend network testsuite to detect if BTS report #705900 is
present. Copied from Wheezy version.
Modified: trunk/src/debian-edu-config/debian/changelog
===================================================================
--- trunk/src/debian-edu-config/debian/changelog 2013-06-10 07:56:10 UTC (rev 80483)
+++ trunk/src/debian-edu-config/debian/changelog 2013-06-10 08:02:44 UTC (rev 80484)
@@ -15,6 +15,14 @@
* Fix automount check, make sure it is skipped for Main-Server,
Roaming Workstation and Standalone profiles. Copied from Wheezy
version.
+ * Add new filesystem testsuite check to report too full file
+ systems, meaning file systems with less than 10% left. Copied
+ from Wheezy version.
+ * Fix typo in error reporting in the taskpkgs testsuite check, and
+ add support for checking the Minimal profile there. Copied from
+ Wheezy version.
+ * Extend network testsuite to detect if BTS report #705900 is
+ present. Copied from Wheezy version.
-- Petter Reinholdtsen <pere at debian.org> Sun, 09 Jun 2013 23:31:09 +0200
Modified: trunk/src/debian-edu-config/testsuite/filesystems
===================================================================
--- trunk/src/debian-edu-config/testsuite/filesystems 2013-06-10 07:56:10 UTC (rev 80483)
+++ trunk/src/debian-edu-config/testsuite/filesystems 2013-06-10 08:02:44 UTC (rev 80484)
@@ -29,3 +29,8 @@
echo "error: $0: No lost+found in /skole/tjener/home0/. Blocked by autofs?"
fi
fi
+
+# Report too full file systems. Should have at least 10% free,
+# preferably between 10% and 20%.
+df -m -P -x tmpfs |
+ awk '/\/dev\// { if ($3/$2 >= 0.90) print "error: Too full file system", $1, "uses", $3, "of", $2, "MiB" }'
Modified: trunk/src/debian-edu-config/testsuite/network
===================================================================
--- trunk/src/debian-edu-config/testsuite/network 2013-06-10 07:56:10 UTC (rev 80483)
+++ trunk/src/debian-edu-config/testsuite/network 2013-06-10 08:02:44 UTC (rev 80484)
@@ -2,6 +2,9 @@
#
# Report the current network status
+success() {
+ echo "success: $0: $*"
+}
error() {
echo "error: $0: $*"
}
@@ -110,12 +113,30 @@
fi
if test "$networked" = true -a "$server" != true ; then
- # should be able to reach tjener.intern at this poing
+ # should be able to reach tjener.intern at this point
if ! ping -c1 tjener.intern > /dev/null 2>&1 ; then
error "Unable to ping tjener.intern."
fi
fi
+# check if <URL: http://bugs.debian.org/705900 > is present. First
+# try IPv4.
+if ping -c3 $(hostname) > /dev/null 2>&1 ; then
+ success "ping $(hostname) work."
+else
+ error "ping $(hostname) fail, BTS #705900 present?"
+fi
+# Then try IPv6 if available
+if getent ahosts $(hostname) | grep -q : ; then
+ if ping6 -c3 $(hostname) > /dev/null 2>&1 ; then
+ success "ping6 $(hostname) work."
+ else
+ error "ping6 $(hostname) fail, BTS #705900 present?"
+ fi
+else
+ echo "info: not testing ping6, no IPv6 address found for $(hostname)."
+fi
+
if false && test "$server" = true && have_interface eth0; then
# Make sure we are the only main server on the net. Should not be
# able to reach another tjener.intern
Modified: trunk/src/debian-edu-config/testsuite/taskpkgs
===================================================================
--- trunk/src/debian-edu-config/testsuite/taskpkgs 2013-06-10 07:56:10 UTC (rev 80483)
+++ trunk/src/debian-edu-config/testsuite/taskpkgs 2013-06-10 08:02:44 UTC (rev 80484)
@@ -67,8 +67,11 @@
Sugar)
check_installed_task education-desktop-sugar
;;
+ Minimal)
+ check_installed_task education-networked
+ ;;
*)
- error "unknown profile '$profile'"
+ echo "error: $0: unknown profile '$profile'"
;;
esac
done
More information about the debian-edu-commits
mailing list