diff --git a/.gitignore b/.gitignore index 059a49089..563afa687 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,4 @@ mk/cc.flags.mk PYTHON_COMMAND test_completions.txt timing.txt +test/common/build_config.sh diff --git a/configure b/configure index e5145a012..5709551ed 100755 --- a/configure +++ b/configure @@ -804,6 +804,11 @@ rm -f $rootdir/mk/cc.flags.mk [ -n "$DESTDIR" ] && echo "DESTDIR?=$DESTDIR" >> $rootdir/mk/cc.flags.mk echo "done." +# Create .sh with build config for easy sourcing|lookup during the tests. +for conf in "${!CONFIG[@]}"; do + echo "CONFIG_$conf=${CONFIG[$conf]}" +done >"$rootdir/test/common/build_config.sh" + if [[ $sys_name == "FreeBSD" ]]; then echo "Type 'gmake' to build." else