tests/frontend/buildcheckout.py: Testing strict/non-strict scenario

Added a test to check the expected behaviors after building and changing
the strictness of a dependency in the build graph.

This ensures stronger reliability of the behavior change resulting from
the fix of #1270
6 files changed