# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+set -e
+
goals -f 00-empty-code.gl
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+# Test that goals works with an empty Goalfile (except for the
+# mandatory "all" goal).
+
goal all
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-# Test that goals works with an empty Goalfile (except for the
-# mandatory "all" goal).
+set -e
goals -f 00-empty-goalfile.gl
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+set -e
+
goals -f 00-insert-var.gl > 00-insert-var.out
test "$(cat 00-insert-var.out)" = "RIGHT"
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+# Test a linear dependency graph is built in the right order.
+
goal all = : g1
goal g1 = : g2 { echo "G1" }
goal g2 = : g3 { echo "G2" }
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-# Test a linear dependency graph is built in the right order.
+set -e
goals -f 00-order-linear.gl > 00-order-linear.out
test "$(grep '^G' 00-order-linear.out)" = "G5
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+set -e
+
goals -f 00-override-goal.gl
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+set -e
+
goals -f 00-override-var.gl > 00-override-var.out
test "$(cat 00-override-var.out)" = "RIGHT"