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 X-Spam-Level: X-Spam-Status: No, score=-20.8 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,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 11500C4361B for ; Tue, 8 Dec 2020 08:37:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B70ED23A61 for ; Tue, 8 Dec 2020 08:37:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727959AbgLHIhE (ORCPT ); Tue, 8 Dec 2020 03:37:04 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:43307 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726830AbgLHIhD (ORCPT ); Tue, 8 Dec 2020 03:37:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1607416537; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=NSJV1/umlaMM3evAMmrrO5QmdsbHz7eQuN7tIX3RIsc=; b=YABQCKd1nJpiYQL0zZbKAOOhBeuJIs2Ed/vAX8s4cMP2IZLaorQSkvo2lQXuBRetR5Aw1q uhMN4rbZR9hKvsW5qVHtyWjwspDu+lDdPwkuTDjfXC9HCdzZZbNESLGKbL6I4XZm9mjeiI lNTbpssmJu5J6qTLsAogHo8SfXAt7+s= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-97-J5pWe4JnPlCL67t1NDPFCg-1; Tue, 08 Dec 2020 03:35:34 -0500 X-MC-Unique: J5pWe4JnPlCL67t1NDPFCg-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id CEA568042AA; Tue, 8 Dec 2020 08:35:32 +0000 (UTC) Received: from localhost (unknown [10.40.192.117]) by smtp.corp.redhat.com (Postfix) with ESMTP id 623FC48DD; Tue, 8 Dec 2020 08:35:31 +0000 (UTC) From: Petr Lautrbach To: Nicolas Iooss , selinux@vger.kernel.org Cc: William Roberts Subject: Re: [PATCH v2 1/1] scripts/ci: add configuration for a Vagrant virtual machine In-Reply-To: <20201203081512.8385-1-nicolas.iooss@m4x.org> References: <20201203081512.8385-1-nicolas.iooss@m4x.org> Date: Tue, 08 Dec 2020 09:35:30 +0100 Message-ID: <87360gwv8t.fsf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Precedence: bulk List-ID: X-Mailing-List: selinux@vger.kernel.org Nicolas Iooss writes: > Using Vagrant makes reproducing and debugging CI issues easier: after > "vagrant up", a test virtual machine is up and running, and ready to run > "fedora-test-runner.sh". In order to make using this VM even easier, a > helper script, "run-selinux-test.sh" is created inside and instructions > on how to use it are documented at the beginning of Vagrantfile. > > Signed-off-by: Nicolas Iooss Acked-by: Petr Lautrbach and merged. Thanks! > --- > scripts/ci/.gitignore | 1 + > scripts/ci/Vagrantfile | 48 ++++++++++++++++++++++++++++++++ > scripts/ci/fedora-test-runner.sh | 2 ++ > 3 files changed, 51 insertions(+) > create mode 100644 scripts/ci/.gitignore > create mode 100644 scripts/ci/Vagrantfile > > diff --git a/scripts/ci/.gitignore b/scripts/ci/.gitignore > new file mode 100644 > index 000000000000..a977916f6583 > --- /dev/null > +++ b/scripts/ci/.gitignore > @@ -0,0 +1 @@ > +.vagrant/ > diff --git a/scripts/ci/Vagrantfile b/scripts/ci/Vagrantfile > new file mode 100644 > index 000000000000..d7c7bb39896d > --- /dev/null > +++ b/scripts/ci/Vagrantfile > @@ -0,0 +1,48 @@ > +# -*- mode: ruby -*- > +# vi: set ft=ruby : > +# Vagrant configuration file which creates a virtual machine that can run the > +# test suite using fedora-test-runner.sh, in an environment similar to the one > +# used for automated continuous integration tests (Travis-CI) > +# > +# To create a new virtual machine: > +# > +# vagrant up --provision > +# > +# To launch tests (for example after modifications to libsepol, libselinux... are made): > +# > +# vagrant rsync && echo ./run-selinux-test.sh | vagrant ssh > +# > +# To destroy the virtual machine (for example to start again from a clean environment): > +# > +# vagrant destroy > + > +# Create a helper script in the VM to run the testsuite as root from a clean environment > +$script = <