From 1668b0126bc5eb0496ad471b64351f8f6cb563f8 Mon Sep 17 00:00:00 2001 From: "N. Engelhardt" Date: Wed, 18 Mar 2020 14:36:15 +0100 Subject: [PATCH 1/2] add bash to brewfile Default bash on macOS is version 3, which does not support `define -A`, now used in `tests/arch/run-test.sh`. Use brew to install newer bash. --- Brewfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Brewfile b/Brewfile index 8465d86f9..2a985f09e 100644 --- a/Brewfile +++ b/Brewfile @@ -8,3 +8,4 @@ brew "pkg-config" brew "python3" brew "tcl-tk" brew "xdot" +brew "bash" From 644deb708dc8bec9d8f83df80650376f489c15be Mon Sep 17 00:00:00 2001 From: "N. Engelhardt" Date: Wed, 18 Mar 2020 15:11:49 +0100 Subject: [PATCH 2/2] fix argument order for macOS compatibility --- tests/arch/xilinx/tribuf.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/arch/xilinx/tribuf.sh b/tests/arch/xilinx/tribuf.sh index 636aed12a..bd44395cb 100644 --- a/tests/arch/xilinx/tribuf.sh +++ b/tests/arch/xilinx/tribuf.sh @@ -1,5 +1,5 @@ -! ../../../yosys ../common/tribuf.v -qp "synth_xilinx" -../../../yosys ../common/tribuf.v -qp "synth_xilinx -iopad; \ +! ../../../yosys -qp "synth_xilinx" ../common/tribuf.v +../../../yosys -qp "synth_xilinx -iopad; \ select -assert-count 2 t:IBUF; \ select -assert-count 1 t:INV; \ -select -assert-count 1 t:OBUFT" +select -assert-count 1 t:OBUFT" ../common/tribuf.v