From 007e5ab3b7b804bdb3f31a97754ee975144db313 Mon Sep 17 00:00:00 2001 From: MikePopoloski Date: Thu, 10 Aug 2023 09:22:23 -0400 Subject: [PATCH] Bump version for v4.0 --- CHANGELOG.md | 7 +++++++ CMakeLists.txt | 2 +- tests/unittests/DriverTests.cpp | 9 +++++---- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 077cf6e8d..366447b7e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] ### Language Support +### General Features +### Improvements +### Fixes + + +## [v4.0] - 2023-08-10 +### Language Support * Finished full support for user-defined primitives by adding error checking for table entries * Support for whitespace between the two characters of the dist weight operators has been added for compatibility with other tools -- this is an error by default but can be downgraded as needed. See [-Wsplit-distweight-op](https://sv-lang.com/warning-ref.html#split-distweight-op). * Added support for net aliases diff --git a/CMakeLists.txt b/CMakeLists.txt index a4151f780..a904730dd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,7 +28,7 @@ set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH}) include(gitversion) get_git_version(SLANG_VERSION_PATCH SLANG_VERSION_HASH) -set(SLANG_VERSION_MAJOR 3) +set(SLANG_VERSION_MAJOR 4) set(SLANG_VERSION_MINOR 0) set(SLANG_VERSION_STRING "${SLANG_VERSION_MAJOR}.${SLANG_VERSION_MINOR}.${SLANG_VERSION_PATCH}") diff --git a/tests/unittests/DriverTests.cpp b/tests/unittests/DriverTests.cpp index 7d6f76732..81f9faf87 100644 --- a/tests/unittests/DriverTests.cpp +++ b/tests/unittests/DriverTests.cpp @@ -189,7 +189,7 @@ TEST_CASE("Driver report macros") { CHECK(driver.processOptions()); driver.reportMacros(); - CHECK("\n" + OS::capturedStdout == R"( + CHECK(("\n" + OS::capturedStdout).starts_with(R"( BAR `__FILE__ FOO `BAR ID(x) x @@ -209,9 +209,10 @@ SV_COV_STATEMENT 22 SV_COV_STOP 1 SV_COV_TOGGLE 23 __slang__ 1 -__slang_major__ 3 -__slang_minor__ 0 -)"); +)")); + + CHECK(stdoutContains("__slang_major__")); + CHECK(stdoutContains("__slang_minor__")); } TEST_CASE("Driver single-unit parsing") {