#!/bin/sh

set -e

# with apt-eatmydata
strace -ff -oapt-eatmydata.trace apt-get install -y hello
! grep ^fsync apt-eatmydata.trace*

apt-get -y purge apt-eatmydata

# without apt-eatmydata
strace -ff -oapt-eatmydata.trace apt-get install --reinstall hello
grep ^fsync apt-eatmydata.trace*
