blob: 1ea81dceeecd63852ee2f6d288d0282aa2da1a70 [file] [log] [blame]
#!/usr/bin/env bash
# Copyright (C) 2017-2020 The Project X-Ray Authors.
#
# Use of this source code is governed by a ISC-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/ISC
#
# SPDX-License-Identifier: ISC
# Development script to re-run segment generation on specimens
# Works against most but not all fuzzers
set -ex
FUZDIR=$PWD
pushd build
for f in $(find -name design.bits |sort) ; do
pushd $(dirname $f)
python3 $FUZDIR/generate.py
popd
done
popd
${XRAY_SEGMATCH} -o build/tmp.segbits $(find build -name 'segdata_*.txt' |sort)
cat build/tmp.segbits