about summary refs log tree commit diff stats
path: root/subx/test_apps
diff options
context:
space:
mode:
Diffstat (limited to 'subx/test_apps')
-rwxr-xr-xsubx/test_apps10
1 files changed, 10 insertions, 0 deletions
diff --git a/subx/test_apps b/subx/test_apps
index 10b6869b..068712a7 100755
--- a/subx/test_apps
+++ b/subx/test_apps
@@ -10,6 +10,8 @@ test `uname` = 'Linux'  &&  echo 'testing native runs as well'
 
 CFLAGS=$CFLAGS ./build
 
+echo "== translating and running using C++"
+
 echo ex1
 ./subx translate examples/ex1.subx  -o examples/ex1
 [ "$1" != record ]  &&  git diff --exit-code examples/ex1
@@ -224,4 +226,12 @@ test `uname` = 'Linux'  &&  {
   echo
 }
 
+echo "== translating using SubX"
+
+echo ex1
+cat examples/ex1.subx |subx_bin run apps/dquotes |subx_bin run apps/assort |subx_bin run apps/pack |subx_bin run apps/survey |subx_bin run apps/hex |diff examples/ex1 -
+test `uname` = 'Linux'  &&  {
+  cat examples/ex1.subx |apps/dquotes |apps/assort |apps/pack |apps/survey |apps/hex |diff examples/ex1 -
+}
+
 exit 0