Skip to content

Commit aa73432

Browse files
committed
Check in CI that all installed headers are usable
1 parent a492492 commit aa73432

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ci-tests/build-spike

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ mkdir install
1111
CXXFLAGS="-Wnon-virtual-dtor" CFLAGS="-Werror -Wignored-qualifiers -Wunused-function -Wunused-parameter -Wunused-variable" $DIR/../configure --prefix=`pwd`/install
1212
make -j"$(nproc 2> /dev/null || sysctl -n hw.ncpu)"
1313
make check
14-
make install
14+
make install install-hdrs-list.h
1515

1616
# check that help message prints without error
1717
install/bin/spike -h

ci-tests/test-spike

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@ time ../install/bin/spike --isa=rv64gc pk hello | grep "Hello, world! Pi is app
1616
g++ -std=c++2a -I../install/include -L../install/lib $DIR/testlib.cc -lriscv -o test-libriscv
1717
g++ -std=c++2a -I../install/include -L../install/lib $DIR/test-customext.cc -lriscv -o test-customext
1818

19+
# check that all installed headers are functional
20+
g++ -std=c++2a -I../install/include -L../install/lib $DIR/testlib.cc -lriscv -o /dev/null -include ../install-hdrs-list.h
21+
1922
LD_LIBRARY_PATH=../install/lib ./test-libriscv pk hello| grep "Hello, world! Pi is approximately 3.141588."
2023
LD_LIBRARY_PATH=../install/lib ./test-customext pk dummy-slliuw | grep "Executed successfully"

0 commit comments

Comments
 (0)