From: Waldemar Kozaczuk <[email protected]> Committer: Waldemar Kozaczuk <[email protected]> Branch: master
tests: fix shell if/else syntax to make it work on both Ubuntu and Fedora Signed-off-by: Waldemar Kozaczuk <[email protected]> --- diff --git a/modules/tests/Makefile b/modules/tests/Makefile --- a/modules/tests/Makefile +++ b/modules/tests/Makefile @@ -300,7 +300,7 @@ build_all_tests: $(all_tests:%=$(out)/%) usr.manifest: build_all_tests $(lastword $(MAKEFILE_LIST)) usr.manifest.skel FORCE @echo " generating modules/tests/usr.manifest" @cat [email protected] > $@ - @if [ $(arch) == x64 ]; then \ + @if [ "$(arch)" = "x64" ]; then \ ldd $(addprefix $(out)/tests/,$(boost-tests)) | grep libboost | sed 's/ *[^ ] *\(.*\) => \(.*\) .*/\/usr\/lib\/\1: \2/' | sort | uniq >> $@; \ else \ ./add_aarch64_boost_libraries.sh $(OSV_BASE) >> $@; \ @@ -314,7 +314,7 @@ FORCE: common.manifest: build_all_tests $(lastword $(MAKEFILE_LIST)) usr.manifest.skel FORCE @echo " generating modules/tests/common.manifest" @cat usr.manifest.skel > $@ - @if [ $(arch) == x64 ]; then \ + @if [ "$(arch)" = "x64" ]; then \ ldd $(addprefix $(out)/tests/,$(boost-tests)) | grep libboost | sed 's/ *[^ ] *\(.*\) => \(.*\) .*/\/usr\/lib\/\1: \2/' | sort | uniq >> $@; \ else \ ./add_aarch64_boost_libraries.sh $(OSV_BASE) >> $@; \ -- You received this message because you are subscribed to the Google Groups "OSv Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/osv-dev/0000000000000ca6e405aafa977f%40google.com.
