#!/bin/sh

set -e
set -x

test -d "$ADTTMP"
test "$(echo "$ADTTMP"/*)" = "$ADTTMP/*"

install -m644 tests/test_gfshare_blockwise_simple.c "$ADTTMP"/

cd "$ADTTMP"
cc -oblockwise-simple test_gfshare_blockwise_simple.c $(pkg-config --cflags --libs libgfshare)
exec ./blockwise-simple
