mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-21 01:40:16 -05:00
29 lines
540 B
Bash
29 lines
540 B
Bash
|
|
#!/bin/sh
|
||
|
|
|
||
|
|
set -eu
|
||
|
|
|
||
|
|
srcdir=$(realpath "${1}")
|
||
|
|
blddir=$(realpath "${2}")
|
||
|
|
|
||
|
|
. "${srcdir}"/pgo/options
|
||
|
|
|
||
|
|
pgo_data=$(mktemp)
|
||
|
|
trap "rm -f ${pgo_data}" EXIT INT HUP TERM
|
||
|
|
|
||
|
|
rm -f "${blddir}"/pgo-ok
|
||
|
|
|
||
|
|
"${srcdir}"/scripts/generate-alt-random-writes.py \
|
||
|
|
--rows=67 \
|
||
|
|
--cols=135 \
|
||
|
|
${script_options} \
|
||
|
|
"${pgo_data}"
|
||
|
|
|
||
|
|
# To ensure profiling data is generated in the build directory
|
||
|
|
cd "${blddir}"
|
||
|
|
|
||
|
|
"${blddir}"/footclient --version
|
||
|
|
"${blddir}"/foot --version
|
||
|
|
"${blddir}"/pgo "${pgo_data}"
|
||
|
|
|
||
|
|
touch "${blddir}"/pgo-ok
|