From nobody Mon Jul 04 09:26:08 2022 X-Original-To: soc-status@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 3377B8AD811 for ; Mon, 4 Jul 2022 09:26:19 +0000 (UTC) (envelope-from musikid@outlook.com) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-oln040092069024.outbound.protection.outlook.com [40.92.69.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Lc0mV0WHtz4j8M for ; Mon, 4 Jul 2022 09:26:18 +0000 (UTC) (envelope-from musikid@outlook.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ceAgdxP6AejhxvKA2a6bQh9nlHB99NYjKbCownDFlislZ0oAPuzZLVqGPF7+VKwYOSAhG0OEfJzDDrAJCgBpC3Dz9rXXdzlD1LrwfsmMGPTEUi6ggzrUJTuvgd+QZA0D7IpgXYY5Vv1iPwnW445IulOchOiKmxhr/HFXY/PbGXWaRmg79dA09gwHjh5uuj8t+PTGiiqfo38ePjXUZHt9d5QbfX1PMogRFY59jFMhPrSJoE4JWOfpU8e/unLLsVSRoC6E+Cz+mROHMMZ1498IljMKpOQoTJvzLGizDIx7U6ZCZpml7ymit1GwxqI3KDkYQXSrPmPhvqoaVJ0prTvUHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=KfsOw8fYUcEvhmxxlSh/ABUiFI5Tm6WHrXAvwe0alfo=; b=VsJ0bjuqpqTj/AwRC2w1dZ86Qc2xmMR/6WJ1uM3hkaLlm9Mp7uPQzuBKgt/alk42XaQZjLVqSCkfHjHzty44en35o0UQOJjoSORg7bXU5Syq/76Q3xlBP+lfF9MHn9u/sH59wOGeWzk2Igm6CUQvbuOuCA/Vh8rlmDRZEbtAbLI1Npfvc2ihpbNU/4glSrdeO/+5oFLOb7Jvq+0SOUuuDsxEACt40TtHOCp0J/WCEUTpRvIp38CIqt84RrmISSIfqwhOSxnZVoozj0bZKKo9vX2oo/VTiWwO248pFikVNvKLGhbdVUGUYBDgcjWh1HuN5ckeaATUFKBdBkGoaFx2pg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KfsOw8fYUcEvhmxxlSh/ABUiFI5Tm6WHrXAvwe0alfo=; b=WRTxJzfMG5SKTakKUlT1WdXUuxfoftKJWslxAgNd0w0Jw9zDVkY/2fEaaDcgDVaIYYEFyNtMWez4mvktwqbXTJKOcPhj5WDDGpCzRgD3tsVFor/QSau4sr12pVo5+8TykRNzi+5C2qkAGIlALrU//GngsxMZv548FgmKQSjw01zqq+CwNS12hKdqbjf4Aq5GCpkVLi/Ex3vyBvUqauOuEELS+ELpI7pNrIshAsArTmNy0Y898xsUCRzeVeUsveGNTGpwOk83rUOcx7cfwDuB1eshRMlIilD0NytlIv7jGcULFiQe6+9h6cyb3I/irZQ4znLCtwNkghX2gg1ppM+eLg== Received: from PR2PR03MB5386.eurprd03.prod.outlook.com (2603:10a6:101:20::20) by AM4PR0301MB2228.eurprd03.prod.outlook.com (2603:10a6:200:4f::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.20; Mon, 4 Jul 2022 09:26:10 +0000 Received: from PR2PR03MB5386.eurprd03.prod.outlook.com ([fe80::31f4:3737:2e09:dd1d]) by PR2PR03MB5386.eurprd03.prod.outlook.com ([fe80::31f4:3737:2e09:dd1d%6]) with mapi id 15.20.5395.020; Mon, 4 Jul 2022 09:26:10 +0000 Message-ID: Subject: [GSoC'22 Weekly Report #3] Rewrite PJDFSTest suite From: Sayafdine Said To: soc-status@freebsd.org Date: Mon, 04 Jul 2022 11:26:08 +0200 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.3 X-TMN: [ITQ/3y6O0aB5PbSC00gK3GvNX55zBnYE] X-ClientProxiedBy: PR3P193CA0026.EURP193.PROD.OUTLOOK.COM (2603:10a6:102:50::31) To PR2PR03MB5386.eurprd03.prod.outlook.com (2603:10a6:101:20::20) X-Microsoft-Original-Message-ID: <2c6a364db28bacfa3d0a2af62d3799bb62bde4c9.camel@outlook.com> List-Id: Summer of Code Status Reports and Discussion List-Archive: https://lists.freebsd.org/archives/soc-status List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-soc-status@freebsd.org X-BeenThere: soc-status@freebsd.org MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fab836d0-f846-48b9-c3f0-08da5d9f3aff X-MS-TrafficTypeDiagnostic: AM4PR0301MB2228:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mGnyCnWmcj8+pLpSnqyjV7B9fXgiPz1DPPIYq0hNMNIXd/pR4ropU1nQgVPuoBA9vmqRBvzAsAGx6aTTPkRlpNLqMTqYeB3avJD3E4aJQWYVCGBLGqiKj02SS9KOH/XayzrZSikNDwee8o7KGsp7g8L7n/5krD+maI5bOB+VWNGRSHAxwND3UNI5TPdCihrlswHmYOGI1KcRYXLAWe6XMcc6c+6h0VFBCXtEt7PRxWQAmTjhBfH7CuWaUj3PIwjOfOadSLoYM4KGV4PIcfTuiKErjtO0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VEx4VnpaU1lvaFM2T0l1eHBy?= =?utf-8?B?NFdrcmN1ektCV0dwYmphcHV0NzlhWkluK3dZRzJMQ2xKeDFjN21ycTkzWFJK?= =?utf-8?B?ckhaQWgwaUUvZXlUNjhrU3hxcHRGOGJsNmRQNVVmRS85YWZuZzBrNGpvclRS?= =?utf-8?B?bzhjS2RXazR4cHk4di93cWdhUGIzejFhY3cxbERZcU90eTdCV1ZoYkVvNG9n?= =?utf-8?B?d08xV3ozby9SZjU3Ty9zU050dnZuZVFTRDkyVGMyTGxWUHlLc0hTamNqeEtN?= =?utf-8?B?a3k1L3IwK292Q2w3YmlHZjBMQ1E4UlpqdldEbmJQSE43WmRFeUhKTXN3PT0=?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: fab836d0-f846-48b9-c3f0-08da5d9f3aff X-MS-Exchange-CrossTenant-AuthSource: PR2PR03MB5386.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2022 09:26:10.0807 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0301MB2228 X-Rspamd-Queue-Id: 4Lc0mV0WHtz4j8M X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=outlook.com header.s=selector1 header.b=WRTxJzfM; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=outlook.com; spf=pass (mx1.freebsd.org: domain of musikid@outlook.com designates 40.92.69.24 as permitted sender) smtp.mailfrom=musikid@outlook.com X-Spamd-Result: default: False [-3.07 / 15.00]; DWL_DNSWL_NONE(0.00)[outlook.com:dkim]; R_DKIM_ALLOW(-0.20)[outlook.com:s=selector1]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[outlook.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_SPAM_MEDIUM(0.93)[0.926]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; MID_RHS_MATCH_FROMTLD(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:40.92.0.0/15]; DKIM_TRACE(0.00)[outlook.com:+]; DMARC_POLICY_ALLOW(-0.50)[outlook.com,none]; RCVD_IN_DNSWL_NONE(0.00)[40.92.69.24:from]; NEURAL_HAM_SHORT(-1.00)[-0.996]; MLMMJ_DEST(0.00)[soc-status]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[outlook.com]; ASN(0.00)[asn:8075, ipnet:40.80.0.0/12, country:US]; RCVD_TLS_LAST(0.00)[]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1] X-ThisMailContainsUnwantedMimeParts: N Hi everyone, I was expecting to work on the new interface, but I had to solve some issues, namely the return type of the test functions and the configuration file. Now, the test functions do not have to return a Result, and instead can unwrap the errors, which cause a panic which is captured by the test runner. They also can use the standard assertion macros (assert and assert_eq). All of this provide a more idiomatic way to write test functions. As for the configuration file, it will allow to execute opt-in tests, for example posix_fallocate, which is available on FreeBSD, but doesn't work on all file systems. Finally, my mentor @asomers has implemented a way to collect the tests automatically, by using the inventory crate, without having to manually create a test group and a test case. I originally suggested to use this crate (or linkme) to collect the tests, but we were worried of how it could be hard to implement, besides the fact that there were some concerns at the time on the underlying mecanism of these crates[1]. Sayafdine Said [1]: https://github.com/rust-lang/rust/issues/47384#issuecomment-1022913071