summaryrefslogtreecommitdiff
path: root/tests.build/build-system-autotools.script
diff options
context:
space:
mode:
Diffstat (limited to 'tests.build/build-system-autotools.script')
-rwxr-xr-xtests.build/build-system-autotools.script21
1 files changed, 13 insertions, 8 deletions
diff --git a/tests.build/build-system-autotools.script b/tests.build/build-system-autotools.script
index 710a8f98..a421eaeb 100755
--- a/tests.build/build-system-autotools.script
+++ b/tests.build/build-system-autotools.script
@@ -18,8 +18,20 @@
## Convert the hello-chunk project to something autotools-like, then
## build it.
+## The 'autotools' build system is defined in the DEFAULTS file created
+## by the 'setup' script.
+
set -eu
+morphsrepo="$DATADIR/morphs-repo"
+cd "$morphsrepo"
+
+cat <<EOF >> hello.morph
+build-system: autotools
+configure-commands: []
+EOF
+git commit --quiet --all -m "Make hello into an autotools project"
+
chunkrepo="$DATADIR/chunk-repo"
cd "$chunkrepo"
@@ -35,14 +47,7 @@ install: all
EOF
git add Makefile
-cat <<EOF > hello.morph
-name: hello
-kind: chunk
-build-system: autotools
-configure-commands: []
-EOF
-git add hello.morph
-git commit --quiet -m "Convert hello to an autotools project"
+git commit --quiet -m "Make hello a real autotools project"
"$SRCDIR/scripts/test-morph" build-morphology \
test:morphs-repo master hello-system