From c519b6fe9e9ac89173c0cf4170c7725ea09e2d6e Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 12 Aug 2018 19:13:48 -0700 Subject: 4510 - check manual examples in CI --- subx/test_layers | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'subx') diff --git a/subx/test_layers b/subx/test_layers index e198a8d0..4ba619a5 100755 --- a/subx/test_layers +++ b/subx/test_layers @@ -1,9 +1,21 @@ #!/bin/bash # Repeatedly stop building until successive layers, and run all tests built. +set -e + cd `dirname $0` for f in [0-9]* do echo "=== $f" ./build_and_test_until $f || exit 1 done + +clean top +for f in ex*.subx +do + echo checking $f + target=`echo $f |sed 's/\..*//'` + CFLAGS=-g ./subx translate $f $target + git diff --quiet $target || exit 1 + echo $target generated as expected +done -- cgit 1.4.1-2-gfad0