scripts/unit-test: Support multiple bootstrap files
Some packages don't follow our ./bootstrap.sh convention. Support other
common autotools bootstrap filenames.
Change-Id: Ia0356c734f7c5e8d6d1732fd6960d61a59932167
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/scripts/unit-test.py b/scripts/unit-test.py
index f086b94..9313e5e 100755
--- a/scripts/unit-test.py
+++ b/scripts/unit-test.py
@@ -306,7 +306,10 @@
# Add any necessary configure flags for package
if CONFIGURE_FLAGS.get(pkg) is not None:
conf_flags.extend(CONFIGURE_FLAGS.get(pkg))
- check_call_cmd(pkgdir, './bootstrap.sh')
+ for bootstrap in ['bootstrap.sh', 'bootstrap', 'autogen.sh']:
+ if os.path.exists(bootstrap):
+ check_call_cmd(pkgdir, './' + bootstrap)
+ break
check_call_cmd(pkgdir, './configure', *conf_flags)
check_call_cmd(pkgdir, *make_parallel)
check_call_cmd(pkgdir, 'sudo', '-n', '--', *(make_parallel + [ 'install' ]))