[CRIU] [PATCH 2/2] test/Makefile: use the override directive
Christopher Covington
cov at codeaurora.org
Fri May 1 09:46:08 PDT 2015
On 05/01/2015 12:08 PM, Andrew Vagin wrote:
> On Thu, Apr 30, 2015 at 01:52:42PM -0400, Christopher Covington wrote:
>> Hi Andrew,
>>
>> On 04/30/2015 12:17 PM, Andrew Vagin wrote:
>>> It looks better
>>>
>>> Signed-off-by: Andrew Vagin <avagin at openvz.org>
>>> ---
>>> test/Makefile | 10 +++++++---
>>> 1 file changed, 7 insertions(+), 3 deletions(-)
>>>
>>> diff --git a/test/Makefile b/test/Makefile
>>> index e9b9562..844bf7c 100644
>>> --- a/test/Makefile
>>> +++ b/test/Makefile
>>> @@ -30,13 +30,17 @@ zdtm: zdtm-tst-list .FORCE
>>> $(MAKE) -f Makefile.zdtm zdtm_ns_user
>>>
>>> zdtm-pre-dump: zdtm-tst-list
>>> - ZDTM_ARGS="-P -p -i 3 -C" $(MAKE) -f Makefile.zdtm ns/static/pipe00
>>> + $(MAKE) -f Makefile.zdtm ns/static/pipe00
>>>
>>> zdtm-snapshot: zdtm-tst-list
>>> - ZDTM_ARGS="-s -i 3 -C" $(MAKE) -f Makefile.zdtm ns/static/pipe00
>>> + $(MAKE) -f Makefile.zdtm ns/static/pipe00
>>>
>>> zdtm-iter: zdtm-tst-list
>>> - ZDTM_ARGS="-i 3 -C" $(MAKE) -f Makefile.zdtm ns/static/pipe00
>>> + $(MAKE) -f Makefile.zdtm ns/static/pipe00
>>> +
>>> +zdtm-pre-dump: override ZDTM_ARGS=-P -p -i 3 -C
>>> +zdtm-snapshot: override ZDTM_ARGS=-s -i 3 -C
>>> +zdtm-iter: override ZDTM_ARGS=-i 3 -C
>>
>> I find this more difficult to follow. What about something like:
>>
>> Z="-P -p -i 3 -C"
>> $(MAKE) -f Makefile.zdtm ns/static/pipe00 ZDTM_ARGS=$(Z)
>
>
> This doesn't work. I don't know why and I am not a big fun of
> Makefiles:).
strace and/or $(warning ...) would probably explain why. I have a partially
finished shell script replacement sitting around if you're interested. One of
these days after fixing PAGE_SIZE, TASK_SIZE, and AArch64 VDSO I'll hopefully
get back to it.
Chris
--
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
More information about the CRIU
mailing list