Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751495AbbHaEHx (ORCPT ); Mon, 31 Aug 2015 00:07:53 -0400 Received: from ozlabs.org ([103.22.144.67]:37160 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750769AbbHaEHw (ORCPT ); Mon, 31 Aug 2015 00:07:52 -0400 Message-ID: <1440994070.5735.5.camel@ellerman.id.au> Subject: Re: [PATCH v3] selftests/zram: Adding zram tests From: Michael Ellerman To: naresh.kamboju@linaro.org Cc: linux-kernel@vger.kernel.org, tyler.baker@linaro.org, milosz.wasilewski@linaro.org, shuahkh@osg.samsung.com, alexey.kodanev@oracle.com Date: Mon, 31 Aug 2015 14:07:50 +1000 In-Reply-To: <1439881319-9727-1-git-send-email-naresh.kamboju@linaro.org> References: <1439881319-9727-1-git-send-email-naresh.kamboju@linaro.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.11-0ubuntu3 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1193 Lines: 46 On Tue, 2015-08-18 at 12:31 +0530, naresh.kamboju@linaro.org wrote: > From: Naresh Kamboju > > diff --git a/tools/testing/selftests/zram/Makefile b/tools/testing/selftests/zram/Makefile > new file mode 100644 > index 0000000..ec45513 > --- /dev/null > +++ b/tools/testing/selftests/zram/Makefile > @@ -0,0 +1,12 @@ > +all: > + > +TEST_PROGS := zram.sh > +TEST_FILES := zram01.sh zram02.sh zram_lib.sh > + > +include ../lib.mk > + > +run_tests: > + @/bin/bash ./zram.sh > + This is wrong, it gives me: $ make TARGETS=zram install ... Makefile:9: warning: overriding recipe for target 'run_tests' ../lib.mk:12: warning: ignoring old recipe for target 'run_tests' If you want to define run_tests you need to do: override define RUN_TESTS ./zram.sh endef BUT, I don't see any reason why you need to override run_tests. The default rule will just run TEST_PROGS, which is zram.sh so that should work fine? cheers -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/