sanitycheck: don't generate the top-level Makefile in random order

Also add a "generated by sanitycheck" header to indicate origin and a
warning about the dependency required to actually run the test.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2019-03-20 13:58:55 -07:00 committed by Anas Nashif
parent d83f926c38
commit 6f011c95c4

View file

@ -1325,9 +1325,11 @@ class MakeGenerator:
# Create our dynamic Makefile and execute it.
# Watch stderr output which is where we will keep
# track of build state
for name, goal in self.goals.items():
tf.write('\n# Generated by %s which is expected\n' % __file__)
tf.write('# to spawn qemu or testbinary, renode, etc. \n\n')
for name, goal in sorted(self.goals.items()):
tf.write(goal.text)
tf.write("all: %s\n" % (" ".join(self.goals.keys())))
tf.write("all: %s\n" % (" ".join(sorted(self.goals.keys()))))
tf.flush()
cmd = ["make", "-k", "-j", str(JOBS), "-f", tf.name, "all"]