-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test/unit: update for cross-arch testing
Bump the submodule reference and modify the unit test Makefile to check all supported architectures. Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
- Loading branch information
1 parent
66eb42e
commit 3b8e0a1
Showing
2 changed files
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
ARCH = $(shell uname -m) | ||
OBJDIR ?= objs/$(ARCH) | ||
ARCHES ?= ppc64le x86_64 | ||
|
||
.PHONY: all clean | ||
.PHONY: all clean submodule-check | ||
|
||
all: Makefile.include | ||
all: $(addsuffix -test,$(ARCHES)) | ||
clean: $(addsuffix -clean,$(ARCHES)) | ||
|
||
submodule-check: | ||
@cd $(shell git rev-parse --show-toplevel) && \ | ||
git diff-index --quiet HEAD test/unit/objs || \ | ||
echo -e "\nWARNING: unit tests are out of date - run \"git submodule update\"\n" | ||
$(MAKE) -C $(OBJDIR) | ||
|
||
clean: Makefile.include | ||
if [ -d $(OBJDIR) ]; then $(MAKE) -C $(OBJDIR) clean; fi | ||
%-test: Makefile.include submodule-check | ||
$(MAKE) -C objs/$* | ||
|
||
%-clean: Makefile.include | ||
if [ -d objs/$* ]; then $(MAKE) -C objs/$* clean; fi |
Submodule objs
updated
3 files
+9 −14 | ppc64le/mcount_loc-issue-1102.test | |
+8 −14 | x86_64/mcount_loc-issue-1102.test | |
+4 −4 | x86_64/zero-page-rela-issue-1064.test |