1 #! @builddir@/grub-shell-tester
3 # Run GRUB script in a Qemu instance
4 # Copyright (C) 2010 Free Software Foundation, Inc.
6 # GRUB is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
11 # GRUB is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with GRUB. If not, see <http://www.gnu.org/licenses/>.
30 if f2; then echo true; else echo false; fi
37 if f3; then echo true; else echo false; fi
44 if f4; then echo true; else echo false; fi
51 if f5; then echo true; else echo false; fi
64 if f6; then echo true; else echo false; fi
73 if f7; then echo true; else echo false; fi
77 for v in 1 2 3 4 5; do
79 if test $v = 3; then return 1; fi
83 if f8; then echo true; else echo false; fi
88 until test x = 11111111; do
91 if test $x = 1111; then return 0; fi
95 if f9; then echo true; else echo false; fi
104 if f10; then echo true; else echo false; fi
118 if f11; then echo true; else echo false; fi
126 if f12; then echo true; else echo false; fi
134 if f13; then echo true; else echo false; fi