Stéphane Jourdois
ebdf51c262
Ignore generated t/modules.t file.
2010-07-26 20:24:37 +02:00
Stéphane Jourdois
3a456608d4
Configure a default locale.
2010-07-26 20:24:37 +02:00
Stéphane Jourdois
395e3d0a0b
Ignore ChangeLog.
2010-07-26 20:24:37 +02:00
Stéphane Jourdois
389fa94bcb
Move old log files rather than removing them.
2010-07-26 20:24:37 +02:00
Stéphane Jourdois
46242f4be2
Add completion for some new options.
2010-07-26 20:24:37 +02:00
Stéphane Jourdois
dff767c692
Fix code styling issues.
...
Tabs, trailing spaces, you name it.
2010-07-26 20:24:37 +02:00
Stéphane Jourdois
64c9c8398b
Remove trailing space from make_fs_ options.
...
The "-d name=" option doesn't appear as necessary with mkfs.xfs, at
least with version 3.1.2 of mkfs.xfs (of course, tested with a file
instead of a device).
This simplifies a TODO item.
2010-07-26 19:28:28 +02:00
Stéphane Jourdois
669b4c8f4f
Typo & permisions.
2010-07-26 19:13:35 +02:00
Stéphane Jourdois
5cd664c6b0
Encrypt root password with sha256 by default.
...
- Use perl crypt with some magic rather than openssl to hash root
password, either generated or provided by user.
- Remove the undocumented dependency on openssl.
- Add a hash_method option to configure the hashing algorithm.
- Permit md5, sha256 and sha512, and use sha256 as default.
- Remove TODO entry about "more random" passwords.
- Remove an ugly system() call.
2010-07-25 22:10:59 +02:00
Stéphane Jourdois
77a3876cbe
Do not copy host sudoers in guest.
...
As noticed by Dmitry Nedospasov (Cf. [1]), sudoers file should not be
copied by default.
Move this hook to a role, and add a warning about this in role.
[1] http://xen-tools.org/pipermail/xen-tools-dev/2010-July/000146.html
2010-07-25 22:10:59 +02:00
Axel Beckert
97ecedde5f
reiser_options -> reiserfs_options
...
Thanks Julien Gaulmin and Roland Stigge.
2010-07-24 16:00:05 +02:00
Axel Beckert
5943a70574
Fix description: temporary files -> dot files
2010-07-23 14:54:20 +02:00
Stéphane Jourdois
6f0c858a2b
Add validation for ip and mac
...
I forgot those on first pass, sorry.
2010-07-23 13:29:56 +02:00
Stéphane Jourdois
858f47dd2e
Add mailmap for more beautiful git shortlog.
...
Also, do not ignore .mailmap in git.
2010-07-23 13:29:56 +02:00
Stéphane Jourdois
0cc3c37d74
Podchecker doesn't like empty paragraphs
...
So remove them, even if t/pod-check.t doesn't currently checks
for those unused modules.
2010-07-23 13:29:56 +02:00
Stéphane Jourdois
2326ca9e23
Again remove tests from TODO :-)
2010-07-23 13:29:56 +02:00
Stéphane Jourdois
ea09c86b7a
Do not ignore serial_device nor disk_device
...
Harden mirror and options regexps also.
2010-07-23 13:29:56 +02:00
Stéphane Jourdois
0cb0a8716c
Debootstrap only exists on Debian and Ubuntu
...
Do not fail this test on other distribs.
2010-07-23 13:29:56 +02:00
Axel Beckert
231fff9785
Shebang lines with /bin/bash are not wanted.
...
There maybe systems, especially in the BSD world, without bash.
2010-07-23 13:28:28 +02:00
Stéphane Jourdois
19d84a3d9e
Harden this test.
...
Read and test only the shebang, not the whole file, +typos.
Ignore empty files.
2010-07-18 21:27:23 +02:00
Stéphane Jourdois
3b26e3f54f
We do not care about git files nor temporary files
2010-07-18 21:27:23 +02:00
Stéphane Jourdois
6cc2e3c1c1
Help test to find modules
...
Pod::Coverages wants to find perl modules in @INC.
2010-07-18 21:27:23 +02:00
Stéphane Jourdois
85acd315bd
Add a gitignore coherency test
...
This tests helps to maintain .gitignore up to date, by :
- testing if all ignored files have to be ignored, and
- testing if all untracked files are ignored.
[ Note : second version ]
Make test work on older git versions
I.e. the git version used on Debian stable.
2010-07-18 21:26:41 +02:00
Stéphane Jourdois
c59eb9aba4
Do not track .hgtags
...
This file is listed in .gitignore, suggesting that it is not necessary
to track it.
Do not accept this patch if this is not the case !
2010-07-18 20:40:17 +02:00
Stéphane Jourdois
2fd6828346
This file was used by Steve Kemp
...
Do not accept this patch if this file is still used !
2010-07-18 20:40:17 +02:00
Stéphane Jourdois
e788e35cc1
Harden .gitignore
...
- Ignore all dotfiles but .gitignore and .hgignore files
- Provide a way to test this file in header
- ChangeLog and debian-files are generated at root
- Ignore patches and orig files
2010-07-18 20:40:17 +02:00
Dmitry Nedospasov
3951ceb718
Fix karmic/lucid gettys
...
This was broken by a previous patch, the if statement looked for
a foler that doesn't exist on karmic, but did on prior release,
since ttys are no longer in /etc/event.d, but instead in /etc/init
/etc/event.d -> /etc/init
2010-07-18 20:14:26 +02:00
Dmitry Nedospasov
1aeb23823c
Fix hostname regex check
...
Set a minimal length so that the check doesn't fail
2010-07-18 19:52:29 +02:00
Stéphane Jourdois
0e16a65d80
Validate option arguments
...
Also provide a default value for serial_device and disk_device.
Remove corresponding TODO entry.
Note: as shown by this patch, some needed fixes remain. Some options
take yes/no, some 0/1, etc.
2010-07-18 18:37:59 +02:00
Stéphane Jourdois
2e3924427e
Use Dom0's resolv.conf unless nameserver is set.
...
If nameserver config option is not set (default value), copy Dom0's
/etc/resolv.conf on guest.
Provide a role to show how to customize /etc/resolv.conf in guest.
2010-07-18 18:35:51 +02:00
Dmitry Nedospasov
ec26ac7c9f
Added some TODOs
2010-07-18 18:21:19 +02:00
Dmitry Nedospasov
60942153a9
TODO Formating
2010-07-18 18:15:30 +02:00
Dmitry Nedospasov
1ec6e7d4bb
Update password related TODOs
...
Removed one password TODO, added another far less critical one.
2010-07-18 18:07:32 +02:00
Axel Beckert
34ba628f64
TODO: Last test which fails (no idea why yet) is t/pod-coverage.t
2010-07-16 18:14:47 +02:00
Axel Beckert
8f18a42496
Replace tabs by 8 blanks (for now)
2010-07-16 18:07:12 +02:00
Axel Beckert
a04bae2be0
Skip t/xen-tools.t if not running as root (tries to mkdir -p /var/log/xen-tools)
2010-07-16 18:00:52 +02:00
Axel Beckert
c67d218cef
Tighten t/quoted-strings.t a little bit against false positives
2010-07-16 17:52:34 +02:00
Axel Beckert
74ec5d698a
Fix error "Can't exec "mkdir -p": No such file or directory at lib/Xen/Tools/Log.pm"
2010-07-16 17:42:31 +02:00
Axel Beckert
806f2d0b23
Replace tabs by 8 blanks (for now)
2010-07-16 17:38:37 +02:00
Axel Beckert
a4a39191e2
t/portable-shell.t: Don't check hooks under .git
2010-07-16 17:33:04 +02:00
Axel Beckert
e6ebdac66f
Big TODO: Refactor the code for less code duplication
2010-07-16 17:30:28 +02:00
Axel Beckert
b7c1cd9d8a
xen-resize-guest: Don't read config file if it doesn't exist as xen-create-image does
2010-07-16 17:30:08 +02:00
Axel Beckert
cc64623752
Make t/getopt.t parse '|' in GetOpt definitions
2010-07-16 17:19:17 +02:00
Stéphane Jourdois
660569dffe
Use skip_all rather than SKIP block
...
This makes prove t output less verbose
2010-07-16 16:56:24 +02:00
Axel Beckert
3d9621293c
For now use blanks instead of tabs
2010-07-16 16:56:13 +02:00
Stéphane Jourdois
18f2582648
Export partitions in test and use xvda as default
...
This test now passes.
2010-07-16 16:48:51 +02:00
Stéphane Jourdois
05def34ca4
Get extension from command line and not from environment
...
This helps t/xt-create-xen-config to pass.
2010-07-16 16:48:51 +02:00
Axel Beckert
82fae6a5bc
Consistent code style for hash value accesses
2010-07-16 16:48:25 +02:00
Stéphane Jourdois
9e738bfb5f
Test variable before use
2010-07-16 16:27:42 +02:00
Stéphane Jourdois
14846e85fd
Use rmtree not rmdir
...
rmdir does not remove dir when not empty. Use rmtree for that.
makes t/xen-delete-image test pass.
2010-07-16 16:27:42 +02:00