| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
set -ex |
| 4 |
|
| 5 |
# rebuild, enabling the nist tests |
| 6 |
dh_auto_clean |
| 7 |
dh_autoreconf_clean |
| 8 |
dh_autoreconf |
| 9 |
dh_auto_configure -- --enable-nistest=yes |
| 10 |
|
| 11 |
# test installed haveged, not built one |
| 12 |
rm -f src/haveged |
| 13 |
# we unfortunately can't use a symlink to also test apparmor confinement, |
| 14 |
# because our apparmor profile doesn't let us rw to *any* files, and by |
| 15 |
# default haveged writes its random data to './sample'; so just copy |
| 16 |
# the installed file into the build tree, for the ent/nist tests to use |
| 17 |
cp /usr/sbin/haveged src/haveged |
| 18 |
|
| 19 |
make -C ent check |
| 20 |
make -C nist check |