Fri Sep 23 10:01:03 2022 UTC ()
uhd: fix unportable test operator in example script


(wiz)
diff -r1.32 -r1.33 pkgsrc/ham/uhd/distinfo
diff -r0 -r1.1 pkgsrc/ham/uhd/patches/patch-examples_rfnoc-example_cmake_Modules_run__testbench.sh.in

cvs diff -r1.32 -r1.33 pkgsrc/ham/uhd/distinfo (expand / switch to unified diff)

--- pkgsrc/ham/uhd/distinfo 2022/04/12 20:10:46 1.32
+++ pkgsrc/ham/uhd/distinfo 2022/09/23 10:01:03 1.33
@@ -1,14 +1,15 @@ @@ -1,14 +1,15 @@
1$NetBSD: distinfo,v 1.32 2022/04/12 20:10:46 tnn Exp $ 1$NetBSD: distinfo,v 1.33 2022/09/23 10:01:03 wiz Exp $
2 2
3BLAKE2s (uhd-4.1.0.5.tar.gz) = f172a3e30a7e6b81cf79ead0b7a7bb2f34ea55777b94152c2fec267b2f68586a 3BLAKE2s (uhd-4.1.0.5.tar.gz) = f172a3e30a7e6b81cf79ead0b7a7bb2f34ea55777b94152c2fec267b2f68586a
4SHA512 (uhd-4.1.0.5.tar.gz) = 4929ebc8a12bcc0acfe4a64ceafe17387420e2f056e7bb7284a8d7b60d14aba05484b3c033ce63b00c6d9115f570b056df4e2b36e11a2b25079a8c34b1d084af 4SHA512 (uhd-4.1.0.5.tar.gz) = 4929ebc8a12bcc0acfe4a64ceafe17387420e2f056e7bb7284a8d7b60d14aba05484b3c033ce63b00c6d9115f570b056df4e2b36e11a2b25079a8c34b1d084af
5Size (uhd-4.1.0.5.tar.gz) = 37975618 bytes 5Size (uhd-4.1.0.5.tar.gz) = 37975618 bytes
6SHA1 (patch-CMakeLists.txt) = 16cc883a0bffdb6c3a4733dda7060bd206928d68 6SHA1 (patch-CMakeLists.txt) = 16cc883a0bffdb6c3a4733dda7060bd206928d68
7SHA1 (patch-examples_getopt_getopt.c) = f9c7297cb1dcc9438baed9dcdaf0f52b83297e01 7SHA1 (patch-examples_getopt_getopt.c) = f9c7297cb1dcc9438baed9dcdaf0f52b83297e01
8SHA1 (patch-examples_getopt_getopt.h) = 7f01c9385644dbf2b61dfd8bebac8016b46000c5 8SHA1 (patch-examples_getopt_getopt.h) = 7f01c9385644dbf2b61dfd8bebac8016b46000c5
 9SHA1 (patch-examples_rfnoc-example_cmake_Modules_run__testbench.sh.in) = f3c5c350abc82e0821eff45f00f4d1a0a1c7472b
9SHA1 (patch-lib_rfnoc_vector__iir__block__control.cpp) = d0bc32f888a6cfc30f1eb57d7f2d71bb86cdc284 10SHA1 (patch-lib_rfnoc_vector__iir__block__control.cpp) = d0bc32f888a6cfc30f1eb57d7f2d71bb86cdc284
10SHA1 (patch-lib_transport_nirio_lvbitx_process-lvbitx.py) = 5117c7593c4e92ed6bfb86388cc366c41a1dead7 11SHA1 (patch-lib_transport_nirio_lvbitx_process-lvbitx.py) = 5117c7593c4e92ed6bfb86388cc366c41a1dead7
11SHA1 (patch-lib_usrp_common_lmx2592.cpp) = 2828dcf989f1fc43c70e10b8de1e34485066842d 12SHA1 (patch-lib_usrp_common_lmx2592.cpp) = 2828dcf989f1fc43c70e10b8de1e34485066842d
12SHA1 (patch-lib_usrp_mpmd_mpmd__link__if__ctrl__udp.cpp) = f94b2a282161474a0a91f333fd2d733ce7d1d4f3 13SHA1 (patch-lib_usrp_mpmd_mpmd__link__if__ctrl__udp.cpp) = f94b2a282161474a0a91f333fd2d733ce7d1d4f3
13SHA1 (patch-lib_usrp_mpmd_mpmd__link__if__ctrl__udp.hpp) = 3106d28c4ddc38fd304eb94de5773ff56fed0fd8 14SHA1 (patch-lib_usrp_mpmd_mpmd__link__if__ctrl__udp.hpp) = 3106d28c4ddc38fd304eb94de5773ff56fed0fd8
14SHA1 (patch-tests_rfnoc__block__tests_vector__iir__block__test.cpp) = 5d9594ce208acd8668589b117dd58d6b1a09de3a 15SHA1 (patch-tests_rfnoc__block__tests_vector__iir__block__test.cpp) = 5d9594ce208acd8668589b117dd58d6b1a09de3a

File Added: pkgsrc/ham/uhd/patches/patch-examples_rfnoc-example_cmake_Modules_run__testbench.sh.in
$NetBSD: patch-examples_rfnoc-example_cmake_Modules_run__testbench.sh.in,v 1.1 2022/09/23 10:01:03 wiz Exp $

Fix unportable test(1) operator.

--- examples/rfnoc-example/cmake/Modules/run_testbench.sh.in.orig	2021-12-14 18:37:20.000000000 +0000
+++ examples/rfnoc-example/cmake/Modules/run_testbench.sh.in
@@ -24,22 +24,22 @@ shift
 
 # Need to convert device types to directory names
 device_dir=$test_device
-if [ $device_dir == "x310" ]; then
+if [ $device_dir = "x310" ]; then
 	device_dir=x300
 fi
-if [ $device_dir == "n300" ]; then
+if [ $device_dir = "n300" ]; then
 	device_dir=n3xx
 fi
-if [ $device_dir == "n310" ]; then
+if [ $device_dir = "n310" ]; then
 	device_dir=n3xx
 fi
-if [ $device_dir == "n320" ]; then
+if [ $device_dir = "n320" ]; then
 	device_dir=n3xx
 fi
-if [ $device_dir == "e310" ]; then
+if [ $device_dir = "e310" ]; then
 	device_dir=e31x
 fi
-if [ $device_dir == "x410" ]; then
+if [ $device_dir = "x410" ]; then
 	device_dir=x400
 fi