Vladimir 'phcoder' Serbinenko
fa7d914e6c
* tests/grub_script_expansion.in: Use fixed-string grep to skip over
...
firmware error messages.
2013-04-15 01:53:33 +02:00
Vladimir 'phcoder' Serbinenko
5351da81e0
* tests/grub_cmd_date.in: Add missing exit 1.
2013-04-14 17:19:04 +02:00
Vladimir 'phcoder' Serbinenko
c9d586ea17
* tests/partmap_test.in: Skip on sparc64.
2013-04-14 17:16:32 +02:00
Vladimir 'phcoder' Serbinenko
3f72974141
Support grub-shell on sparc64.
2013-04-14 17:13:58 +02:00
Vladimir 'phcoder' Serbinenko
a3d566d442
Disable partmap check on i386-ieee1275 due to openfirmware issues.
2013-04-12 17:51:43 +02:00
Vladimir 'phcoder' Serbinenko
a936af564c
* tests/util/grub-shell.in: Fix it on powerpc.
2013-04-12 14:52:05 +02:00
Vladimir 'phcoder' Serbinenko
e3734b84cf
* tests/grub_cmd_date.in: New test for datetime.
2013-04-12 01:47:38 +02:00
Vladimir 'phcoder' Serbinenko
f9d4005539
* tests/partmap_test.in: Fix missing qemudisk setting.
2013-04-12 01:44:14 +02:00
Vladimir 'phcoder' Serbinenko
dbc56d8f0b
Support i386-ieee1275 grub-mkrescue and make check on it.
2013-04-12 01:29:45 +02:00
Colin Watson
fd49ceb35c
Apply program name transformations at build-time rather than at
...
run-time. Fixes Debian bug #696465 .
* acinclude.m4 (grub_TRANSFORM): New macro.
* configure.ac: Create output variables with transformed names for
most programs.
* util/bash-completion.d/grub-completion.bash.in: Use
pre-transformed variables for program names.
* util/grub-install.in: Likewise.
* util/grub-kbdcomp.in: Likewise.
* util/grub-mkconfig.in: Likewise.
* util/grub-mkconfig_lib.in: Likewise.
* util/grub-mknetdir.in: Likewise.
* util/grub-mkrescue.in: Likewise.
* util/grub-mkstandalone.in: Likewise.
* util/grub-reboot.in: Likewise.
* util/grub-set-default.in: Likewise.
* util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
* tests/util/grub-shell-tester.in: Remove unused assignment.
* tests/util/grub-shell.in: Likewise.
* util/grub.d/00_header.in: Likewise.
2012-12-28 06:57:17 +00:00
Vladimir 'phcoder' Serbinenko
a370616293
* tests/util/grub-shell.in: Fix a typo.
2012-06-22 21:59:10 +02:00
Vladimir 'phcoder' Serbinenko
eac49cffc8
Add loongson tests.
...
* tests/util/grub-shell.in: Handle loongson.
* tests/partmap_test.in: Add loongson to the list of platform using ATA
drivers.
* grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
Reboot instead of shutdown if REBOOT is defined.
2012-06-15 19:42:25 +02:00
Vladimir 'phcoder' Serbinenko
5561c22d59
* tests/grub_script_expansion.in: Explicitly tell grep that we handle
...
text and not binary.
2012-06-09 19:58:38 +02:00
Vladimir 'phcoder' Serbinenko
34b2bced3f
* tests/partmap_test.in: Skip on ppc due to serious firmware bug.
2012-06-08 23:02:37 +02:00
Vladimir 'phcoder' Serbinenko
5e619f408d
Fix wildcard escaping.
...
* grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
* grub-core/script/execute.c (wildcard_escape): .. to here.
Don't escape dot.
* grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
* grub-core/script/execute.c (wildcard_unescape): .. to here.
Don't escape dot.
* grub-core/script/execute.c (gettext_append): Always escape.
(grub_script_arglist_to_argv): Always handle escaping/unescaping.
* grub-core/script/yylex.l: Don't cut away the escaping.
* tests/grub_script_echo1.in: Add tests with wildcard.
2012-06-08 22:54:21 +02:00
Vladimir 'phcoder' Serbinenko
f57c84cd60
* tests/grub_script_expansion.in: Skip network protocols.
2012-06-08 20:31:05 +02:00
Vladimir 'phcoder' Serbinenko
ecfc6207d6
* tests/util/grub-shell.in: Use escc-ch-a port on ppc.
2012-06-08 20:29:15 +02:00
Vladimir 'phcoder' Serbinenko
08a14e0b71
* tests/util/grub-shell.in: Trim firmware output on EFI.
2012-06-07 16:33:17 +02:00
Vladimir 'phcoder' Serbinenko
60fde14d3e
Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
...
* Makefile.am: Remove GRUB_QEMU_OPTS handling.
* tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
2012-06-07 14:14:02 +02:00
Vladimir 'phcoder' Serbinenko
37ba07ebaf
Extend automated tests to qemu-mips.
...
* Makefile.am: reorganise tests and enable qemu-mips.
* configure.ac (COND_mipseb), (COND_mipsel): New conditions.
* grub-core/tests/boot/linux.init-mips.S: New file.
* tests/partmap_test.in: Handle ata0 disks.
* tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
non-pc i386.
2012-06-06 12:36:33 +02:00
Vladimir 'phcoder' Serbinenko
1c4afb6095
* tests/cmp_unit_test.c: Add missing failure message.
...
* tests/example_unit_test.c: Likewise.
* tests/printf_unit_test.c: Likewise.
2012-05-30 13:54:30 +02:00
Vladimir 'phcoder' Serbinenko
eea1e26e52
* grub-core/script/yylex.l: Ugly fix for "\\\n ".
...
* tests/grub_script_echo1.in: Add tests.
2012-05-08 23:20:02 +02:00
Vladimir 'phcoder' Serbinenko
ce41ab7aab
* grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
...
per common usage and preffered in several parts of code.
(grub_memcmp): Likewise.
(grub_strncmp): Likewise.
* include/grub/misc.h (grub_strcasecmp): Likewise.
(grub_strncasecmp): Likewise.
* Makefile.util.def (cmp_test): New test.
(grub_script_strcmp): Likewise.
* tests/cmp_unit_test.c: New file.
* tests/grub_script_strcmp.in: Likewise.
* grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
2012-05-04 12:08:22 +02:00
Vladimir 'phcoder' Serbinenko
b9153381b8
* util/grub-mknetdir.in: Rename --override-directory to --directory and
...
document it.
* tests/util/grub-shell.in: Update to --directory.
2012-04-14 15:20:45 +02:00
Vladimir 'phcoder' Serbinenko
16fc9293d6
* tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
...
and grub-mknetdir.
2012-04-11 22:43:15 +02:00
Vladimir 'phcoder' Serbinenko
ac6fd21803
* grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
...
spaces.
* tests/grub_script_leading_whitespace.in: New file.
* Makefile.util.def (grub_script_leading_whitespace): New test.
2012-03-19 13:29:43 +01:00
Vladimir 'phcoder' Serbinenko
546fbe9b5a
Add variable parsing in $"..." and fix several mismatches with bash.
...
* Makefile.util.def (grub_script_gettext): New test.
* grub-core/script/execute.c (parse_string): New function.
(gettext_append): Likewise.
(grub_script_arglist_to_argv): Use gettext_append.
* grub-core/script/yylex.l: Fix slash and newline handling in $"...".
* tests/grub_script_gettext.in: New file.
2012-03-11 14:46:48 +01:00
Vladimir 'phcoder' Serbinenko
9fdb2d7b11
Fix handling of leading spaces in scripts.
...
* grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
spaces.
* grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
other than skipping \r. All users updated.
* tests/grub_script_echo1.in: Add space-related tests.
* util/grub-menulst2cfg.c (main): Remove useless space skipping.
2012-03-11 14:43:18 +01:00
Vladimir 'phcoder' Serbinenko
3fd8bae5cf
* tests/partmap_test.in: Replace qemu-img usage with dd to decrease
...
dependencies.
2012-03-10 14:35:17 +01:00
Vladimir 'phcoder' Serbinenko
53f13848f1
Remove platform and target_cpu replacement.
...
* configure.ac: Remove platform and target_cpu substitutions.
* tests/util/grub-shell.in: Use modinfo.
* util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
explicitly.
2012-02-27 16:46:52 +01:00
Vladimir 'phcoder' Serbinenko
e51b56667a
* include/grub/test.h (grub_unit_test_init): Add missing prototype.
...
(grub_unit_test_fini): Likewise.
* tests/lib/unit_test.c (main): Remove extra nested external prototype.
2012-02-12 22:04:55 +01:00
Vladimir 'phcoder' Serbinenko
f8a9ab1245
* grub-core/commands/wildcard.c (match_files): Handle filenames
...
without explicit device.
(wildcard_expand): Don't add explicit device if not already present.
* tests/grub_script_echo1.in: Add a new expansion test.
2012-01-24 13:34:36 +01:00
Vladimir 'phcoder' Serbinenko
48b391e9ab
Handle newer autotools. Add some missing quotes while on it.
...
* Makefile.am (pkglib_DATA): Remove update-grub_lib.
(pkglib_DATA): Move grub-mkconfig_lib from here ...
(pkgdata_DATA): ... here.
* Makefile.util.def (update-grub_lib): Removed.
* conf/Makefile.common (pkglib_DATA): Removed.
(pkglib_SCRIPTS): Likewise.
(pkgdata_DATA): New variable.
* tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
needed.
Add missing quotes.
Remove unused variable while on it.
* tests/util/grub-shell.in: Likewise.
* util/grub-install.in: Likewise.
* util/grub-mkconfig.in: Likewise.
* util/grub-mknetdir.in: Likewise.
* util/grub-mkrescue.in: Likewise.
* util/grub-mkstandalone.in: Likewise.
* util/grub.d/00_header.in: Likewise.
* util/grub.d/10_hurd.in: Likewise.
* util/grub.d/10_illumos.in: Likewise.
* util/grub.d/10_kfreebsd.in: Likewise.
* util/grub.d/10_linux.in: Likewise.
* util/grub.d/10_netbsd.in: Likewise.
* util/grub.d/10_windows.in: Likewise.
* util/grub.d/20_linux_xen.in: Likewise.
* util/grub.d/30_os-prober.in: Likewise.
* util/update-grub_lib.in: Removed.
2012-01-24 13:17:36 +01:00
Vladimir 'phcoder' Serbinenko
12d4f965cd
Support %1$d syntax.
...
* tests/printf_unit_test.c: New file.
* Makefile.util.def (printf_test): New test.
* grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
2011-11-11 21:14:41 +01:00
Colin Watson
5626056ffb
* grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
...
to avoid accidents when debugging with 'sh -x'.
* grub-core/gensyminfo.sh.in: Likewise.
* tests/example_scripted_test.in: Likewise.
* tests/grub_cmd_regexp.in: Likewise.
* tests/grub_script_blanklines.in: Likewise.
* tests/grub_script_dollar.in: Likewise.
* tests/grub_script_expansion.in: Likewise.
* tests/grub_script_final_semicolon.in: Likewise.
* tests/partmap_test.in: Likewise.
* tests/util/grub-shell-tester.in: Likewise.
* tests/util/grub-shell.in: Likewise.
2011-05-18 12:53:07 +01:00
Vladimir 'phcoder' Serbinenko
4959e11109
Use mipsel- rather than mips- in directories involving mipsel ports to
...
allow both endiannesses coexist.
* configure.ac: proparate target_cpu=mipsel rather than resetting to
mips. All conditions adjusted.
* tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
variable.
* util/grub-install.in: Adjust conditions to take renaming into account.
* util/grub-mkimage.c (image_targets): Likewise. New target
mips-qemu_mips-elf for bigendian mips.
2011-05-17 22:48:20 +02:00
Colin Watson
4ebff75340
* tests/partmap_test.in: Don't hardcode path to parted.
...
Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150 .
2011-05-03 17:57:39 +01:00
Colin Watson
415502c26a
* tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
...
avoid causing test failures by clearing the screen.
2011-01-06 13:24:38 +00:00
Jordan Uggla
ab66c69f1a
* tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
...
keep unit tests from failing when they shouldn't.
2010-12-23 11:51:18 +00:00
BVK Chaitanya
a8152fedab
suppress shell expansion inside quoted strings
2010-11-07 16:13:14 +05:30
Grégoire Sutre
b65ea15514
Make mktemp invocations portable.
2010-10-18 22:50:01 +02:00
BVK Chaitanya
79c93b429e
echo test case
2010-09-20 13:51:16 +05:30
Vladimir 'phcoder' Serbinenko
9b5b2541a2
grub-mknetdir script.
...
* Makefile.util.def (grub-mknetdir): New module.
* tests/util/grub-shell.in: Support boot=net
* util/grub-mknetdir.in: New file.
2010-09-13 14:03:05 +02:00
bvk.groups@gmail.com
8901b00c88
* tests/partmap_test.in: New test for partitions.
...
* Makefile.util.def: Rules for new test.
2010-09-09 21:24:17 +05:30
bvk.groups@gmail.com
56672f4a8b
added new partmaps test
2010-09-09 21:10:17 +05:30
BVK Chaitanya
1bce65c7b1
not command (!) support
2010-09-05 14:57:28 +05:30
BVK Chaitanya
ee14ec9935
merge with mainline
2010-09-04 22:34:32 +05:30
BVK Chaitanya
a431c98a52
merge with mainline
2010-09-04 22:13:45 +05:30
BVK Chaitanya
165bfce138
merge with mainline
2010-09-04 20:44:44 +05:30
BVK Chaitanya
cd652829a1
merge with mainline
2010-09-04 14:41:08 +05:30
BVK Chaitanya
6d7c073bc8
merge with mainline
2010-09-04 11:49:02 +05:30
BVK Chaitanya
7af6505ba1
merge with mainline
2010-09-04 11:37:59 +05:30
BVK Chaitanya
227cab7c79
merge with mainline
2010-09-04 10:56:23 +05:30
BVK Chaitanya
e5a73c4247
merge with mainline
2010-09-04 09:05:21 +05:30
BVK Chaitanya
adcf5a8e30
merge with mainline
2010-09-04 08:33:42 +05:30
BVK Chaitanya
0dfb7ba053
merge with mainline
2010-09-03 20:06:57 +05:30
Vladimir 'phcoder' Serbinenko
8395034bec
Add i386-pc-pxe image target.
...
* util/grub-mkimage.c (image_target_desc): New enum value
IMAGE_I386_PC_PXE.
(image_targets): New target i386-pc-pxe.
(generate_image): Handle i386-pc-pxe image.
2010-09-02 17:15:53 +02:00
BVK Chaitanya
8fdefb9253
merge with mainline
2010-08-26 12:11:57 +05:30
BVK Chaitanya
ab8629d2ac
pull-in menuentry branch
2010-08-26 12:02:52 +05:30
BVK Chaitanya
b899201c69
merge with mainline
2010-08-26 11:45:29 +05:30
BVK Chaitanya
47b4c2c3e8
pull-in block-arg branch
2010-08-26 11:32:35 +05:30
BVK Chaitanya
928bad4708
merge with mainline
2010-08-26 09:30:11 +05:30
Vladimir 'phcoder' Serbinenko
5ad6967b19
Enable boottests
2010-08-25 16:59:11 +02:00
BVK Chaitanya
aa5cd41af5
return command for functions
2010-08-25 19:35:52 +05:30
BVK Chaitanya
a9b85993ee
merge with mainline
2010-08-25 14:45:56 +05:30
Vladimir 'phcoder' Serbinenko
16bd6cfab2
Merge mainline into newreloc. For now without boot tests
2010-08-25 03:25:18 +02:00
BVK Chaitanya
34980574fc
minor cleanups
2010-08-19 17:50:05 +05:30
BVK Chaitanya
16c7cb32c8
merge with mainline
2010-08-19 16:54:00 +05:30
BVK Chaitanya
a8876fc7ca
merge with setparams branch
2010-08-15 12:11:07 +05:30
BVK Chaitanya
3a20130e7a
setparams command to set positional parameters
2010-08-15 12:02:33 +05:30
BVK Chaitanya
1379af7834
merge with mainline
2010-08-15 11:12:53 +05:30
BVK Chaitanya
00a8a3eee3
merge with mainline
2010-08-12 14:43:34 +05:30
BVK Chaitanya
c6a343c3c6
merge with mainline
2010-08-12 13:23:13 +05:30
BVK Chaitanya
163dd4f7e9
merge with mainline
2010-08-12 12:02:48 +05:30
BVK Chaitanya
8908e49937
merge with mainline
2010-08-12 09:46:01 +05:30
BVK Chaitanya
fd324286d4
merge with mainline
2010-08-12 09:30:26 +05:30
BVK Chaitanya
67a9e4d95d
review fixes and a testcase
2010-08-09 21:42:24 +05:30
BVK Chaitanya
cd838e22c2
added a testcase
2010-08-04 19:21:18 +05:30
BVK Chaitanya
3c6a9151ad
move wildcard translator into regexp module
2010-07-29 23:32:56 +05:30
BVK Chaitanya
1c24bab4be
updated testcase
2010-07-29 16:59:49 +05:30
BVK Chaitanya
645505004e
suppress unwanted shell expansion
2010-07-23 02:57:02 +05:30
BVK Chaitanya
54416e9d71
merge with mainline
2010-07-23 02:44:22 +05:30
BVK Chaitanya
d737bdc136
merge with mainline
2010-07-22 23:16:22 +05:30
BVK Chaitanya
a281e2e80a
merge with mainline
2010-07-22 22:39:42 +05:30
BVK Chaitanya
82e323a3d7
merge with mainline
2010-07-22 22:39:20 +05:30
Vladimir 'phcoder' Serbinenko
5e3bec6716
* tests/util/grub-shell-tester.in: Remove bashism and declare as
...
sh script.
2010-07-20 22:10:23 +02:00
BVK Chaitanya
3e96a6a108
merge with mainline
2010-07-18 22:03:28 +05:30
BVK Chaitanya
297f0c2b6e
merge with mainline
2010-07-13 00:43:28 +05:30
BVK Chaitanya
d18b05c4e3
merge with mainline
2010-07-12 17:29:44 +05:30
BVK Chaitanya
05df19acd5
merge with mainline
2010-07-12 17:03:01 +05:30
BVK Chaitanya
8d17eeeef2
merge with mainline
2010-07-12 16:38:19 +05:30
BVK Chaitanya
9ec82092f1
merge with mainline
2010-07-11 21:40:25 +05:30
BVK Chaitanya
7925f8e9cf
merge with mainline
2010-07-11 21:14:18 +05:30
BVK Chaitanya
09e06f8e75
merge with mainline
2010-07-11 18:10:53 +05:30
Vladimir 'phcoder' Serbinenko
becce1b16a
* tests/util/grub-shell.in: Remove bashisms and declare as sh script.
2010-07-07 17:51:26 +02:00
Vladimir 'phcoder' Serbinenko
2a1d16154d
Merge mainline into newreloc
2010-06-24 21:22:40 +02:00
BVK Chaitanya
2e1310bc7c
merge with mainline
2010-06-13 10:22:38 +05:30
BVK Chaitanya
eedda76883
merge with mainline
2010-06-13 09:58:24 +05:30
BVK Chaitanya
49e38cf475
merge with mainline
2010-06-13 09:48:47 +05:30
BVK Chaitanya
6ad1216e64
pull-in break-cmd branch
2010-06-12 20:53:32 +05:30