From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C21A9A0C47; Wed, 27 Oct 2021 16:04:26 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 851B940DDA; Wed, 27 Oct 2021 16:04:26 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 28E9F407FF for ; Wed, 27 Oct 2021 16:04:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1635343464; 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; bh=0z59mUDOj4BnHGgg+QXY+BYLocXuiz9tmuBTQ/gTyNw=; b=gzyUYP+iw0oQGCythmvmKKu14v82LvJfhq7eSKXi4TdARxj0FEG9Ei0QaX0fG4jTBXQJKr kqRZqKmKWMhQDKQEozgdDyiQoaibxTYiU2b5Ygx33lco9CRyv72dJsY8iaCwS6ilTNEVOW efNQqjEJ5hO7fFfHOmvmTm0UvNjDV2k= 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-138-kie8BHrUPKycXtGUSVksHA-1; Wed, 27 Oct 2021 10:04:23 -0400 X-MC-Unique: kie8BHrUPKycXtGUSVksHA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 225E710A8E00; Wed, 27 Oct 2021 14:04:22 +0000 (UTC) Received: from dmarchan.remote.csb (unknown [10.40.192.79]) by smtp.corp.redhat.com (Postfix) with ESMTP id DA3A35FC23; Wed, 27 Oct 2021 14:04:20 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: Bruce Richardson , Aaron Conole Date: Wed, 27 Oct 2021 16:04:10 +0200 Message-Id: <20211027140410.2202-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david.marchand@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Subject: [dpdk-dev] [PATCH] test: remove unnecessary test commands X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" EAL and rwlock tests have been split into smaller unit tests now listed in meson. Nothing is referencing eal_flags_autotest and rwlock_autotest anymore, since we dropped the python wrapper. Fixes: 8c745bb62340 ("test: remove autotest python wrapper") Signed-off-by: David Marchand --- app/test/test_eal_flags.c | 84 --------------------------------------- app/test/test_rwlock.c | 42 -------------------- 2 files changed, 126 deletions(-) diff --git a/app/test/test_eal_flags.c b/app/test/test_eal_flags.c index 1d18a0ba8f..d7f4c2cd47 100644 --- a/app/test/test_eal_flags.c +++ b/app/test/test_eal_flags.c @@ -1498,90 +1498,6 @@ test_memory_flags(void) return 0; } -static int -test_eal_flags(void) -{ - int ret = 0; - - ret = test_missing_c_flag(); - if (ret < 0) { - printf("Error in test_missing_c_flag()\n"); - return ret; - } - - ret = test_main_lcore_flag(); - if (ret < 0) { - printf("Error in test_main_lcore_flag()\n"); - return ret; - } - - ret = test_invalid_n_flag(); - if (ret < 0) { - printf("Error in test_invalid_n_flag()\n"); - return ret; - } - - ret = test_no_hpet_flag(); - if (ret < 0) { - printf("Error in test_no_hpet_flag()\n"); - return ret; - } - - ret = test_no_huge_flag(); - if (ret < 0) { - printf("Error in test_no_huge_flag()\n"); - return ret; - } - - ret = test_allow_flag(); - if (ret < 0) { - printf("Error in test_allow_flag()\n"); - return ret; - } - - ret = test_invalid_b_flag(); - if (ret < 0) { - printf("Error in test_invalid_b_flag()\n"); - return ret; - } - -#ifdef RTE_NET_RING - ret = test_invalid_vdev_flag(); - if (ret < 0) { - printf("Error in test_invalid_vdev_flag()\n"); - return ret; - } -#endif - ret = test_invalid_r_flag(); - if (ret < 0) { - printf("Error in test_invalid_r_flag()\n"); - return ret; - } - - ret = test_memory_flags(); - if (ret < 0) { - printf("Error in test_memory_flags()\n"); - return ret; - } - - ret = test_file_prefix(); - if (ret < 0) { - printf("Error in test_file_prefix()\n"); - return ret; - } - - ret = test_misc_flags(); - if (ret < 0) { - printf("Error in test_misc_flags()"); - return ret; - } - - return ret; -} - -REGISTER_TEST_COMMAND(eal_flags_autotest, test_eal_flags); - -/* subtests used in meson for CI */ REGISTER_TEST_COMMAND(eal_flags_c_opt_autotest, test_missing_c_flag); REGISTER_TEST_COMMAND(eal_flags_main_opt_autotest, test_main_lcore_flag); REGISTER_TEST_COMMAND(eal_flags_n_opt_autotest, test_invalid_n_flag); diff --git a/app/test/test_rwlock.c b/app/test/test_rwlock.c index f2d1c8883c..4ae0bf8deb 100644 --- a/app/test/test_rwlock.c +++ b/app/test/test_rwlock.c @@ -506,48 +506,6 @@ try_rwlock_test_rde_wro(void) return process_try_lcore_stats(); } -static int -test_rwlock(void) -{ - uint32_t i; - int32_t rc, ret; - - static const struct { - const char *name; - int (*ftst)(void); - } test[] = { - { - .name = "rwlock_test1", - .ftst = rwlock_test1, - }, - { - .name = "try_rwlock_test_rda", - .ftst = try_rwlock_test_rda, - }, - { - .name = "try_rwlock_test_rds_wrm", - .ftst = try_rwlock_test_rds_wrm, - }, - { - .name = "try_rwlock_test_rde_wro", - .ftst = try_rwlock_test_rde_wro, - }, - }; - - ret = 0; - for (i = 0; i != RTE_DIM(test); i++) { - printf("starting test %s;\n", test[i].name); - rc = test[i].ftst(); - printf("test %s completed with status %d\n", test[i].name, rc); - ret |= rc; - } - - return ret; -} - -REGISTER_TEST_COMMAND(rwlock_autotest, test_rwlock); - -/* subtests used in meson for CI */ REGISTER_TEST_COMMAND(rwlock_test1_autotest, rwlock_test1); REGISTER_TEST_COMMAND(rwlock_rda_autotest, try_rwlock_test_rda); REGISTER_TEST_COMMAND(rwlock_rds_wrm_autotest, try_rwlock_test_rds_wrm); -- 2.23.0