]> www.infradead.org Git - mtd-utils.git/commitdiff
ubi-utils: clean-up UBI tests
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sat, 15 Dec 2007 17:06:25 +0000 (19:06 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sat, 15 Dec 2007 17:06:25 +0000 (19:06 +0200)
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
ubi-utils/tests/Makefile
ubi-utils/tests/README.udev
ubi-utils/tests/runtests.pl [deleted file]

index 1b17f8195e15a915ea7de84fa2076c9586f6f262..e296967d41636a9b5057ffe0af49bd87519436cd 100644 (file)
@@ -5,7 +5,7 @@ LIB=.
 
 CC := $(CROSS)gcc
 
-ALL_FILES=libubi.a io_update
+ALL_FILES=libubi io_update 
 ALL_FILES+=io_paral io_read io_basic mkvol_basic mkvol_bad mkvol_paral rsvol
 ALL_FILES+=integ
 
@@ -13,7 +13,7 @@ CFLAGS += -Wall -I$(INCLUDE1) -I$(INCLUDE2) -L$(LIB) -ggdb
 
 all: $(ALL_FILES)
 
-libubi.a: ../src/libubi.c  ../inc/libubi.h  ../src/libubi_int.h
+libubi: ../src/libubi.c  ../inc/libubi.h  ../src/libubi_int.h
        $(CC) $(CFLAGS) -c ../src/libubi.c -o libubi.o
        ar cr libubi.a libubi.o
 
index a4ff9c548d5f31cb456c694803f2033b697ead97..6c122770ce42825f6b52ae09bdf1807e635110b3 100644 (file)
@@ -4,7 +4,7 @@ tests fail because of this. The symptom is error messages like
 "cannot open /dev/ubi0_0".
 
 One possible solution of this problem is to pre-create UBI device and volume
-nodes. there is even a script which may be used for this in ubi-utils/scripts/.
+nodes. There is even a script which may be used for this in ubi-utils/scripts/.
 But this is not enough because udev will still remove and re-create the nodes
 and tests will still fail. So you need to stop removing device nodes using
 the following udev rule:
diff --git a/ubi-utils/tests/runtests.pl b/ubi-utils/tests/runtests.pl
deleted file mode 100755 (executable)
index 8005716..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/usr/bin/perl -w
-
-sub usage;
-
-my @tests = ("mkvol_basic", "mkvol_bad", "mkvol_paral", "rsvol",
-            "io_basic", "io_read", "io_update", "io_paral");
-
-if (not defined @ARGV) {
-       usage();
-       exit;
-}
-
-foreach (@ARGV) {
-       -c or die "Error: $_ is not character device\n";
-}
-
-my $dev;
-foreach $dev (@ARGV) {
-       foreach (@tests) {
-               print "Running: $_ $dev";
-               system "./$_ $dev" and die;
-               print "\tSUCCESS\n";
-       }
-}
-
-sub usage
-{
-       print "Usage:\n";
-       print "$0 <UBI device 1> <UBI device 2> ...\n";
-}