|
@@ -169,13 +169,17 @@ extract-plugin = $(wordlist 2, 2, $(subst -with-, ,$1))
|
|
|
|
|
|
RUN_TESTS+=$(EXTRA_RUNS)
|
|
RUN_TESTS+=$(EXTRA_RUNS)
|
|
|
|
|
|
|
|
+# Some plugins need additional arguments above the default to fully
|
|
|
|
+# exercise things. We can define them on a per-test basis here.
|
|
|
|
+run-plugin-%-with-libmem.so: PLUGIN_ARGS=$(COMMA)inline=true$(COMMA)callback=true
|
|
|
|
+
|
|
ifeq ($(filter %-softmmu, $(TARGET)),)
|
|
ifeq ($(filter %-softmmu, $(TARGET)),)
|
|
run-%: %
|
|
run-%: %
|
|
$(call run-test, $<, $(QEMU) $(QEMU_OPTS) $<)
|
|
$(call run-test, $<, $(QEMU) $(QEMU_OPTS) $<)
|
|
|
|
|
|
run-plugin-%:
|
|
run-plugin-%:
|
|
$(call run-test, $@, $(QEMU) $(QEMU_OPTS) \
|
|
$(call run-test, $@, $(QEMU) $(QEMU_OPTS) \
|
|
- -plugin $(PLUGIN_LIB)/$(call extract-plugin,$@) \
|
|
|
|
|
|
+ -plugin $(PLUGIN_LIB)/$(call extract-plugin,$@)$(PLUGIN_ARGS) \
|
|
-d plugin -D $*.pout \
|
|
-d plugin -D $*.pout \
|
|
$(call strip-plugin,$<))
|
|
$(call strip-plugin,$<))
|
|
else
|
|
else
|
|
@@ -189,7 +193,7 @@ run-plugin-%:
|
|
$(call run-test, $@, \
|
|
$(call run-test, $@, \
|
|
$(QEMU) -monitor none -display none \
|
|
$(QEMU) -monitor none -display none \
|
|
-chardev file$(COMMA)path=$@.out$(COMMA)id=output \
|
|
-chardev file$(COMMA)path=$@.out$(COMMA)id=output \
|
|
- -plugin $(PLUGIN_LIB)/$(call extract-plugin,$@) \
|
|
|
|
|
|
+ -plugin $(PLUGIN_LIB)/$(call extract-plugin,$@)$(PLUGIN_ARGS) \
|
|
-d plugin -D $*.pout \
|
|
-d plugin -D $*.pout \
|
|
$(QEMU_OPTS) $(call strip-plugin,$<))
|
|
$(QEMU_OPTS) $(call strip-plugin,$<))
|
|
endif
|
|
endif
|