chiark / gitweb /
udev: test - move test/ and src/test/
authorKay Sievers <kay@vrfy.org>
Sat, 14 Apr 2012 17:31:18 +0000 (19:31 +0200)
committerKay Sievers <kay@vrfy.org>
Sat, 14 Apr 2012 17:36:47 +0000 (19:36 +0200)
Makefile.am
src/test/test-libudev.c [moved from src/udev/test-libudev.c with 100% similarity]
src/test/test-udev.c [moved from src/udev/test-udev.c with 100% similarity]
test/.gitignore [moved from src/udev/test/.gitignore with 100% similarity]
test/rule-syntax-check.py [moved from src/udev/test/rule-syntax-check.py with 100% similarity]
test/rules-test.sh [moved from src/udev/test/rules-test.sh with 81% similarity]
test/sys.tar.xz [moved from src/udev/test/sys.tar.xz with 100% similarity]
test/udev-test.pl [moved from src/udev/test/udev-test.pl with 99% similarity]

index 33b51d8..fcc3bc6 100644 (file)
@@ -136,7 +136,8 @@ AM_CPPFLAGS = \
        -I $(top_srcdir)/src/journal \
        -I $(top_srcdir)/src/systemd \
        -I $(top_srcdir)/src/core \
-       -I $(top_srcdir)/src/libudev
+       -I $(top_srcdir)/src/libudev \
+       -I $(top_srcdir)/src/udev
 
 AM_CFLAGS = $(WARNINGFLAGS)
 AM_LDFLAGS = $(GCLDFLAGS)
@@ -1486,21 +1487,21 @@ udevadm_LDADD = \
 
 # ------------------------------------------------------------------------------
 TESTS += \
-       src/udev/test/udev-test.pl \
-       src/udev/test/rules-test.sh
+       test/udev-test.pl \
+       test/rules-test.sh
 
 noinst_PROGRAMS += \
        test-libudev \
        test-udev
 
 test_libudev_SOURCES = \
-       src/udev/test-libudev.c
+       src/test/test-libudev.c
 
 test_libudev_LDADD = \
        libudev.la
 
 test_udev_SOURCES = \
-       src/udev/test-udev.c
+       src/test/test-udev.c
 
 test_udev_LDADD = \
        libudev-core.la \
@@ -1508,21 +1509,21 @@ test_udev_LDADD = \
        libsystemd-shared.la
 
 check_DATA += \
-       src/udev/test/sys
+       test/sys
 
 # packed sysfs test tree
-src/udev/test/sys:
-       $(AM_V_GEN)mkdir -p src/udev/test && tar -C src/udev/test/ -xJf $(top_srcdir)/src/udev/test/sys.tar.xz
+test/sys:
+       $(AM_V_GEN)mkdir -p test && tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
 
 test-sys-distclean:
-       -rm -rf src/udev/test/sys
+       -rm -rf test/sys
 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
 
 EXTRA_DIST += \
-       src/udev/test/sys.tar.xz \
-       src/udev/test/udev-test.pl \
-       src/udev/test/rules-test.sh \
-       src/udev/test/rule-syntax-check.py
+       test/sys.tar.xz \
+       test/udev-test.pl \
+       test/rules-test.sh \
+       test/rule-syntax-check.py
 
 # ------------------------------------------------------------------------------
 ata_id_SOURCES = \
similarity index 100%
rename from src/udev/test-udev.c
rename to src/test/test-udev.c
similarity index 100%
rename from src/udev/test/.gitignore
rename to test/.gitignore
similarity index 81%
rename from src/udev/test/rules-test.sh
rename to test/rules-test.sh
index 5b3acea..1e224ff 100755 (executable)
@@ -12,4 +12,4 @@ type python >/dev/null 2>&1 || {
         exit 0
 }
 
-$srcdir/src/udev/test/rule-syntax-check.py `find $srcdir/rules -name '*.rules'`
+$srcdir/test/rule-syntax-check.py `find $srcdir/rules -name '*.rules'`
similarity index 100%
rename from src/udev/test/sys.tar.xz
rename to test/sys.tar.xz
similarity index 99%
rename from src/udev/test/udev-test.pl
rename to test/udev-test.pl
index a09e1b5..0a2571a 100755 (executable)
@@ -21,7 +21,7 @@ use warnings;
 use strict;
 
 my $PWD                 = $ENV{PWD};
-my $sysfs               = "src/udev/test/sys";
+my $sysfs               = "test/sys";
 my $udev_bin            = "./test-udev";
 my $valgrind            = 0;
 my $udev_bin_valgrind   = "valgrind --tool=memcheck --leak-check=yes --quiet $udev_bin";