#!/bin/sh
# Run the examples from the man pages. Assumes $ADTTMP is set, see
# /usr/share/doc/autopkgtest/README.package-tests.gz
set -e

# Copy the example data to $ADTTMP, and run the examples.
cp example.txt "$ADTTMP"
cd "$ADTTMP"

mpi_kmeans --k 2 --data example.txt --output clusters.txt
mpi_assign --data example.txt --cluster clusters.txt --assignment assignment.txt
