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 D4C51A0093; Fri, 10 Dec 2021 10:36:26 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9575B4014F; Fri, 10 Dec 2021 10:36:26 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 593CC40041 for ; Fri, 10 Dec 2021 10:36:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1639128984; x=1670664984; h=from:to:cc:subject:date:message-id; bh=knpYwQfTnYlZ8FmKGiVM2xDHahdRh5o9vXg4ARFYTdk=; b=m26tFq3dTb2go77zb6ux86mFJppQDV++ArKmHzBe0U53ensKYuyAwkn5 87r4k9LfgoYimBvs0M+6YPAgGjnJkIW0Fcq9R9IdbkVikAMMCL/41eKT4 rQUrDLPa/zcXJhIQ7tvIg/Ic+8YFt4hNrE+7OrR+1g3trLTjW7Ju+2LbH /UuSL6vCB14EuxMzC0R0XGiTAwOGpkRNQPYuPsuixMkrW/MTuBcSG6TwV kcxJDTrN7GDuvYm/Ycyk8g60nmeAXT3HVKY/fyoH11U8ZdlHl1VJgmCTp JEd8V4rGhrQtqOnHeoALNEreiblCw+lPTC0VGfb0+QRhtscQhrN0KjCe6 A==; X-IronPort-AV: E=McAfee;i="6200,9189,10193"; a="218338140" X-IronPort-AV: E=Sophos;i="5.88,195,1635231600"; d="scan'208";a="218338140" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Dec 2021 01:36:05 -0800 X-IronPort-AV: E=Sophos;i="5.88,195,1635231600"; d="scan'208";a="516694005" Received: from unknown (HELO localhost.localdomain) ([10.240.183.163]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-SHA; 10 Dec 2021 01:36:03 -0800 From: Yu Jiang To: lijuan.tu@intel.com, dts@dpdk.org Cc: Yu Jiang Subject: [dts][PATCH V1 1/2] test_plans/unit_tests_*: fix dpdk app/examples name to adapt meson build Date: Fri, 10 Dec 2021 17:35:41 +0800 Message-Id: <1639128941-3836-1-git-send-email-yux.jiang@intel.com> X-Mailer: git-send-email 2.7.4 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org fix dpdk app/examples name to adapt meson build Signed-off-by: Yu Jiang --- test_plans/unit_tests_cmdline_test_plan.rst | 8 ++- test_plans/unit_tests_crc_test_plan.rst | 10 ++-- test_plans/unit_tests_dump_test_plan.rst | 72 ++++++++++++++++++------- test_plans/unit_tests_event_timer_test_plan.rst | 8 ++- test_plans/unit_tests_kni_test_plan.rst | 15 ++++-- test_plans/unit_tests_loopback_test_plan.rst | 4 +- test_plans/unit_tests_lpm_test_plan.rst | 32 ++++++++--- test_plans/unit_tests_power_test_plan.rst | 16 ++++-- test_plans/unit_tests_qos_test_plan.rst | 24 ++++++--- test_plans/unit_tests_ring_test_plan.rst | 8 ++- test_plans/unit_tests_ringpmd_test_plan.rst | 8 ++- 11 files changed, 151 insertions(+), 54 deletions(-) diff --git a/test_plans/unit_tests_cmdline_test_plan.rst b/test_plans/unit_tests_cmdline_test_plan.rst index d6c11fb..196a5f9 100644 --- a/test_plans/unit_tests_cmdline_test_plan.rst +++ b/test_plans/unit_tests_cmdline_test_plan.rst @@ -46,8 +46,12 @@ stdout. The steps to run the unit test manually are as follow:: - # make -C ./app/test/ - # ./app/test/test -n 1 -c ffff + Build dpdk + # cd dpdk + # CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc + # ninja -C x86_64-native-linuxapp-gcc -j 50 + + # ./x86_64-native-linuxapp-gcc/app/test/dpdk-test -n 1 -c ffff RTE>> cmdline_autotest The final output of the test has to be "Test OK" diff --git a/test_plans/unit_tests_crc_test_plan.rst b/test_plans/unit_tests_crc_test_plan.rst index 9a4c89e..c6c757c 100644 --- a/test_plans/unit_tests_crc_test_plan.rst +++ b/test_plans/unit_tests_crc_test_plan.rst @@ -50,10 +50,12 @@ the application and checks the results. A test report is displayed on stdout. The steps to run the unit test manually are as follow:: - # cd ~/dpdk - # make config T=x86_64-native-linuxapp-gcc - # make test - # ./build/build/test/test/test -n 1 -c ffff + Build dpdk + # cd dpdk + # CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc + # ninja -C x86_64-native-linuxapp-gcc -j 50 + + # ./x86_64-native-linuxapp-gcc/app/test/dpdk-test -n 1 -c ffff RTE>> crc_autotest The final output of the test will have to be "Test OK". diff --git a/test_plans/unit_tests_dump_test_plan.rst b/test_plans/unit_tests_dump_test_plan.rst index c8832ff..a1a8ed2 100644 --- a/test_plans/unit_tests_dump_test_plan.rst +++ b/test_plans/unit_tests_dump_test_plan.rst @@ -47,8 +47,12 @@ stdout. The steps to run the unit test manually are as follow:: - # make -C ./app/test/ - # ./app/test/test -n 1 -c ffff + Build dpdk + # cd dpdk + # CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc + # ninja -C x86_64-native-linuxapp-gcc -j 50 + + # ./x86_64-native-linuxapp-gcc/app/test/dpdk-test -n 1 -c ffff RTE>> dump_ring The final output of the test will be detailed elements of DPDK ring. @@ -76,8 +80,12 @@ stdout. The steps to run the unit test manually are as follow:: - # make -C ./app/test/ - # ./app/test/test -n 1 -c ffff + Build dpdk + # cd dpdk + # CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc + # ninja -C x86_64-native-linuxapp-gcc -j 50 + + # ./x86_64-native-linuxapp-gcc/app/test/dpdk-test -n 1 -c ffff RTE>> dump_mempool The final output of the test will be detailed elements of DPDK mempool. @@ -105,8 +113,12 @@ stdout. The steps to run the unit test manually are as follow:: - # make -C ./app/test/ - # ./app/test/test -n 1 -c ffff + Build dpdk + # cd dpdk + # CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc + # ninja -C x86_64-native-linuxapp-gcc -j 50 + + # ./x86_64-native-linuxapp-gcc/app/test/dpdk-test -n 1 -c ffff RTE>> dump_physmem The final output of the test will be detailed elements of DPDK physical memory. @@ -128,8 +140,12 @@ stdout. The steps to run the unit test manually are as follow:: - # make -C ./app/test/ - # ./app/test/test -n 1 -c ffff + Build dpdk + # cd dpdk + # CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc + # ninja -C x86_64-native-linuxapp-gcc -j 50 + + # ./x86_64-native-linuxapp-gcc/app/test/dpdk-test -n 1 -c ffff RTE>> dump_memzone The final output of the test will be detailed elements of DPDK memzone. @@ -151,8 +167,12 @@ stdout. The steps to run the unit test manually are as follow:: - # make -C ./app/test/ - # ./app/test/test -n 1 -c ffff + Build dpdk + # cd dpdk + # CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc + # ninja -C x86_64-native-linuxapp-gcc -j 50 + + # ./x86_64-native-linuxapp-gcc/app/test/dpdk-test -n 1 -c ffff RTE>> dump_struct_sizes The final output of the test will be the size of DPDK structure. @@ -174,8 +194,12 @@ stdout. The steps to run the unit test manually are as follow:: - # make -C ./app/test/ - # ./app/test/test -n 1 -c ffff -a|-b pci_address + Build dpdk + # cd dpdk + # CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc + # ninja -C x86_64-native-linuxapp-gcc -j 50 + + # ./x86_64-native-linuxapp-gcc/app/test/dpdk-test -n 1 -c ffff -a|-b pci_address RTE>> dump_devargs The final output of the test will be the pci address of allow list @@ -198,8 +222,12 @@ stdout. The steps to run the unit test manually are as follow:: - # make -C ./app/test/ - # ./app/test/test -n 1 -c ffff + Build dpdk + # cd dpdk + # CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc + # ninja -C x86_64-native-linuxapp-gcc -j 50 + + # ./x86_64-native-linuxapp-gcc/app/test/dpdk-test -n 1 -c ffff RTE>> dump_malloc_stats The final output of the test will be the malloc stats of DPDK heap. @@ -221,8 +249,12 @@ stdout. The steps to run the unit test manually are as follow:: - # make -C ./app/test/ - # ./app/test/test -n 1 -c ffff + Build dpdk + # cd dpdk + # CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc + # ninja -C x86_64-native-linuxapp-gcc -j 50 + + # ./x86_64-native-linuxapp-gcc/app/test/dpdk-test -n 1 -c ffff RTE>> dump_malloc_heaps The final output of the test will be the detailed malloc status of each DPDK heap. @@ -244,8 +276,12 @@ stdout. The steps to run the unit test manually are as follow:: - # make -C ./app/test/ - # ./app/test/test -n 1 -c ffff + Build dpdk + # cd dpdk + # CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc + # ninja -C x86_64-native-linuxapp-gcc -j 50 + + # ./x86_64-native-linuxapp-gcc/app/test/dpdk-test -n 1 -c ffff RTE>> dump_log_types The final output of the test will be the log level of each DPDK log type. diff --git a/test_plans/unit_tests_event_timer_test_plan.rst b/test_plans/unit_tests_event_timer_test_plan.rst index 192d983..0e8a993 100644 --- a/test_plans/unit_tests_event_timer_test_plan.rst +++ b/test_plans/unit_tests_event_timer_test_plan.rst @@ -11,8 +11,12 @@ test can be launched independently using the command line interface. The steps to run the unit test manually are as follow:: - # make -C ./app/test/ - # ./app/test/test -n 1 -c ffff -a , + Build dpdk + # cd dpdk + # CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc + # ninja -C x86_64-native-linuxapp-gcc -j 50 + + # ./x86_64-native-linuxapp-gcc/app/test/dpdk-test -n 1 -c ffff -a , RTE>> event_timer_adapter_test The final output of the test has to be "Test OK" diff --git a/test_plans/unit_tests_kni_test_plan.rst b/test_plans/unit_tests_kni_test_plan.rst index 793dd47..984d4ad 100644 --- a/test_plans/unit_tests_kni_test_plan.rst +++ b/test_plans/unit_tests_kni_test_plan.rst @@ -47,14 +47,21 @@ stdout. Case config:: - For enable KNI features, need to set the "CONFIG_RTE_KNI_KMOD=y" in ./config/common_base and re-build DPDK. + For enable KNI features, need to add "-Denable_kmods=True" when build DPDK by meson. + CC=gcc meson -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc + ninja -C x86_64-native-linuxapp-gcc -j 50 + + rte_kni.ko is located at ./x86_64-native-linuxapp-gcc/kernel/linux/kni/ The steps to run the unit test manually are as follow:: - # make -C ./app/test/ + # mkdir -p x86_64-native-linuxapp-gcc/kmod + # cp ./x86_64-native-linuxapp-gcc/kernel/linux/kni/rte_kni.ko x86_64-native-linuxapp-gcc/kmod/ + # cp ./x86_64-native-linuxapp-gcc/kernel/linux/igb_uio/igb_uio.ko x86_64-native-linuxapp-gcc/kmod/ + # lsmod | grep rte_kni # insmod .//kmod/igb_uio.ko - # insmod .//kmod/rte_kni.ko - # ./app/test/test -n 1 -c ffff + # insmod .//kmod/rte_kni.ko lo_mode=lo_mode_fifo + # ./x86_64-native-linuxapp-gcc/app/test/dpdk-test -n 1 -c ffff RTE>> kni_autotest RTE>> quit # rmmod rte_kni diff --git a/test_plans/unit_tests_loopback_test_plan.rst b/test_plans/unit_tests_loopback_test_plan.rst index 6e39457..2425141 100644 --- a/test_plans/unit_tests_loopback_test_plan.rst +++ b/test_plans/unit_tests_loopback_test_plan.rst @@ -64,7 +64,7 @@ Set:: Then make test Start test:: - ./test/test/test -c f -n 4 -- -i + ./x86_64-native-linuxapp-gcc/app/test/dpdk-test -c f -n 4 -- -i RTE>>pmd_perf_autotest The final output of the test will be matrix of average cycles of IO used per @@ -83,7 +83,7 @@ Set:: Then make test Start test:: - ./test/test/test -c f -n 4 -- -i + ./x86_64-native-linuxapp-gcc/app/test/dpdk-test -c f -n 4 -- -i RTE>>pmd_perf_autotest There is not "Test OK" presented. diff --git a/test_plans/unit_tests_lpm_test_plan.rst b/test_plans/unit_tests_lpm_test_plan.rst index 4fa9248..0bc5f61 100644 --- a/test_plans/unit_tests_lpm_test_plan.rst +++ b/test_plans/unit_tests_lpm_test_plan.rst @@ -47,8 +47,12 @@ stdout. The steps to run the unit test manually are as follow:: - # make -C ./app/test/ - # ./app/test/test -n 1 -c ffff + Build dpdk + # cd dpdk + # CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc + # ninja -C x86_64-native-linuxapp-gcc -j 50 + + # ./x86_64-native-linuxapp-gcc/app/test/dpdk-test -n 1 -c ffff RTE>> lpm_autotest @@ -71,8 +75,12 @@ stdout. The steps to run the unit test manually are as follow:: - # make -C ./app/test/ - # ./app/test/test -n 1 -c ffff + Build dpdk + # cd dpdk + # CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc + # ninja -C x86_64-native-linuxapp-gcc -j 50 + + # ./x86_64-native-linuxapp-gcc/app/test/dpdk-test -n 1 -c ffff RTE>> lpm6_autotest @@ -86,8 +94,12 @@ Unit Tests: LPM_perf This section explains how to run the unit tests for LPM performance. The steps to run the unit test manually are as follow:: - # make -C ./app/test/ - # ./app/test/test -n 1 -c ffff + Build dpdk + # cd dpdk + # CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc + # ninja -C x86_64-native-linuxapp-gcc -j 50 + + # ./x86_64-native-linuxapp-gcc/app/test/dpdk-test -n 1 -c ffff RTE>> lpm_perf_autotest The final output of the test has to be "Test OK" @@ -100,8 +112,12 @@ Unit Tests: LPM_ipv6_perf This section explains how to run the unit tests for LPM IPv6 performance. The steps to run the unit test manually are as follow:: - # make -C ./app/test/ - # ./app/test/test -n 1 -c ffff + Build dpdk + # cd dpdk + # CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc + # ninja -C x86_64-native-linuxapp-gcc -j 50 + + # ./x86_64-native-linuxapp-gcc/app/test/dpdk-test -n 1 -c ffff RTE>> lpm6_perf_autotest The final output of the test has to be "Test OK" diff --git a/test_plans/unit_tests_power_test_plan.rst b/test_plans/unit_tests_power_test_plan.rst index 813ffde..711dcb8 100644 --- a/test_plans/unit_tests_power_test_plan.rst +++ b/test_plans/unit_tests_power_test_plan.rst @@ -51,8 +51,12 @@ stdout. The steps to run the unit test manually are as follow:: - # make -C ./app/test/ - # ./app/test/test -n 1 -c ffff + Build dpdk + # cd dpdk + # CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc + # ninja -C x86_64-native-linuxapp-gcc -j 50 + + # ./x86_64-native-linuxapp-gcc/app/test/dpdk-test -n 1 -c ffff RTE>> power_autotest @@ -72,8 +76,12 @@ stdout. The steps to run the unit test manually are as follow:: - # make -C ./app/test/ - # ./app/test/test -n 1 -c ffff + Build dpdk + # cd dpdk + # CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc + # ninja -C x86_64-native-linuxapp-gcc -j 50 + + # ./x86_64-native-linuxapp-gcc/app/test/dpdk-test -n 1 -c ffff RTE>> power_acpi_cpufreq_autotest The final output of the test has to be "Test OK" diff --git a/test_plans/unit_tests_qos_test_plan.rst b/test_plans/unit_tests_qos_test_plan.rst index e305cd7..68ae2c5 100644 --- a/test_plans/unit_tests_qos_test_plan.rst +++ b/test_plans/unit_tests_qos_test_plan.rst @@ -47,8 +47,12 @@ stdout. The steps to run the unit test manually are as follow:: - # make -C ./app/test/ - # ./app/test/test -n 1 -c ffff + Build dpdk + # cd dpdk + # CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc + # ninja -C x86_64-native-linuxapp-gcc -j 50 + + # ./x86_64-native-linuxapp-gcc/app/test/dpdk-test -n 1 -c ffff RTE>> red_autotest The final output of the test has to be "Test OK" @@ -70,8 +74,12 @@ stdout. The steps to run the unit test manually are as follow:: - # make -C ./app/test/ - # ./app/test/test -n 1 -c ffff + Build dpdk + # cd dpdk + # CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc + # ninja -C x86_64-native-linuxapp-gcc -j 50 + + # ./x86_64-native-linuxapp-gcc/app/test/dpdk-test -n 1 -c ffff RTE>> meter_autotest The final output of the test has to be "Test OK" @@ -93,8 +101,12 @@ stdout. The steps to run the unit test manually are as follow:: - # make -C ./app/test/ - # ./app/test/test -n 1 -c ffff + Build dpdk + # cd dpdk + # CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc + # ninja -C x86_64-native-linuxapp-gcc -j 50 + + # ./x86_64-native-linuxapp-gcc/app/test/dpdk-test -n 1 -c ffff RTE>> sched_autotest The final output of the test has to be "Test OK" diff --git a/test_plans/unit_tests_ring_test_plan.rst b/test_plans/unit_tests_ring_test_plan.rst index 587bb6a..e5aa5ad 100644 --- a/test_plans/unit_tests_ring_test_plan.rst +++ b/test_plans/unit_tests_ring_test_plan.rst @@ -115,8 +115,12 @@ stdout. The steps to run the unit test manually are as follow:: - # make -C ./app/test/ - # ./app/test/test -n 1 -c ffff + Build dpdk + # cd dpdk + # CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc + # ninja -C x86_64-native-linuxapp-gcc -j 50 + + # ./x86_64-native-linuxapp-gcc/app/test/dpdk-test -n 1 -c ffff RTE>> ring_perf_autotest diff --git a/test_plans/unit_tests_ringpmd_test_plan.rst b/test_plans/unit_tests_ringpmd_test_plan.rst index cd861e0..159d28f 100644 --- a/test_plans/unit_tests_ringpmd_test_plan.rst +++ b/test_plans/unit_tests_ringpmd_test_plan.rst @@ -51,8 +51,12 @@ virtual ethernet devices with full rx&tx functions. The steps to run the unit test manually are as follow:: - # make -C ./app/test/ - # ./app/test/test -n 1 -c ffff --vdev='net_ring0' + Build dpdk + # cd dpdk + # CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc + # ninja -C x86_64-native-linuxapp-gcc -j 50 + + # ./x86_64-native-linuxapp-gcc/app/test/dpdk-test -n 1 -c ffff --vdev='net_ring0' --vdev='net_ring1' RTE>> ring_pmd_autotest -- 2.7.4