mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-21 11:30:01 +00:00
Move tests to bash scripts and Makefiles
This commit is contained in:
1 parent
f67e843be6
commit
cd86559685
6 files changed
+59
-27
No files matched your search
+7
-2
@@ -7,18 +7,23 @@ IMAGE ?= scaprile/cubeozone
|
||||
|
||||
all: $(PROJECTS)
|
||||
$(DOCKER) $(IMAGE) $(PATHTO)headless-build.sh -data workspace -removeAll workspace
|
||||
$(DOCKER) $(IMAGE) /bin/bash -c "rm -rf workspace/.metadata"
|
||||
|
||||
$(PROJECTS): FORCE
|
||||
(make -C $@ && sudo make -C $@ clean) || ( \
|
||||
COREDIRS=`find $@ -maxdepth 1 -name 'CM*' -print` && ( \
|
||||
(test "$$COREDIRS" = "" && \
|
||||
PROJNAME=`xq -r .projectDescription.name $@/.project` && \
|
||||
$(DOCKER) $(IMAGE) $(PATHTO)headless-build.sh -data workspace -import $@ -cleanBuild $$PROJNAME/$(TARGET) ) || ( \
|
||||
$(DOCKER) $(IMAGE) $(PATHTO)headless-build.sh -data workspace -import $@ -cleanBuild $$PROJNAME/$(TARGET) && \
|
||||
$(DOCKER) $(IMAGE) $(PATHTO)headless-build.sh -data workspace -remove $@ && \
|
||||
$(DOCKER) $(IMAGE) /bin/bash -c "rm -rf $@/.settings $@/$(TARGET)") || ( \
|
||||
(test "$$COREDIRS" != "" && \
|
||||
for core in $$COREDIRS; do \
|
||||
DIR=`basename $$core` \
|
||||
PROJNAME=`xq -r .projectDescription.name $@/$$DIR/.project` && \
|
||||
$(DOCKER) $(IMAGE) $(PATHTO)headless-build.sh -data workspace -import $@/$$DIR -cleanBuild $$PROJNAME/$(TARGET) || exit 1; \
|
||||
$(DOCKER) $(IMAGE) $(PATHTO)headless-build.sh -data workspace -import $@/$$DIR -cleanBuild $$PROJNAME/$(TARGET) && \
|
||||
$(DOCKER) $(IMAGE) $(PATHTO)headless-build.sh -data workspace -remove $@/$$DIR && \
|
||||
$(DOCKER) $(IMAGE) /bin/bash -c "rm -rf $@/$$DIR/.settings $@/$$DIR/Drivers $@/$$DIR/Middlewares $@/$$DIR/$(TARGET)" || exit 1; \
|
||||
done ))))
|
||||
|
||||
FORCE:
|
||||
Reference in new issue
Block a user