Debian Codegraph @

debian/tests/smoke

raw
1 #!/bin/sh
2 set -e
3
4 echo "=== bstring pkg-config sanity ==="
5 pkg-config --modversion bstring
6 pkg-config --cflags bstring
7 pkg-config --libs bstring
8
9 echo "=== compile and link ==="
10 cd "$AUTOPKGTEST_TMP"
11 cat > smoke.c << 'EOF'
12 #include <bstrlib.h>
13 int main(void) {
14 bstring b = bfromcstr("hello");
15 if (!b) return 1;
16 bdestroy(b);
17 return 0;
18 }
19 EOF
20 gcc -o smoke smoke.c $(pkg-config --cflags --libs bstring)
21 ./smoke
22 echo "bstring smoke test PASS"
23