# Makefile CLI contracts: trusted selected-file target lookup; untrusted calls are rejected. exec semedit lookup --language make --trust-workspace --make-bin $SEMEDIT_TEST_MAKE_LS --file Makefile --symbol all stdout 'Makefile:[0-9]+.*all' ! semedit lookup --language make --make-bin $SEMEDIT_TEST_MAKE_LS --file Makefile --symbol all stderr 'workspace trust required' ! semedit verify --language make --trust-workspace --file Makefile stderr 'verification is unsupported' cmp Makefile want.mk ! exists ran-marker ! semedit lookup --language make --trust-workspace --make-bin $SEMEDIT_TEST_MAKE_LS --file Conditional.mk --symbol 'ifeq $(MODE),1' stderr 'symbol not found in selected file' ! exists ran-marker ! semedit lookup --language make --trust-workspace --make-bin $SEMEDIT_TEST_MAKE_LS --file Include.mk --symbol external stderr 'symbol not found in selected file' exec semedit lookup --language make --trust-workspace --make-bin $SEMEDIT_TEST_MAKE_LS --file Ambiguous.mk --symbol all stdout 'Ambiguous lookup for "all".*2 candidates\.' ! exists ran-marker -- Makefile -- all: @touch ran-marker -- Ambiguous.mk -- all: @touch ran-marker # SEMEDIT_TEST_AMBIGUOUS -- want.mk -- all: @touch ran-marker -- Include.mk -- include external.mk -- external.mk -- external: @touch ran-marker -- Conditional.mk -- ifeq ($(MODE),1) all: @touch ran-marker endif