]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
github-ci: test install of library 5866/head
authorJason Ish <jason.ish@oisf.net>
Thu, 11 Feb 2021 22:34:34 +0000 (16:34 -0600)
committerJason Ish <jason.ish@oisf.net>
Tue, 16 Feb 2021 17:43:26 +0000 (11:43 -0600)
Add library install test to Fedora 33 build. In this case the
shared library is disable so the test makes sure it is not
installed.

Also make sure the library and headers are not installed until
explicitly installed.

Add similar to test to an Ubuntu 24.04 build without disable-shared
and check that the shared library is installed.

.github/workflows/builds.yml

index 5ea599284e9feb62d924efedbdbb4113adc494ab..20954113ae274601fef3e413953b9125e5159133 100644 (file)
@@ -383,6 +383,18 @@ jobs:
         run: tar xf prep/suricata-verify.tar.gz
       - name: Running suricata-verify
         run: python3 ./suricata-verify/run.py
+      # Now install and make sure headers and libraries aren't install
+      # until requested.
+      - run: make install
+      - run: test ! -e /usr/local/lib/libsuricata_c.a
+      - run: test ! -e /usr/local/include/suricata
+      - run: make install-headers
+      - run: test -e /usr/local/include/suricata/suricata.h
+      - run: make install-library
+      - run: test -e /usr/local/lib/libsuricata_c.a
+      - run: test -e /usr/local/lib/libsuricata_rust.a
+      - run: test -e /usr/local/bin/libsuricata-config
+      - run: test ! -e /usr/local/lib/libsuricata.so
 
   fedora-32:
     name: Fedora 32 (debug, clang, asan, wshadow, rust-strict)
@@ -816,6 +828,19 @@ jobs:
         run: tar xf prep/suricata-verify.tar.gz
       - name: Running suricata-verify
         run: python3 ./suricata-verify/run.py
+      # Now install and make sure headers and libraries aren't install
+      # until requested.
+      - run: make install
+      - run: test ! -e /usr/local/lib/libsuricata_c.a
+      - run: test ! -e /usr/local/include/suricata
+      - run: make install-headers
+      - run: test -e /usr/local/include/suricata/suricata.h
+      - run: make install-library
+      - run: test -e /usr/local/lib/libsuricata_c.a
+      - run: test -e /usr/local/lib/libsuricata_rust.a
+      - run: test -e /usr/local/bin/libsuricata-config
+      - run: test -e /usr/local/lib/libsuricata.so
+      - run: test -e /usr/local/lib/$(readlink /usr/local/lib/libsuricata.so)
 
   ubuntu-20-04-too-old-rust:
     name: Ubuntu 20.04 (unsupported rust)