summaryrefslogtreecommitdiffstats
path: root/util/macos_test_audio_config/compile_and_run.sh
blob: 8d9afcf43eaba253530cab34653ae057f866bb2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/sh
# Copyright (C) 2019 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

BUILD_DIR="__build__"
OUTPUT_FILE="test_audio_config_res.txt"

mkdir $BUILD_DIR
cd $BUILD_DIR
cmake ..
make -j
cd ..

rm -f $OUTPUT_FILE
./$BUILD_DIR/test_audio_config "$@" >> $OUTPUT_FILE
cat $OUTPUT_FILE
echo "\nThe result has been written to file $OUTPUT_FILE\n"

rm -rf $BUILD_DIR