#!/bin/sh

set -e

cd $AUTOPKGTEST_TMP
mkdir -p "proj/foo/src"
mkdir -p "proj/bar/src"
mkdir -p "proj/alpha/docs"

wcd.exec -S "proj"
wcd.exec -o foo | grep "foo"

mkdir -p "proj/beta"
cd "proj/beta"
wcd.exec -a
wcd.exec -o beta | grep -q "beta"
