diff options
author | Michael Veksler <Mihails.Vekslers@zabbix.com> | 2019-10-17 10:08:42 +0300 |
---|---|---|
committer | Michael Veksler <Mihails.Vekslers@zabbix.com> | 2019-10-17 10:24:33 +0300 |
commit | 97f5cd55352cfa653f3d986394d98e9080c99204 (patch) | |
tree | 81cba365276debf7b406f57845556a817de00f2c /bootstrap.sh | |
parent | 75d363ec9f5dd828885fac9b346404f214a16186 (diff) |
....I..... [ZBX-15211] added key 'tests' for bootstrap.sh when working with cmocka tests
* commit 'fce1c3c08eb6d30f2057825196d73741f5e460fd':
....I..... [ZBX-15211] added key 'tests' for bootstrap.sh when working with cmocka tests
(cherry picked from commit 9e0f06df8c7e929feb402d30d8d987de7c6ddc01)
(cherry picked from commit 1fb1a96f635bd913f991df4fafa83fbd6904700c)
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-x | bootstrap.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/bootstrap.sh b/bootstrap.sh index 28703804199..78949e4f4f1 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -2,6 +2,28 @@ # Run this script to generate 'configure' +usage() +{ + echo "usage: $0 [tests]" + exit 1 +} + +case $# in + 0) + # disable tests + rm -f m4/conf_tests.m4 + ;; + 1) + [ $1 = "tests" ] || usage + + # enable tests + cp -f tests/conf_tests.m4 m4/ || exit $? + ;; + *) + usage + ;; +esac + aclocal -I m4 autoconf autoheader |