mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-06 17:45:22 +00:00
a67525fae1
Summary: Pull Request resolved: https://github.com/facebook/osquery/pull/5375 LICENSE is now defined in a single file on the root of the project, update the header to contain that information. **Project LICENSE did not change.** Reviewed By: akindyakov Differential Revision: D13750575 fbshipit-source-id: 1e608a81b260b8395f9d008fc67f463160c1fc2b
45 lines
1.4 KiB
Bash
Executable File
45 lines
1.4 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Copyright (c) 2014-present, Facebook, Inc.
|
|
# All rights reserved.
|
|
#
|
|
# This source code is licensed as defined on the LICENSE file found in the
|
|
# root directory of this source tree.
|
|
|
|
set -e
|
|
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
source $SCRIPT_DIR/lib.sh
|
|
|
|
# Run the build function without the tests
|
|
build false
|
|
|
|
# NODE_LABELS is defined in the Jenkins environment, and provides a wasy for
|
|
# us to detect what type of box we are running on. (ie. osx10, centos6).
|
|
OUTDIR="$SCRIPT_DIR/../build/benchmarks"
|
|
NODE=$(echo $NODE_LABELS | awk '{print $NF}')
|
|
mkdir -p $OUTDIR
|
|
|
|
REPETITIONS=5
|
|
|
|
export BENCHMARK_TO_FILE="--benchmark_format=csv \
|
|
--benchmark_repetitions=$REPETITIONS :>$OUTDIR/$NODE-benchmark.csv"
|
|
make run-benchmark/fast
|
|
|
|
export BENCHMARK_TO_FILE="--benchmark_format=csv \
|
|
--benchmark_repetitions=$REPETITIONS :>$OUTDIR/$NODE-kernel-benchmark.csv"
|
|
make run-kernel-benchmark/fast
|
|
|
|
strip $(find $SCRIPT_DIR/../build -name "osqueryi" | xargs)
|
|
strip $(find $SCRIPT_DIR/../build -name "osqueryd" | xargs)
|
|
wc -c $(find $SCRIPT_DIR/../build -name "osqueryi" | xargs) \
|
|
| head -n 1 \
|
|
| awk '{print "\"EXECUTABLE_osqueryi_size\","$1",,,,,\""$2"\""}' \
|
|
>>$OUTDIR/$NODE-benchmark.csv
|
|
wc -c $(find $SCRIPT_DIR/../build -name "osqueryd" | xargs) \
|
|
| head -n 1 \
|
|
| awk '{print "\"EXECUTABLE_osqueryd_size\","$1",,,,,\""$2"\""}' \
|
|
>>$OUTDIR/$NODE-benchmark.csv
|
|
|
|
exit 0
|