2018-12-06 02:10:18 +01:00
|
|
|
#!/usr/bin/env bash
|
2020-04-16 10:50:39 +02:00
|
|
|
# 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
|
2018-12-06 02:10:18 +01:00
|
|
|
# Development script to re-run segment generation on specimens
|
|
|
|
|
# Works against most but not all fuzzers
|
|
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
|
|
FUZDIR=$PWD
|
|
|
|
|
pushd build
|
|
|
|
|
|
2018-12-21 22:46:38 +01:00
|
|
|
for f in $(find -name design.bits |sort) ; do
|
2018-12-06 02:10:18 +01:00
|
|
|
pushd $(dirname $f)
|
|
|
|
|
python3 $FUZDIR/generate.py
|
|
|
|
|
popd
|
|
|
|
|
done
|
|
|
|
|
popd
|
|
|
|
|
|
2018-12-21 22:46:38 +01:00
|
|
|
${XRAY_SEGMATCH} -o build/tmp.segbits $(find build -name 'segdata_*.txt' |sort)
|
2018-12-06 02:10:18 +01:00
|
|
|
cat build/tmp.segbits
|
|
|
|
|
|