stamp make submit with who ran it, when, and how long regress took
Co-Authored-By: wade-ai <[email protected]>
This commit is contained in:
@@ -13,3 +13,4 @@ sim/behav/WORKSPACE/
|
|||||||
# Submission packaging
|
# Submission packaging
|
||||||
*-dd-fall26.zip
|
*-dd-fall26.zip
|
||||||
regress.log
|
regress.log
|
||||||
|
submission.stamp
|
||||||
|
|||||||
@@ -70,13 +70,14 @@ submit:
|
|||||||
exit 2; \
|
exit 2; \
|
||||||
fi
|
fi
|
||||||
@submission="$$(printf '%s' "$$MEMBER_NAME" | tr -d "[:space:]'.,-")-$(strip $(GT_USERNAME))-$(strip $(DISCORD_NAME))-dd-fall26.zip"; \
|
@submission="$$(printf '%s' "$$MEMBER_NAME" | tr -d "[:space:]'.,-")-$(strip $(GT_USERNAME))-$(strip $(DISCORD_NAME))-dd-fall26.zip"; \
|
||||||
rm -f "$$submission" regress.log .regress_status; \
|
rm -f "$$submission" regress.log submission.stamp; \
|
||||||
{ $(MAKE) --no-print-directory regress; echo $$? > .regress_status; } 2>&1 | tee regress.log; \
|
scripts/sjstamp submission.stamp regress.log src sim/behav/Include tests -- $(MAKE) --no-print-directory regress; \
|
||||||
zip -qr "$$submission" src sim/behav/Include tests regress.log \
|
status=$$?; \
|
||||||
|
if [ $$status -eq 125 ]; then echo "Could not stamp the submission, nothing was zipped."; exit 1; fi; \
|
||||||
|
zip -qr "$$submission" src sim/behav/Include tests regress.log submission.stamp \
|
||||||
-x '*.DS_Store' 'tests/*/program.o' 'tests/*/program.hex' 'tests/*/sim.log'; \
|
-x '*.DS_Store' 'tests/*/program.o' 'tests/*/program.hex' 'tests/*/sim.log'; \
|
||||||
echo "----------------------------------------"; \
|
echo "----------------------------------------"; \
|
||||||
if [ "$$(cat .regress_status)" != "0" ]; then echo "WARNING: not all tests pass, see regress.log"; fi; \
|
if [ $$status -ne 0 ]; then echo "WARNING: not all tests pass, see regress.log"; fi; \
|
||||||
rm -f .regress_status; \
|
|
||||||
echo "Wrote $$submission"
|
echo "Wrote $$submission"
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|||||||
Executable
BIN
Binary file not shown.
Reference in New Issue
Block a user