mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-30 03:34:25 +03:00
Initial attempt at debian packaging, modified hyperscan packaging
This commit is contained in:
21
debian/tests/build-lib
vendored
Executable file
21
debian/tests/build-lib
vendored
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
# autopkgtest check: Build a program against libhyperscan and check whether a
|
||||
# runnable binary is produced.
|
||||
# Author: Sascha Steinbiss <satta@debian.org>
|
||||
set -e
|
||||
|
||||
SRC=$(pwd)/examples/simplegrep.c
|
||||
RES=$(pwd)/debian/tests/simplegrep.result
|
||||
WORKDIR=$(mktemp -d)
|
||||
|
||||
trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
|
||||
cd $WORKDIR
|
||||
|
||||
gcc -o simplegrep $SRC $(pkg-config --cflags --libs libhs)
|
||||
[ -x simplegrep ]
|
||||
echo "build: OK"
|
||||
|
||||
echo "barbaz" > 1
|
||||
./simplegrep ba 1 > 2
|
||||
diff 2 $RES
|
||||
echo "run: OK"
|
2
debian/tests/control
vendored
Normal file
2
debian/tests/control
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
Tests: build-lib
|
||||
Depends: build-essential, pkg-config, @
|
3
debian/tests/simplegrep.result
vendored
Normal file
3
debian/tests/simplegrep.result
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
Scanning 7 bytes with Hyperscan
|
||||
Match for pattern "ba" at offset 2
|
||||
Match for pattern "ba" at offset 5
|
Reference in New Issue
Block a user