From d61845a837b54e18b80d4782aa76228bae71ab89 Mon Sep 17 00:00:00 2001 From: Fabian Schuiki Date: Wed, 15 Jan 2025 17:26:36 -0800 Subject: [PATCH] Add sanity checks for z3, yosys, and sby installations After installation, execute the tools on a simple example to check that they have been properly installed. This is especially useful for Yosys and SymbiYosys which depend on each other and z3, and other Python dependencies. --- integration-test/sby.sh | 21 +++++++++++++++++++++ integration-test/yosys.sh | 17 +++++++++++++++++ integration-test/z3.sh | 13 +++++++++++++ 3 files changed, 51 insertions(+) diff --git a/integration-test/sby.sh b/integration-test/sby.sh index a63fab2..79b7fd0 100755 --- a/integration-test/sby.sh +++ b/integration-test/sby.sh @@ -1,5 +1,6 @@ #!/bin/bash # Downloads, compiles, and installs SymbiYosys +set -xe YOSYS_VER=0.47 @@ -11,3 +12,23 @@ cd sby-yosys-$YOSYS_VER make PREFIX=/usr install cd .. rm -r sby-yosys-$YOSYS_VER + +# Perform a sanity check. +cat > /tmp/sanity.v < /tmp/sanity.v </tmp/z3.log </dev/null