Commit Graph

35 Commits

Author SHA1 Message Date
Anthony G. Basile 0342e13a32 Fix test-udev.c to build and work on a uclibc system
Two issues are addressed: 1) Makefile.am has to provide config.h
information on HAVE_UNSHARE to test-udev.c.  2) MS_PRIVATE and
MS_REC are defined in <linux/fs.h> which must be directly included
on a uclibc system because of different header stackings.  Its
inclusion makes no difference on a glibc system.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
2013-01-22 14:29:53 -05:00
Nick Vinson 3d2fa99001 Replace unused DISTCLEAN_LOCAL_HOOKS and correct path in test/Makefile.am
The DISTCLEAN_LOCAL_HOOKS variable is not used by automake when generating
Makefiles.  This has been replaced with the clean-local target which does get
used.  The clean-local target is defined to be dependent on the
test-sys-distclean target as recommended in the automake manual.

The paths in test-sys-distclean have been corrected to ensure that test/sys is
deleted during 'make distcheck'.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2012-11-26 23:52:18 -05:00
Anthony G. Basile 73e31d7ae7 Fix paths: test/udev-test.pl now works under sudo make distcheck
We move the test-udev.c and test-libudev.c from src/test to test.
This corrects the a problem with hard coded relative paths finding
the test/test/sys directory created by test/udev-test.pl.

This commit draws heavily from nvinson patch in

 https://github.com/gentoo/eudev/pull/20

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2012-11-24 23:47:06 -05:00
Anthony G. Basile bcc69ef934 Reintroduce keymaps build and test
This commit reintroduces code to

 1) build src/keymap
 2) test keymap/Makefile.am that it has all the key maps listed
 3) test that all the key names in keymap/* are in <linux/input.h>
 4) do a syntax check on rules/*.rules which now includes
    95-keymap.rules and 95-keyboard-force-release.rules

For #4, the regex expressions in rule-syntax-check.py had to be
updated.  They do not allow trailing comments via # comment, and
I did not include that.  A rule in 95-keymap.rules had to have its
comment moved from the end to another line.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2012-11-20 14:44:47 -05:00
Anthony G. Basile 802d021d2e test/Makefile.am: fix tests for make distcheck
At several points in the forked code, top_srcdir and top_builddir
are mixed up.  It is not clear if this is an upstream bug or if this
is a result of the initial restructuring of the build system.  This
commit addresses this issue for tests triggered during make distcheck.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2012-11-19 19:09:48 -05:00
Anthony G. Basile c47f33a498 Second step of revamping the build system
The original Makefile.am was drawn to the top level.  This commit
breaks it out into the various directories with SUBDIRS connecting
them.  This makes each directory easier to maintain.
2012-11-15 20:18:22 -05:00
Anthony G. Basile 7d4a62f8c1 Isolation of udev code from remaining systemd
This commit is a first attempt to isolate the udev code from the
remaining code base.  It intentionally does not modify any files
but purely delete files which, on a first examination, appear to
not be needed.  This is a sweeping commit which may easily have
missed needed code.  Files can be retrieved by doing a checkout
from the previous commit:

 git checkout 2944f347d0 -- <filename>
2012-11-15 10:33:16 -05:00
Kay Sievers 1298001ec5 use the same email address everywhere 2012-11-12 19:47:43 +01:00
Kay Sievers 5488ac8c3a udev: fix rule-syntax-check.py 2012-10-09 00:49:15 +02:00
Kay Sievers 8a1733871f udev: remove SYMLINK "unique" option 2012-10-08 21:54:39 +02:00
Lennart Poettering 71dc3ed1d9 test: split of cryptsetup into its own test 2012-09-13 23:19:05 +02:00
Thomas Hindoe Paaboel Andersen c53158818d man: fix a bunch of typos in docs
https://bugs.freedesktop.org/show_bug.cgi?id=54501
2012-09-13 19:34:24 +02:00
Kay Sievers 4cb72937d3 udev: get rid of TEST_PREFIX and use unshare() to fake /sys, /dev, /run 2012-07-15 22:10:46 +02:00
Lennart Poettering 5076f0ccfd nspawn: introduce new --capabilities= flag and make use of it in the nspawn test case 2012-06-28 14:05:16 +02:00
Lennart Poettering 5fa594df8d test: reenable nspawn, even if it fails for now 2012-06-28 12:18:04 +02:00
Harald Hoyer c452e37254 test/README.testsuite: add documentation for the testsuite 2012-05-29 09:23:37 +02:00
Harald Hoyer 0d6e798a78 test/TEST-01-BASIC: add /var on cryptoluks and wait for the journal 2012-05-29 09:23:37 +02:00
Harald Hoyer 1ecf6a2b49 test/test-functions: add check_qemu() and check_nspawn() functions 2012-05-29 09:23:37 +02:00
Harald Hoyer 6ea4364c7b test/TEST-01-BASIC: fail test, if qemu failed 2012-05-29 09:23:37 +02:00
Harald Hoyer f7c05f7de6 test/TEST-01-BASIC: make DEBUGTOOLS an environment variable 2012-05-29 09:23:31 +02:00
Harald Hoyer 33a5e20ffa test/test-functions: be more verbose about skipping tests 2012-05-29 09:23:31 +02:00
Harald Hoyer bd2b15138e test/TEST-01-BASIC: add missing "; then" 2012-05-24 16:07:35 +02:00
Harald Hoyer 7b17d413b1 test/TEST-01-BASIC: only test systemd-nspawn, if the test system uses systemd 2012-05-24 16:02:06 +02:00
Harald Hoyer d9890f4ed4 test/TEST-01-BASIC: add systemd-nspawn run with the root image 2012-05-24 15:52:31 +02:00
Harald Hoyer 6b197f2a03 test/TEST-01-BASIC: untabified 2012-05-24 15:33:58 +02:00
Harald Hoyer 3d3035e80c test/TEST-01-BASIC: add a defined rc.local 2012-05-24 15:32:51 +02:00
Harald Hoyer 7c1856aacd test/TEST-01-BASIC: add /etc/localtime to test image 2012-05-24 15:32:51 +02:00
Lennart Poettering 680705351d test: add touch to test machine 2012-05-24 15:21:43 +02:00
Lennart Poettering 32d965851d test: check systemctl --failed in test VM 2012-05-24 14:32:48 +02:00
Harald Hoyer 898720b7e9 test: introduce a basic testsuite framework
$ cd test
$ sudo make check

will run all tests in the TEST-* subdirectories

$ cd test/TEST-01-BASIC
$ sudo make clean setup run

will run the different stages of the test for debugging purposes
2012-05-22 16:54:54 +02:00
Kay Sievers 6ada823a9a udev: remove configuration options for /dev, /sys, /run directories 2012-04-16 19:20:57 +02:00
Kay Sievers 0b87a07761 udev: test - move test/ and src/test/ 2012-04-14 19:36:47 +02:00
Lennart Poettering 379079ba6b test: test tools should still be in the src/ directory 2012-04-12 13:48:01 +02:00
Kay Sievers 6af684ee5c move a couple of test-*.c to test/ 2012-04-12 13:17:41 +02:00
Lennart Poettering 5e2c93666f test: rename test directory 2011-12-31 18:06:56 +01:00