"Fossies" - the Fresh Open Source Software Archive

Member "cryptsetup-2.4.3/tests/run-all-symbols" (13 Jan 2022, 316 Bytes) of package /linux/misc/cryptsetup-2.4.3.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/bash
    2 
    3 DIR=../.libs
    4 FILE=$DIR/libcryptsetup.so
    5 
    6 function fail()
    7 {
    8     [ -n "$1" ] && echo "$1"
    9     exit 2
   10 }
   11 
   12 function skip()
   13 {
   14     [ -n "$1" ] && echo "$1"
   15     exit 77
   16 }
   17 
   18 test -d $DIR || fail "Directory $DIR is missing."
   19 test -f $FILE || skip "WARNING: Shared $FILE is missing, test skipped."
   20 
   21 ./all-symbols-test $FILE $@