sync with trunk

This commit is contained in:
BVK Chaitanya 2010-01-28 21:48:15 +05:30
commit 366e15ba86
6 changed files with 21 additions and 10 deletions

View file

@ -3,6 +3,21 @@
* include/grub/script_sh.h (sourcecode): Add const qualifier. * include/grub/script_sh.h (sourcecode): Add const qualifier.
* util/grub-script-check.c (getline): Fix empty lines case. * util/grub-script-check.c (getline): Fix empty lines case.
2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
* Makefile.in (check): Exit with fail status when one of the tests
fails.
* tests/example_functional_test.c (example_test): Fix reversed assert.
* tests/example_unit_test.c (example_test): Likewise.
2010-01-28 Colin Watson <cjwatson@ubuntu.com>
* util/grub.d/10_linux.in: This script does not use any of the
contents of gettext.sh, only the external command `gettext', so stop
sourcing it. (Moreover, gettext.sh isn't necessarily installed in
the same prefix as GRUB.)
* util/grub.d/10_kfreebsd.in: Likewise.
2010-01-27 Vladimir Serbinenko <phcoder@gmail.com> 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
* normal/cmdline.c (grub_cmdline_get): Fix completion in the middle * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle

View file

@ -473,23 +473,21 @@ distcheck: dist
check: all $(UNIT_TESTS) $(FUNCTIONAL_TESTS) $(SCRIPTED_TESTS) check: all $(UNIT_TESTS) $(FUNCTIONAL_TESTS) $(SCRIPTED_TESTS)
@list="$(UNIT_TESTS)"; \ @list="$(UNIT_TESTS)"; \
set -e; \
for file in $$list; do \ for file in $$list; do \
$(builddir)/$$file; \ $(builddir)/$$file; \
done done
@list="$(FUNCTIONAL_TESTS)"; \ @list="$(FUNCTIONAL_TESTS)"; \
set -e; \
for file in $$list; do \ for file in $$list; do \
mod=`basename $$file .mod`; \ mod=`basename $$file .mod`; \
echo "insmod functional_test; insmod $$mod; functional_test" \ echo "insmod functional_test; insmod $$mod; functional_test" \
| $(builddir)/grub-shell; \ | $(builddir)/grub-shell; \
done done
@list="$(SCRIPTED_TESTS)"; \ @list="$(SCRIPTED_TESTS)"; \
set -e; \
for file in $$list; do \ for file in $$list; do \
echo "$$file:"; \ $(builddir)/$$file; \
if $(builddir)/$$file; then \
echo "$$file: PASS"; \
else \
echo "$$file: FAIL"; \
fi; \
done done
.SUFFIX: .SUFFIX:

View file

@ -28,7 +28,7 @@ example_test (void)
/* Check if 1st argument is true and report with custom error message. */ /* Check if 1st argument is true and report with custom error message. */
grub_test_assert (2 == 2, "2 equal 2 expected"); grub_test_assert (2 == 2, "2 equal 2 expected");
grub_test_assert (2 == 3, "2 is not equal to %d", 3); grub_test_assert (2 != 3, "2 matches %d", 3);
} }
/* Register example_test method as a functional test. */ /* Register example_test method as a functional test. */

View file

@ -31,7 +31,7 @@ example_test (void)
/* Check if 1st argument is true and report with custom error message. */ /* Check if 1st argument is true and report with custom error message. */
grub_test_assert (2 == 2, "2 equal 2 expected"); grub_test_assert (2 == 2, "2 equal 2 expected");
grub_test_assert (2 == 3, "2 is not equal to %d", 3); grub_test_assert (2 != 3, "2 matches %d", 3);
} }
/* Register example_test method as a unit test. */ /* Register example_test method as a unit test. */

View file

@ -22,7 +22,6 @@ bindir=@bindir@
libdir=@libdir@ libdir=@libdir@
. ${libdir}/grub/grub-mkconfig_lib . ${libdir}/grub/grub-mkconfig_lib
. ${bindir}/gettext.sh
export TEXTDOMAIN=@PACKAGE@ export TEXTDOMAIN=@PACKAGE@
export TEXTDOMAINDIR=@localedir@ export TEXTDOMAINDIR=@localedir@

View file

@ -22,7 +22,6 @@ bindir=@bindir@
libdir=@libdir@ libdir=@libdir@
. ${libdir}/grub/grub-mkconfig_lib . ${libdir}/grub/grub-mkconfig_lib
. ${bindir}/gettext.sh
export TEXTDOMAIN=@PACKAGE@ export TEXTDOMAIN=@PACKAGE@
export TEXTDOMAINDIR=@localedir@ export TEXTDOMAINDIR=@localedir@