From patchwork Fri Sep 17 21:53:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 12503031 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5FA36C433F5 for ; Fri, 17 Sep 2021 21:54:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3732660F70 for ; Fri, 17 Sep 2021 21:54:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242762AbhIQVzZ (ORCPT ); Fri, 17 Sep 2021 17:55:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242370AbhIQVzV (ORCPT ); Fri, 17 Sep 2021 17:55:21 -0400 Received: from mail-il1-x12d.google.com (mail-il1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 617BCC061764 for ; Fri, 17 Sep 2021 14:53:59 -0700 (PDT) Received: by mail-il1-x12d.google.com with SMTP id i13so11780775ilm.4 for ; Fri, 17 Sep 2021 14:53:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fWR0esOBVBV64rKinxIgFxJ4wKagR9YhECkqxWxa0Tw=; b=grs8gzHe5cek7z8ddLzkbZFT7aCOxQJODThfS5zh/JoI7HS4l1kwTTu7rDiPM2U1HS 50yJla7O7avcIoYd7ryDuwWFWQotD8dMUhzDqWtwm0za2axPDLgCp3WOYQ7XsTUahFBA PmCw/f4CquFNZn9tPYHg/W1yqtFj2NG6e7mNM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fWR0esOBVBV64rKinxIgFxJ4wKagR9YhECkqxWxa0Tw=; b=w4SomFOxUO6UUxPULlMrvsh4DFUOQM9ni+0CKjNaCRzZakPBa1vqRyd51DrlcJj2k4 rRJrDPSXjNwnBscVTChRf9bCeeUwP/74aCLCigRYQIYAeDZKEn2IKFBlvtFPJS0ZZ2bj jbQ47skG9nZraSmTFV7Cv78CG/zO3/1+hNQCmefJVN4Uhul5G50O49rOttv6Ut9wVmFz 8+4gup3q44GENPcOja7FAOOUSM8JqmZXzh2RDx+Hd6It50PcRV+yTdwTkAJv8b8kedQe EgERq3lmdJyblPZzptuHDUoD/yU/BMb8VrF4cKZlf5YkjVHf4gD2GD7qsiRC3VMTRBJK EHJg== X-Gm-Message-State: AOAM531o9yRe2bOTULOYS7Ucs2mhDTabSOIGIvY8QY8PrdVERD/79ezg iaX/qXfVrYFCT4jAKeg5Zsb4Lw== X-Google-Smtp-Source: ABdhPJy2rJ1ey28tHL7q/gFDZW67ncHgR3kfTnhfa8+NV1dCDCgJWrmoAMq2uukUi+T5BT3LGK0oQg== X-Received: by 2002:a92:cd09:: with SMTP id z9mr9916764iln.50.1631915638652; Fri, 17 Sep 2021 14:53:58 -0700 (PDT) Received: from shuah-t480s.internal (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id b3sm4390167ile.37.2021.09.17.14.53.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Sep 2021 14:53:58 -0700 (PDT) From: Shuah Khan To: davem@davemloft.net, kuba@kernel.org, shuah@kernel.org Cc: Shuah Khan , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] selftests: net: af_unix: Fix makefile to use TEST_GEN_PROGS Date: Fri, 17 Sep 2021 15:53:56 -0600 Message-Id: <20210917215356.33791-1-skhan@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org Makefile uses TEST_PROGS instead of TEST_GEN_PROGS to define executables. TEST_PROGS is for shell scripts that need to be installed and run by the common lib.mk framework. The common framework doesn't touch TEST_PROGS when it does build and clean. As a result "make kselftest-clean" and "make clean" fail to remove executables. Run and install work because the common framework runs and installs TEST_PROGS. Build works because the Makefile defines "all" rule which is unnecessary if TEST_GEN_PROGS is used. Use TEST_GEN_PROGS so the common framework can handle build/run/ install/clean properly. Signed-off-by: Shuah Khan --- tools/testing/selftests/net/af_unix/Makefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/testing/selftests/net/af_unix/Makefile b/tools/testing/selftests/net/af_unix/Makefile index cfc7f4f97fd1..df341648f818 100644 --- a/tools/testing/selftests/net/af_unix/Makefile +++ b/tools/testing/selftests/net/af_unix/Makefile @@ -1,5 +1,2 @@ -##TEST_GEN_FILES := test_unix_oob -TEST_PROGS := test_unix_oob +TEST_GEN_PROGS := test_unix_oob include ../../lib.mk - -all: $(TEST_PROGS)