Skip to content

Commit

Permalink
Record sha infor during after compile
Browse files Browse the repository at this point in the history
Signed-off-by: Sophia Guo <[email protected]>
  • Loading branch information
sophia-guo committed Jan 7, 2025
1 parent 29909e3 commit 31c392c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
5 changes: 5 additions & 0 deletions compile.mk
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,10 @@ compile:
$(MKTREE) $(COMPILATION_OUTPUT); \
($(COMPILE_CMD) 2>&1; echo $$? ) | tee $(Q)$(COMPILATION_LOG)$(Q); \
$(MOVE_TDUMP)
@$(ECHO_NEWLINE)
@$(ECHO_NEWLINE)
@$(ECHO) $(Q)RECORD TEST REPOs SHA $(Q)
$(CD) $(Q)$(TEST_ROOT)$(D)TKG$(D)scripts$(Q); \
bash $(Q)getSHAs.sh$(Q) --test_root_dir $(Q)$(TEST_ROOT)$(Q) --shas_file $(Q)$(TEST_ROOT)$(D)TKG$(D)SHAs.txt$(Q)

.PHONY: compile
11 changes: 2 additions & 9 deletions settings.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# limitations under the License.
##############################################################################

.PHONY: help rmResultFile shaInfo resultsSummary
.PHONY: help rmResultFile resultsSummary

help:
@echo "This makefile is used to build and execute JVM tests. You should specify the following"
Expand Down Expand Up @@ -364,7 +364,7 @@ $(SUBDIRS_TESTTARGET):

$(TESTTARGET): $(SUBDIRS_TESTTARGET)

_$(TESTTARGET): setup_$(TESTTARGET) rmResultFile $(TESTTARGET) shaInfo resultsSummary teardown_$(TESTTARGET)
_$(TESTTARGET): setup_$(TESTTARGET) rmResultFile $(TESTTARGET) resultsSummary teardown_$(TESTTARGET)
@$(ECHO) $@ done

.PHONY: _$(TESTTARGET) $(TESTTARGET) $(SUBDIRS) $(SUBDIRS_TESTTARGET)
Expand Down Expand Up @@ -443,13 +443,6 @@ endif
rmResultFile:
@$(RM) $(Q)$(TEMPRESULTFILE)$(Q)

shaInfo:
@$(ECHO_NEWLINE)
@$(ECHO_NEWLINE)
@$(ECHO) $(Q)Collect all REPOs sha $(Q)
$(CD) $(Q)$(TEST_ROOT)$(D)TKG$(D)scripts$(Q); \
bash $(Q)getSHAs.sh$(Q) --test_root_dir $(Q)$(TEST_ROOT)$(Q) --shas_file $(Q)$(TEST_ROOT)$(D)TKG$(D)SHAs.txt$(Q)

resultsSummary:
@$(ECHO_NEWLINE)
@$(ECHO_NEWLINE)
Expand Down

0 comments on commit 31c392c

Please sign in to comment.