Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Proxies/Buildings/BuildingControlUnit/VWM/BuildingControlTestVwmXml_Nachbarbeitung2021-12-08.sh
T

131 lines
2.2 KiB
Bash
Executable File

#!/bin/sh
rm -v /shd/CTC/LOG/ctc_bcu_1.log*
BLDGS="1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1114 1115 1116 1117 1285 1286 1287 2119 3100 3101 3102 3279 3280 3298 3299 3300 4102 4197 4198 BN_Kanaele U_Bahn"
BLDGS="1111 1112 1113 1118 1119 1120 1121 1122 1123 1124 1125 1128 1130 1132 1134 1136 1138 1140 1142 1163"
BLDGS="1127 1129 1131 1133 1135 1137 1139 1141 1143 1144 1145 1146 1147 1153 1158 1167"
BLDGS="1155 1159 1160 1161 1162 1164 1166 1168 1170 1172 1173"
BLDGS="1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1185 1188 1191 1193 1194 1195 1196 1201 1202 1203 1204 1210 1211"
BLDGS="1213 1215 1216 1217 1218 1219 1220 1221 1222 1223 1225 1226 1227"
BLDGS="1224 1228 1229 1230 1231 1232 1235 1237 1239 1241 1243"
BLDGS="1197 1207 1234 1238 1240 1244 1245 1246 1248 1249 1257 1258 1259"
BLDGS="1165 1208 1209 1212 1236 1253 1260 1261 1262 1265 3103"
BLDGS="1253 1254 1255 1269 1270 1271 1273 1274 1276 1277 1278 1279 1280 1283 3104 3105 3106 3107"
BLDGS="1256 1268 1275 1281 1282 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3121 3122"
BLDGS="1251 1264 3220 3222 3224 3226 3228 3229 3266"
BLDGS="3120 3123 3124 3129 3130 3131 3135 3230 3231 3232 3233 3241 3243 3260 3264 4106 4107 4111 4112 4117 4126 4127 4128 4129 4131 4132 4134 4140 4143 4145"
numOk=0;
numFailure=0;
BLDG_STR="";
for BLDG in ${BLDGS}
do
BLDG_STR="${BLDG_STR} bldg_${BLDG}*"
done
echo " copy and paste template: zip bldgs_2021-XX-XX_rev5000.XXXXX.zip import_baX.csv $BLDG_STR"
for BLDG in ${BLDGS}
do
/shd/CTC/TOOLS/TDS/TDS-build/bin/BuildingControlTestVwmXml /opt/BuildingModels/StaticMeshes/bldg_${BLDG}.flt.xml /opt/BuildingModels/StaticMeshes/bldg_${BLDG}.flt.VWM_Building.xml
if [ $? -eq 0 ];
then
echo "'$BLDG' okay";
((numOk=numOk+1))
else
echo "------------------------------------";
echo " failure on -> '$BLDG' ";
echo " kate /opt/BuildingModels/StaticMeshes/bldg_${BLDG}.flt.xml /opt/BuildingModels/StaticMeshes/bldg_${BLDG}.flt.VWM_Building.xml &"
((numFailure=numFailure+1))
fi
echo "grep for '$BLDG':";
grep -E "WARN|ERROR|FATAL" /shd/CTC/LOG/ctc_bcu_1.log* | grep $BLDG
done
echo " numOk = $numOk ";
echo " numFailure = $numFailure ";