Commit 743c09f8 authored by Drew's avatar Drew

Prevent default from being shadowed in some cases

parent 1e2a7a26
Pipeline #768 passed with stage
Subproject commit f1681e997c631e1549ac8795a16988ada2b59f6d
Subproject commit 5bca9ce8f7287b307b9989e5d3e7b4a16f633f72
(package
:name "NaOH"
:import ["remote.atpkg"]
:tasks {
:default {
:tool "shell"
:script "exit 1"
:dependencies ["remote.default"]
}
:build-tests {
:tool "shell"
:script "echo build-tests"
:dependencies ["default"]
}
}
)
(package
:name "remote"
:tasks {
:default {
:tool "shell"
:script "echo remote.default"
}
}
)
......@@ -10,14 +10,22 @@ pwd
echo "****************SELF-HOSTING TEST**************"
$ATBUILD atbuild
echo "****************SHADOW TEST*********************"
cd $DIR/tests/fixtures/depend_default
if $ATBUILD build-tests; then
echo "default task was shadowed; expected a failure but got a pass"
exit 1
fi
echo "****************HELP TEST*********************"
if [ $ATBUILD atbuild --help != 1 ]; then
if $ATBUILD atbuild --help; then
echo "Unusual help exit code"
exit 1
fi
echo "*****************XCS TEST**********************"
cd tests/fixtures/xcs && $ATBUILD run-tests
cd $DIR/tests/fixtures/xcs && $ATBUILD run-tests
echo "*****************STRICT CHECKS**********************"
if [ `uname` != "Darwin" ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment