#!/bin/sh g_cmd_cn=`grep "cmd1:" attr.py |sed "s/cmd1://g" ` echo '---setup principals' ./setup.py 1>attr.log 2>&1 echo '---run command ' eval $g_cmd_cn 1>attr.cn 2>&1 result=`diff attr.cn attr.save 2>/dev/null` if [ $? -eq 0 ]; then if [ "$result" = "" ]; then echo " PASSED" else echo " ERROR:basic_attribute test result differs!!!" fi else echo " ERROR:basic_attribute test result differs!!!" fi