Axel Beckert
ea95b1ef03
t/hook-apt.t: Special case for Perl 5.10
...
File::Copy in Perl 5.10 does not copy permissions, so let's fix it
there and check for it elsewhere.
This reverts the two commits 06b3faa1bf8af440f865322de91a03ecadd04e06
and 68c20b4e4e351846c80af98db75eee3030f25fa6 which did not help to fix
this issue as the initially suspected noexec mount wasn't really
there. Hopefully this finally resolves the test failures with Perl
5.10 in the new t/hook-apt.t.
2020-12-20 22:40:57 +01:00
Axel Beckert
285d2c80b9
Use regexp to check for $dist/updates vs $dist-security
...
If the security repo will be enabled or not currently depends on the
host's sources.list. So the resulting files differ depending on the
host where the test is run. Add a TODO item to break with that
"feature".
Also mention in the TODO list that a repo on archive.debian.org should
be used instead security.debian.org if the release is EoL. Currently
the security mirror is hardcoded into the hook.
2020-12-20 08:33:47 +01:00
Axel Beckert
85c0583819
Add test for $dist/updates vs $dist-security
...
Uses Test::File::Contents, add it to .travis.yml and the according
package as build-dependency in debian/control.
2020-12-20 06:44:12 +01:00
Axel Beckert
4d4daca745
Fix typos found by check-all-the-things/spellintian
2016-08-11 21:47:35 +02:00
Axel Beckert
18b76606d2
Fix typos found by check-all-the-things/codespell
2016-08-11 21:35:41 +02:00
Axel Beckert
ca9e091d4b
Switch many URLs to https://; update them if broken or redirected
2016-08-11 20:53:10 +02:00
Axel Beckert
cf034d932e
Fix unescaped braces (deprecated with Perl 5.22) in t/plugin-checks.t
2015-12-23 18:12:49 +01:00
Axel Beckert
b16fe28925
Make t/hooks-inittab.t using its own inittab copy
...
Don't use the system's one. Besides being non-existent, it can look
like whatever.
This resolves GH-36.
2015-12-16 18:01:38 +01:00
Axel Beckert
5c0679ca45
Fix Perl warning in t/hook-inittab.t if /etc/inittab isn't present
...
aka "proper use of skip".
Fixes autopkgtest which failed due to STDERR output.
2015-07-30 18:58:47 +02:00
Axel Beckert
2dcea1666a
Add as-installed testing support
2015-07-14 21:55:41 +02:00
Axel Beckert
e6653f1ae9
Move more tests to author-tests (xt)
2015-07-14 20:59:10 +02:00
Axel Beckert
581ac8b4d9
Split up tests in functionality and author tests
2015-07-14 20:18:40 +02:00
Axel Beckert
07d68bb448
Call chmod in t/Makefile instead of inside t/modules.sh
2015-06-11 22:33:14 +02:00
Axel Beckert
1d07f06953
Testsuite: Optimize modules.sh
2015-06-11 22:32:00 +02:00
Axel Beckert
aacfb59fe5
Testsuite: Let modules.sh ignore the .git directory
...
t/modules.t failed if a git commit message had a line starting with
"use ".
2015-06-11 22:19:48 +02:00
Axel Beckert
81ca2fb62d
t/perl-syntax.t: Ignore changelog files, too
2014-10-26 01:43:53 +02:00
Axel Beckert
e850ad7ab3
Run some tests twice, once with mocked File::Which, once with original File::Which
2014-09-25 21:57:33 +02:00
Axel Beckert
4e43b8faf2
Test suite: Rename SAFE_ENV to SAVE_ENV to prevent confusion
2014-09-25 20:55:35 +02:00
Axel Beckert
47b100cf08
Drop redundant occurrences of "./" from test suite
2014-09-25 20:10:11 +02:00
Axel Beckert
fd0a5d2b10
Don't run t/gitignore.t on Travis, doesn't make sense on a fresh checkout
2014-09-25 19:50:24 +02:00
Axel Beckert
edc7737cb3
Make test suite work with perl in $PATH instead of hardcoded /usr/bin/perl
2014-09-25 19:40:26 +02:00
Axel Beckert
fcebb14002
Drop all xend related sanity checks
...
They cause more havoc nowadays than they help.
Thanks Ian Campbell!
Closes : #732456
2014-03-28 22:24:21 +01:00
Axel Beckert
c5a2e2427a
Ignore cover_db directory in t/perl-syntax.t
2013-12-15 17:32:32 +01:00
Axel Beckert
81511000d8
Run t/gitignore.t only if git is installed and .git present
2013-10-29 00:09:03 +01:00
Axel Beckert
dcb9284636
Remove unused Perl modules Xen::Tools and Xen::Tools::Log
...
Further developement of the (if any) will happen in the git branch
"xen-tools-moose" where they are still available.
Also remove the according (already disabled) tests and test
modifications from the test suite.
Also remove no the more needed build-dependency on Moose as well as
one Makefile line installing the above mentioned Perl modules.
2013-04-18 20:17:33 +02:00
Axel Beckert
07622d8ed0
t/xen-delete-image.t: Check xen-delete-image exit code
...
Also run xen-delete-image verbose and print output.
2013-04-18 16:26:55 +02:00
Axel Beckert
081c0370d4
Properly clean up after t/xt-create-xen-config.t
2013-04-18 16:21:25 +02:00
Axel Beckert
5a48067d9e
Make some x-c-i commandline options negatable
...
Update documentation and tests accordingly.
Also add pygrub = 1 as example to xen-tools.conf, now that the effect
can be reversed via commandline options.
2013-04-11 15:51:31 +02:00
Axel Beckert
01e525106b
Use Test::NoTabs in t/no-tabs.t
2013-03-05 23:07:04 +01:00
Axel Beckert
3456849ec8
Make t/xen-lists-images.t more strict: No more /i
2013-01-17 22:17:37 +01:00
Axel Beckert
c6caa0a0ad
Fix "--extension=" with empty parameter
2013-01-17 21:57:50 +01:00
Axel Beckert
ab9b033068
Fix some whitespace issues in t/argument-check.t
2012-11-28 00:04:25 +01:00
Axel Beckert
16dd2d9f2f
Use done_testing instead of no_plan
2012-11-28 00:04:07 +01:00
Axel Beckert
00bb137012
New xen-delete-image option --no-xen-ok for disabling xenRunning tests
2012-11-27 23:53:03 +01:00
Axel Beckert
6b64dcc122
Call scripts in tests with local library paths
2012-11-27 23:39:49 +01:00
Axel Beckert
494ec02a7c
Merge branch 'master' into code-deduplication
...
Conflicts:
bin/xen-create-image
bin/xen-create-nfs
bin/xt-create-xen-config
2012-11-27 22:40:08 +01:00
Axel Beckert
83eede665c
Fix warning about no_plan usage in t/hook-inittab.t
2012-11-27 22:29:04 +01:00
Axel Beckert
6f2814f414
Merge branch 'master' into code-deduplication
...
Conflicts:
bin/xen-create-image
2012-11-27 13:22:34 +01:00
Axel Beckert
d6e33edb5b
Only run testTLSDisabling if distribution actually has 10-disable-tls
2012-06-27 01:49:56 +02:00
Axel Beckert
611d6c4eb4
Ignore hooks/common in t/hook-tls.t
2012-06-27 01:49:21 +02:00
Axel Beckert
0cde7cdf39
t/hook-tls.t: Always output tested distribution
2012-06-27 01:41:42 +02:00
Axel Beckert
cde5617a29
Use "rm -vf" instead of "-rm" in t/Makefile
2012-06-27 01:33:47 +02:00
Axel Beckert
74411f970b
Remove t/modules.t in upstream's t/Makefile
...
... instead of remove it in debian/rules' clean target.
Call clean target of t/Makefile also from clean target of toplevel
Makefile.
2012-06-27 01:32:41 +02:00
Axel Beckert
917d3d6b2a
Skip t/hook-inittab.t if /etc/inittab is not present
...
Fixes FTBFS on Ubuntu.
2012-06-08 18:41:58 +02:00
Axel Beckert
8ba16d0e7a
Disable tests of not yet used Xen::Tools perl modules.
...
Fixes FTBFS in test suite due to not satisifed Moose dependency in
Xen::Tools::Log.
2012-06-08 17:37:28 +02:00
Axel Beckert
93b7cb3bf2
Make several tests not check files multiple times via symlinks
2012-06-04 19:08:12 +02:00
Axel Beckert
fc736c040d
Refactoring: Massive code deduplication in hooks directory
...
All hooks files which were identical and had no second group of
identically named hook files have been moved to a new hooks/common
directory and now have symbolic links to the new single file at their
old locations.
Also slightly modified to make this work:
* Makefile: copy new hooks/common directory
* Some tests: ignore new hooks/common directory
2012-06-04 16:26:03 +02:00
Axel Beckert
a23f31077a
Call commands in tests with proper search path for perl modules
2012-05-31 01:19:23 +02:00
Axel Beckert
ed91f1fc43
Merge branch 'master' into code-deduplication
...
Conflicts:
bin/xen-create-image
2012-05-31 01:07:59 +02:00
Axel Beckert
625a6f6282
Make t/xen-tools.t not fail on package build
...
Note down that t/xen-tools.t is not really functional yet
2012-05-30 23:03:12 +02:00