From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Google-Smtp-Source: AH8x224lrcdkDlaMgazymG5zW4eIRdK5YG+HPCSghQ3F75TMVdRUyrD3tVHRP29SNKbZAzbkFO7W ARC-Seal: i=1; a=rsa-sha256; t=1516691495; cv=none; d=google.com; s=arc-20160816; b=jd2IQbV8Yj7jShDPheMEdWGS+elW8YVp7XSD/GeKP/owv1eWarON21NueDMSZ5DN2U sad6QmraPVi3W9amJRJeqISG1+FP1gesKHSQcNs/pQ62QCtRS/0VHPOg6takdzVOTC2B DR73ZLjgQqEPaamsATLhin+SkEqf+/h5elz7scbp7Vj19/eC+wN5uEz3z603U9FXVKQo ynaBHxQV3OlJconfq8WHIeV2yPqxEL5VFG6s0dKl5WmQumGlzVta16LnmfFkcLnmA3Dn 2ElCrVQmHm2NursJ8wCvsNdl0ZucAfDl1mWfRRcWw/ZE3VL0pvoDVm4ZSMgj3rySJ3A/ bPNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:arc-authentication-results; bh=j4Sg6Ww8cGVblMytFa40f4MmwNfM7+KiG88PuDRXDrU=; b=FpBP0Xdsahh8vdAUEv7AAgUufTao4S4sgogTDuiNBZYIu+4DDJUMg/wRrg43Aw2aXw dOee/rUW+xnWS45UMKfvFtyFwSJYxRupnm5BsXYzW4Bce9EYvFfDqjEXriwlFS/PoAnO Uh8KeU1iEB0gt2mxaKzog94KRY8w8asynaXmprnQEeQtFj3cUuDb4f57bd0yGMnZ2y/V mieZqOKuMMCyo5SQU/oZimj7LNnwYXeQZSCPFrnqcCYAHJYBn90dMCM4HbgW9Q9x/rTe dtzaMh+G6ySlfZqs7iwAnHhChAgwzpBb+4DAAUztddy82XvG7vNlVKgdtgrA1QYi6id+ OKFQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kselftest-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kselftest-owner@vger.kernel.org Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kselftest-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kselftest-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750897AbeAWHLe (ORCPT ); Tue, 23 Jan 2018 02:11:34 -0500 Received: from ozlabs.org ([103.22.144.67]:39435 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750760AbeAWHLe (ORCPT ); Tue, 23 Jan 2018 02:11:34 -0500 From: Michael Ellerman To: Borislav Petkov Cc: x86-ml , Shuah Khan , linux-kselftest@vger.kernel.org, lkml Subject: Re: selftests: run all tests In-Reply-To: <20180116115407.xqlu6bfvqcwoxszg@pd.tnic> References: <20180115145942.s3dgy457xwhn6lwv@pd.tnic> <87tvvmcp0u.fsf@concordia.ellerman.id.au> <20180116114411.u4cqtvzw6evwnehu@pd.tnic> <20180116115407.xqlu6bfvqcwoxszg@pd.tnic> Date: Tue, 23 Jan 2018 18:11:31 +1100 Message-ID: <87372xoxr0.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kselftest-owner@vger.kernel.org X-Mailing-List: linux-kselftest@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1589670982643106801?= X-GMAIL-MSGID: =?utf-8?q?1590366301183377117?= X-Mailing-List: linux-kernel@vger.kernel.org List-ID: Borislav Petkov writes: > On Tue, Jan 16, 2018 at 12:44:28PM +0100, Borislav Petkov wrote: >> Ah, that was hidden in the included lib.mk, thanks. >> >> I wonder if we should make it more user-friendly by adding a help target >> like for the main Makefile... > > One more point: > > What I do is copy the x86/ folder to a test box and run all tests there. > If the lib.mk is not copied, run_tests is missing.... OK, that's not really supported I guess. If you're happy building on your host system, you can do: $ make -C tools/testing/selftests/ TARGETS=x86 install And then you'll have: $ find tools/testing/selftests/install/ tools/testing/selftests/install/ tools/testing/selftests/install/x86 tools/testing/selftests/install/x86/mpx-mini-test_64 tools/testing/selftests/install/x86/iopl_64 tools/testing/selftests/install/x86/sysret_rip_64 tools/testing/selftests/install/x86/protection_keys_64 tools/testing/selftests/install/x86/sysret_ss_attrs_64 tools/testing/selftests/install/x86/syscall_nt_64 tools/testing/selftests/install/x86/test_mremap_vdso_64 tools/testing/selftests/install/x86/ioperm_64 tools/testing/selftests/install/x86/ptrace_syscall_64 tools/testing/selftests/install/x86/sigreturn_64 tools/testing/selftests/install/x86/fsgsbase_64 tools/testing/selftests/install/x86/5lvl_64 tools/testing/selftests/install/x86/check_initial_reg_state_64 tools/testing/selftests/install/x86/ldt_gdt_64 tools/testing/selftests/install/x86/single_step_syscall_64 tools/testing/selftests/install/x86/test_vdso_64 tools/testing/selftests/install/run_kselftest.sh You can rsync that wherever, and run it manually or with the run_kselftest.sh script. cheers