mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 12:38:20 +00:00
23 lines
439 B
Bash
Executable file
23 lines
439 B
Bash
Executable file
#! /bin/sh
|
|
|
|
echo $1
|
|
|
|
base=../../..
|
|
test=$base/testing/btest
|
|
build=$base/build
|
|
gen=CPP-gen.cc
|
|
|
|
export -n ZEEK_USE_CPP
|
|
export ZEEK_HASH_DIR=$test ZEEK_ADD_CPP=
|
|
cd $test
|
|
cp $build/CPP-hashes.dat .
|
|
../../auxil/btest/btest $1 >cpp-build-$1.out 2>&1
|
|
grep -c '^namespace' $gen
|
|
mv $gen $build
|
|
cd $build
|
|
ninja >& errs || echo build for $1 failed
|
|
|
|
export -n ZEEK_ADD_CPP
|
|
cd $test
|
|
rm -rf .tmp
|
|
../../auxil/btest/btest -j -a cpp -f cpp-test.$1.diag $1
|