File: run-em.py

package info (click to toggle)
empy 4.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 808 kB
  • sloc: python: 7,673; sh: 22; makefile: 6
file content (17 lines) | stat: -rwxr-xr-x 483 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
# autopkgtest check: Build and run a program against glib, to verify that the
# headers and pkg-config file are installed correctly
# (C) 2024 Jose Luis Rivero
# Author: Jose Luis Rivero <jrivero@osrfoundation.org>

exec 2>&1
set -ex
trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM
DEBIAN_DIR=$(pwd)/debian
cp ${DEBIAN_DIR}/sample.* ${AUTOPKGTEST_TMP}/
cd ${AUTOPKGTEST_TMP}
if em.py sample.em | diff -u sample.bench -; then
  echo "empy call ok"
else
  exit 1
fi