Received: by 2002:ac2:51c9:0:0:0:0:0 with SMTP id u9csp898319lfm; Fri, 21 May 2021 00:16:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUxjC4Vs0qOsG8fK3SJIdK6Km6fmaOdyZwcG8vusr8/IsgQ3XGGcXwKigNIcGMqjvbs0g1 X-Received: by 2002:a50:9e63:: with SMTP id z90mr9645595ede.342.1621581414154; Fri, 21 May 2021 00:16:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621581414; cv=none; d=google.com; s=arc-20160816; b=yX/TtV5+cSyDu3L2v9YJSEqQd0aDdSm8YYu91bMoVQ1WQZBuh3WAS0dtNqrZwGOYNP CXOEs4B7K9OE1aiLDvF4FxQ8vmR7tsILo3qVFvCuVJz6wLGZPdXNjEsnL+meatzpQU1X 5/ksC7oprW93tuDxH4hFozvILe2bKByHMr20UiGE/C+r7GfILpZO+V3Jq/Ko62Z0VJ4m /Wn/60CFinq5ET2c4Tmvj4ohNVOSA2085o73n36hHWZp+1aatXbe6EWdehmIvo5yfJcN POXNp9ld4osJ8YfcwDTU7+D1km3VMCyBgbdcoLATDMGNG0NZ/mJ1cPVJ3/kM9Px/V5EE iIkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:subject:from:references:cc:to :dkim-signature; bh=P+hLjuQ64vmuAnUmwowLfI+1Ab2JGLvYlh/ae84x6bU=; b=eL8Gymrz0QTCu6QAeQ2HNFQt0qe5AcsyHyXR3yMXZmwwQcJ/b4+XGSnh4muPeioNch Cqeg/zF1eZcZhH5Xj+WCoVIQCngWZITqwNkrYK4zWYd3ekE2IxZB8RDEyGDmV4K8YtIB O41vw9nEDo18l6IcVlc8vS/Lu5Q/0C0+3eo3hOsYmGG2bjAYRvfAwZWu601C8LIjUYy5 VKPOUhS3HHxTZPjNrhxNc+9oOc5diq+9fR6LOUxpAs9Pio+VXsoC0m494PitsdUC+4HE zJNoytd+G1cQpi3SZI0fUrAtKvGbDmoclR1uWEEyo7TdE8Ns6Fs35tYQWnYR3c/vsbvF rjug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MnC3G9Tm; spf=pass (google.com: domain of thuth@redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=thuth@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com. [216.205.24.124]) by mx.google.com with ESMTPS id hp35si6175637ejc.361.2021.05.21.00.16.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 May 2021 00:16:54 -0700 (PDT) Received-SPF: pass (google.com: domain of thuth@redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MnC3G9Tm; spf=pass (google.com: domain of thuth@redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=thuth@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1621581413; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=P+hLjuQ64vmuAnUmwowLfI+1Ab2JGLvYlh/ae84x6bU=; b=MnC3G9TmnbixNcGCGUpT9cwkEcjKWeCmgMGvtZb41mtm1Y+v/OiNupvZOObtNTXw1OhD1P ndO8lIpMy5U11IelqM2rsaDHHa0J9Gp1v3lgj+BsE9iXas98kYejG9UuBn+GvnHu0ZvgL8 4Pjz6GMQ8+FwiA50hfvdjFrQ353RPw8= 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-215-u-7WYjLyMUGFNkav-jlzQw-1; Fri, 21 May 2021 03:16:49 -0400 X-MC-Unique: u-7WYjLyMUGFNkav-jlzQw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 34555107ACCA; Fri, 21 May 2021 07:16:48 +0000 (UTC) Received: from thuth.remote.csb (ovpn-112-113.ams2.redhat.com [10.36.112.113]) by smtp.corp.redhat.com (Postfix) with ESMTP id 360095D74B; Fri, 21 May 2021 07:16:37 +0000 (UTC) To: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , Willian Rampazzo , qemu-devel@nongnu.org Cc: Wainer dos Santos Moschetta , Niek Linnenbank , qemu-arm@nongnu.org, Michael Rolnik , Cleber Rosa , =?UTF-8?Q?Alex_Benn=c3=a9e?= References: <20210520195322.205691-1-willianr@redhat.com> <20210520195322.205691-2-willianr@redhat.com> <0f4a1c6c-ddba-ae57-2d55-f59c478dc9c5@redhat.com> From: Thomas Huth Subject: Re: [RFC 1/1] acceptance tests: rename acceptance to system Message-ID: <943fcdae-168a-adf8-c82b-b1a88369441c@redhat.com> Date: Fri, 21 May 2021 09:16:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: <0f4a1c6c-ddba-ae57-2d55-f59c478dc9c5@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=thuth@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-TUID: +Sx7JafpOGiT On 20/05/2021 22.28, Philippe Mathieu-Daudé wrote: > On 5/20/21 9:53 PM, Willian Rampazzo wrote: >> Conceptually speaking, acceptance tests "are a series of specific tests >> conducted by the customer in an attempt to uncover product errors before >> accepting the software from the developer. Conducted by the end-user rather >> than software engineers, acceptance testing can range from an informal >> “test drive” to a planned and systematically executed series of scripted >> tests" [1]. Every time Pressman refers to the term "acceptance testing," he >> also refers to user's agreement in the final state of an implemented feature. >> Today, QEMU is not implementing user acceptance tests as described by Pressman. >> >> There are other three possible terms we could use to describe what is currently >> QEMU "acceptance" tests: >> >> 1 - Integration tests: >> - "Integration testing is a systematic technique for constructing the >> software architecture while at the same time conducting tests to >> uncover errors associated with interfacing. The objective is to take >> unit-tested components and build a program structure that has been >> dictated by design." [2] >> * Note: Sommerville does not have a clear definition of integration >> testing. He refers to incremental integration of components inside >> the system testing (see [3]). After thinking about this for a while, I agree with you that renaming the "acceptance" tests to "integration" tests is also not a good idea. When I hear "integration" test in the context of the virt stack, I'd rather expect a test suite that picks KVM (i.e. a kernel), QEMU, libvirt and maybe virt-manager on top and tests them all together. So we should look for a different name indeed. >> 2 - Validation tests: >> - "Validation testing begins at the culmination of integration testing, >> when individual components have been exercised, the software is >> completely assembled as a package, and interfacing errors have been >> uncovered and corrected. At the validation or system level, the >> distinction between different software categories disappears. Testing >> focuses on user-visible actions and user-recognizable output from the >> system." [4] >> - "where you expect the system to perform correctly using a set of test >> cases that reflect the system’s expected use." [5] >> * Note: the definition of "validation testing" from Sommerville reflects >> the same definition found around the Internet, as one of the processes >> inside the "Verification & Validation (V&V)." In this concept, >> validation testing is a high-level definition that covers unit testing, >> functional testing, integration testing, system testing, and acceptance >> testing. >> >> 3 - System tests: >> - "verifies that all elements mesh properly and that overall system >> function and performance is achieved." [6] >> - "involves integrating components to create a version of the system and >> then testing the integrated system. System testing checks that >> components are compatible, interact correctly, and transfer the right >> data at the right time across their interfaces." [7] >> >> The tests implemented inside the QEMU "acceptance" directory depend on the >> software completely assembled and, sometimes, on other elements, like operating >> system images. In this case, the proposal here is to rename the current >> "acceptance" directory to "system." > > Are user-mode tests using Avocado also system tests? > https://www.mail-archive.com/qemu-devel@nongnu.org/msg782505.html We've indeed got the problem that the word "system" is a little bit overloaded in the context of QEMU. We often talk about "system" when referring to the qemu-softmmu-xxx emulators (in contrast to the linux-user emulator binaries). For example, the "--disable-system" switch of the configure script, or the "build-system" and "check-system" jobs in the .gitlab-ci.yml file ... thus this could get quite confusing in the .gitlab-ci.yml file afterwards. So I think renaming "acceptance" to "system" is especially ok if we only keep the "softmmu"-related tests in that folder... would it maybe make sense to add the linux-user related tests in a separate folder called tests/user/ instead, Philippe? And we should likely rename the current build-system and check-system jobs in our gitlab-CI to build-softmmu and check-softmmu or so? Alternatively, what about renaming the "acceptance" tests to "validation" instead? That word does not have a duplicated definition in the context of QEMU yet, so I think it would be less confusing. Thomas