4343 make -C lib/cbmc/src minisat2-download
4444 - name : Build with make
4545 run : make -C src -j4 CXX="ccache g++"
46+ - name : Run unit tests
47+ run : make -C unit -j4 CXX="ccache g++"
4648 - name : Run the ebmc tests with SAT
4749 run : make -C regression/ebmc test
4850 - name : Run the ebmc tests with Z3
@@ -101,6 +103,8 @@ jobs:
101103 make -C lib/cbmc/src minisat2-download
102104 - name : Build with make
103105 run : make CXX="ccache clang++" -C src -j4
106+ - name : Run unit tests
107+ run : make -C unit -j4 CXX="ccache clang++"
104108 - name : Run the ebmc tests with SAT
105109 run : make -C regression/ebmc test
106110 - name : Run the ebmc tests with Z3
@@ -203,6 +207,8 @@ jobs:
203207 run : make -C lib/cbmc/src minisat2-download
204208 - name : Build with make
205209 run : make CXX="ccache g++ -Wno-class-memaccess" LIBS="-lstdc++fs" -C src -j4
210+ - name : Run unit tests
211+ run : make -C unit -j4 CXX="ccache g++ -Wno-class-memaccess" LIBS="-lstdc++fs"
206212 - name : Run the ebmc tests with SAT
207213 run : |
208214 rm regression/ebmc/neural-liveness/counter1.desc
@@ -246,6 +252,8 @@ jobs:
246252 run : make -C lib/cbmc/src minisat2-download
247253 - name : Build with make
248254 run : make YACC="/opt/homebrew/opt/bison/bin/bison" CXX="ccache clang++" -C src -j3
255+ - name : Run unit tests
256+ run : make -C unit -j3 CXX="ccache g++"
249257 - name : Run the ebmc tests with SAT
250258 run : make -C regression/ebmc test
251259 - name : Run the ebmc tests with Z3
@@ -279,6 +287,9 @@ jobs:
279287 run : |
280288 sudo apt-get update
281289 sudo apt-get install --no-install-recommends -yq emscripten flex bison libxml2-utils cpanminus ccache
290+ - uses : actions/setup-node@v4
291+ with :
292+ node-version : 22
282293 - name : Prepare ccache
283294 uses : actions/cache@v4
284295 with :
@@ -299,7 +310,13 @@ jobs:
299310 - name : Build with make
300311 run : make -C src -j4 CXX="ccache emcc" HOSTCXX="ccache g++" BUILD_ENV=Unix LINKLIB="emar rc \$@ \$^" AR="emar" EXEEXT=".html"
301312 - name : print version number via node.js
302- run : node --no-experimental-fetch src/ebmc/ebmc.js --version
313+ run : |
314+ node --version
315+ # node --experimental-wasm-exnref --no-experimental-fetch src/ebmc/ebmc.js --version
316+ - name : Run unit tests
317+ run : |
318+ make -C unit -j4 unit_tests.html CXX="ccache emcc" BUILD_ENV=Unix LINKLIB="emar rc \$@ \$^" AR="emar" EXEEXT=".html"
319+ # node --experimental-wasm-exnref --no-experimental-fetch unit/unit_tests.js
303320 - name : Print ccache stats
304321 run : ccache -s
305322
@@ -358,5 +375,10 @@ jobs:
358375 # disable MSYS file-name mangling
359376 MSYS2_ARG_CONV_EXCL : " *"
360377 run : make CXX=clcache BUILD_ENV=MSVC -j4 -C src
378+ - name : Run unit tests
379+ env :
380+ # disable MSYS file-name mangling
381+ MSYS2_ARG_CONV_EXCL : " *"
382+ run : make CXX=clcache BUILD_ENV=MSVC -j4 -C unit
361383 - name : Print ccache stats
362384 run : clcache -s
0 commit comments