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:
Wade Tran
2026-09-17 13:44:03 -04:00
co-authored by wade-ai
parent 6d812677d4
commit c02b6708f1
3 changed files with 7 additions and 5 deletions
+1
View File
@@ -13,3 +13,4 @@ sim/behav/WORKSPACE/
# Submission packaging # Submission packaging
*-dd-fall26.zip *-dd-fall26.zip
regress.log regress.log
submission.stamp
+6 -5
View File
@@ -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:
BIN
View File
Binary file not shown.