You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
updated vqm2blif test script to now allow input flags and provide usage information. The script now also supports creating a new set of golden netlists (instead of testing).
# start by going through the user supplied directory and identify all the .vqm files. We will recursively go throught the directory and identify these .vqm files. We assume that any file found is going to be a test file.
#echo "Number of differences: $NUM_OF_DIFFERENCES"
@@ -125,6 +248,7 @@ do
125
248
diff $GOLDEN_BLIF_OUTPUT$VQM_OUTPUT
126
249
127
250
exit 1
251
+
128
252
fi
129
253
130
254
# uncomment for debugging
@@ -142,14 +266,35 @@ if [ $? -eq 1 ]; then
142
266
# if we are here then the test failed, so update the test status with an error code
143
267
TEST_STATUS=1
144
268
269
+
# delete the blif files generated if there was an error
270
+
# this is for the case where golden blif files are generated
271
+
find $TEST_FOLDER -name "*$VQM_OUTPUT_EXT" -type f -delete
272
+
145
273
else
146
274
147
-
# if we are here then the test passed, so report to the user (no need to update the test status)
148
-
echo"VQM2BLIF Checks Successfully Passed!"
275
+
# if we are here then the test passed or the golden blif netlists were successfully generated, so report to the user (no need to update the test status)
276
+
277
+
if [ $GEN_GOLDEN-eq 0 ];then
278
+
279
+
# case where we are testing
280
+
echo"VQM2BLIF Checks Successfully Passed!"
281
+
282
+
else
283
+
284
+
# case where we are generating a set of golden blif outputs
285
+
echo"VQM2BLIF has Successfully created all golden blif netlists!"
286
+
287
+
fi
149
288
fi
150
289
151
-
#find all the newly created blif files above (used for verification) and delete them (don't need them anymore)
152
-
find $TEST_FOLDER -name "*$VQM_OUTPUT_EXT" -type f -delete
290
+
# find all the newly created blif files above (used for verification) and delete them (don't need them anymore)
291
+
# we only delete the generated blif files if we are testing, when we are generating a new set of golden blif outputs, we do not want to delete them
292
+
293
+
if [ $GEN_GOLDEN-eq 0 ];then
294
+
295
+
find $TEST_FOLDER -name "*$VQM_OUTPUT_EXT" -type f -delete
296
+
297
+
fi
153
298
154
299
# exit with the status of the test (failure=1 and pass=0)
0 commit comments