Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
HardenedBSD
HardenedBSD
Commits
eaf5ec88
Commit
eaf5ec88
authored
Jan 25, 2023
by
Warner Losh
Browse files
stand: Add testing for i386 as well to full-test.sh
Sponsored by: Netflix
parent
864ea9ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/boot/full-test.sh
View file @
eaf5ec88
...
...
@@ -279,7 +279,7 @@ make_linuxboot_images()
zfs
=
${
IMAGES
}
/
${
ma_combo
}
/linuxboot-
${
ma_combo
}
.zfs
img
=
${
IMAGES
}
/
${
ma_combo
}
/linuxboot-
${
ma_combo
}
.img
img2
=
${
IMAGES
}
/
${
ma_combo
}
/linuxboot-
${
ma_combo
}
-zfs
.img
pool
=
"linuxboot
-testing
"
pool
=
"linuxboot"
mkdir
-p
${
IMAGES
}
/
${
ma_combo
}
makefs
-t
msdos
-o
fat_type
=
32
-o
sectors_per_cluster
=
1
\
-o
volume_label
=
EFISYS
-s100m
${
esp
}
${
src
}
...
...
@@ -444,7 +444,6 @@ make_freebsd_images()
ufs
=
${
IMAGES
}
/
${
ma_combo
}
/freebsd-
${
ma_combo
}
.ufs
img
=
${
IMAGES
}
/
${
ma_combo
}
/freebsd-
${
ma_combo
}
.img
mkdir
-p
${
IMAGES
}
/
${
ma_combo
}
# XXX 4096 sector?
makefs
-t
msdos
-o
fat_type
=
32
-o
sectors_per_cluster
=
1
\
-o
volume_label
=
EFISYS
-s100m
${
esp
}
${
src
}
makefs
-t
ffs
-B
little
-s
200m
-o
label
=
root
${
ufs
}
${
dir
}
${
dir2
}
...
...
@@ -454,6 +453,30 @@ make_freebsd_images()
set
-x
# BIOS i386
a
=
i386:i386
m
=
${
a
%%
:
*
}
ma
=
${
a
##*
:
}
ma_combo
=
"
${
m
}
"
[
"
${
m
}
"
!=
"
${
ma
}
"
]
&&
ma_combo
=
"
${
m
}
-
${
ma
}
"
dir
=
${
TREES
}
/
${
ma_combo
}
/freebsd
dir2
=
${
TREES
}
/
${
ma_combo
}
/test-stand
ufs
=
${
IMAGES
}
/
${
ma_combo
}
/freebsd-
${
ma_combo
}
.ufs
img
=
${
IMAGES
}
/
${
ma_combo
}
/freebsd-
${
ma_combo
}
.img
mkdir
-p
${
IMAGES
}
/
${
ma_combo
}
mkdir
-p
${
dir2
}
/etc
cat
>
${
dir2
}
/etc/fstab
<<
EOF
/dev/ufs/root / ufs rw 1 1
EOF
makefs
-t
ffs
-B
little
-s
200m
\
-o
label
=
root,version
=
2,bsize
=
32768,fsize
=
4096,density
=
16384
\
${
ufs
}
${
dir
}
${
dir2
}
mkimg
-s
gpt
-b
${
dir2
}
/boot/pmbr
\
-p
freebsd-boot:
=
${
dir2
}
/boot/gptboot
\
-p
freebsd-ufs:
=
${
ufs
}
\
-o
${
img
}
rm
-f
${
src
}
/etc/fstab
# PowerPC for 32-bit mac
a
=
powerpc:powerpc
m
=
${
a
%%
:
*
}
...
...
@@ -557,6 +580,24 @@ ${qemu_bin}/qemu-system-ppc -m 1g -M mac99,via=pmu \\
-monitor telnet::4444,server,nowait
\\
-serial stdio
\$
*
EOF
set
-x
a
=
i386:i386
m
=
${
a
%%
:
*
}
ma
=
${
a
##*
:
}
ma_combo
=
"
${
m
}
"
[
"
${
m
}
"
!=
"
${
ma
}
"
]
&&
ma_combo
=
"
${
m
}
-
${
ma
}
"
img
=
${
IMAGES
}
/
${
ma_combo
}
/freebsd-
${
ma_combo
}
.img
out
=
${
SCRIPTS
}
/
${
ma_combo
}
/freebsd-test.sh
mkdir
-p
${
SCRIPTS
}
/
${
ma_combo
}
cat
>
${
out
}
<<
EOF
${
qemu_bin
}
/qemu-system-i386 -m 1g
\\
-vga none -nographic
\\
-drive file=
${
img
}
,format=raw
\\
-nographic
\\
-monitor telnet::4444,server,nowait
\\
-serial stdio
\$
*
EOF
}
# The smallest FAT32 filesystem is 33292 KB
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment