#!/bin/sh 

rm -rf allout.cn allout.sha

env runall run > allout.sha
env ABAC_CN=1 runall run > allout.cn
result=`diff allout.cn allout.save`

if [ "$result" = "" ]; then
   echo "...no changes..."
else
   echo "!!!got changes!!!"
fi

## special case, run a python in one of the directory
echo "...special python test on access_rt2_typed..."
cd access_rt2_typed
cmd1=`grep "cmd1:" query.py |sed "s/cmd1://g" `
cmd2=`grep "cmd2:" query.py |sed "s/cmd2://g" `

echo '----------'
echo $cmd1
echo '----------'
eval $cmd1
echo '----------'
echo $cmd2
echo '----------'
eval $cmd2
