diff -Naur coreutils-5.2.1/debian/rules coreutils-5.2.1-patched/debian/rules
--- coreutils-5.2.1/debian/rules	2005-06-14 13:28:22.912278361 +0300
+++ coreutils-5.2.1-patched/debian/rules	2005-06-14 13:31:55.067260300 +0300
@@ -23,6 +23,13 @@
 	mknod mv pwd readlink rm rmdir vdir sleep stty sync touch true uname
 d=debian/coreutils
 
+ifneq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+	RUN_TEST = no
+endif
+ifneq (,$(findstring notest,$(DEB_BUILD_OPTIONS)))
+	RUN_TEST = no
+endif
+
 default: binary
 
 configure: configure-stamp
@@ -44,7 +52,7 @@
 	dh_testdir
 
 	cd $(BUILD_TREE) && $(MAKE)
-	cd $(BUILD_TREE) && $(MAKE) check
+	[ "$(RUN_TEST)" == "no" ] || (cd $(BUILD_TREE) && $(MAKE) check)
 
 	touch build-stamp
 

