#!/bin/sh
# Test that gsimplecal start, then stop when run a second time.

set -e

# Start gsimplecal.
xvfb-run -a gsimplecal &

# Give it time to start.
sleep 2

# Run again to close it.
gsimplecal

# Wait for xvfb-run.
wait %1
