From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BB72CC4332F for ; Thu, 10 Feb 2022 19:07:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343639AbiBJTH5 (ORCPT ); Thu, 10 Feb 2022 14:07:57 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:46762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236382AbiBJTHz (ORCPT ); Thu, 10 Feb 2022 14:07:55 -0500 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA93BE6A; Thu, 10 Feb 2022 11:07:56 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: usama.anjum) with ESMTPSA id 15D951F4673D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1644520075; bh=1rWTHTOu/9ZCL4nSK783UU0XLclDFK7bWJjIFMEY3aA=; h=From:To:Cc:Subject:Date:From; b=VKXG7iap6mk4sIHKNMeND3sOzufZOiG80I6qy2TNSBG9X2y4VdtyVCZaKMxW11rgJ 95sacDBT4yqCoixTW8KRBh+VxIS+kEoZCFwyQvOQcHLQIW66Ax6vlAizLJuANVdArj EIRrcOYYMNTTyzXa/ej8ppIeTSCCK/FDr46Bnp8JpmJ1Hgo7CWVK76lzBO+CfFcI83 TJXg5tJGhMdH3Wqgkl54QcWZ7aEWvjptRBoqbisLJzmNjDHQK6nPdtgrcwOTLrLHxa migMCy4mEnDQNdrNZDhF8eghOyuJSDY/svBoR04BCfQEY9W93CxCxUTI1xCyyyKfS3 wVUxGzpKCVgKw== From: Muhammad Usama Anjum To: Jarkko Sakkinen , Dave Hansen , Shuah Khan , Andy Lutomirski , Borislav Petkov , Jethro Beekman , linux-sgx@vger.kernel.org (open list:INTEL SGX), linux-kselftest@vger.kernel.org (open list:KERNEL SELFTEST FRAMEWORK), linux-kernel@vger.kernel.org (open list) Cc: Muhammad Usama Anjum , kernel@collabora.com, kernelci@groups.io Subject: [PATCH 0/2] selftests: sgx: Fix build of test_sgx Date: Fri, 11 Feb 2022 00:06:39 +0500 Message-Id: <20220210190642.1477814-1-usama.anjum@collabora.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CC can have multiple sub-strings like "ccache gcc". Build system of sgx selftest is unable to support this use case and test_sgx isn't built. Then rsync gives an erorr: rsync: [sender] link_stat "//linux/build/kselftest/sgx/test_sgx" failed: No such file or directory (2) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1333) [sender=3.2.3] This can be fixed if CC is considered to have one string while passing to check_cc.sh script and inside this script, CC is expanded before execution. Following build tests have been performed to confirm that these patches don't break anything else. The verification has also been done through KernelCI scripts locally as KernelCI has caught this bug: 1) cd tools/testing/selftests && make 2) make -C tools/testing/selftests 3) make -C tools/testing/selftests O=build 4) make -C tools/testing/selftests O=build CC="ccache gcc" 5) ./kci_build make_kselftest Muhammad Usama Anjum (2): selftests: x86: allow expansion of $(CC) selftests: sgx: Treat CC as one argument tools/testing/selftests/sgx/Makefile | 2 +- tools/testing/selftests/x86/check_cc.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.30.2