Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/littlefs-project/littlefs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Haster <chaster@utexas.edu>2020-12-20 11:03:20 +0300
committerChristopher Haster <chaster@utexas.edu>2021-01-10 08:42:49 +0300
commitb2235e956dda7e69fc9048c1768fcfce45c913b9 (patch)
treed9853565bcde344817cc5919bf6536383e9c734a /scripts
parentd804c2d3b7389b6508993223f797d84720803c6c (diff)
Added GitHub workflows to run tests
Mostly taken from .travis.yml, biggest changes were around how to get the status updates to work. We can't use a token on PRs the same way we could in Travis, so instead we use a second workflow that checks every pull request for "status" artifacts, and create the actual statuses in the "workflow_run" event, where we have full access to repo secrets.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/code.py (renamed from scripts/code_size.py)2
-rwxr-xr-xscripts/test.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/code_size.py b/scripts/code.py
index da2dee8..46459a5 100755
--- a/scripts/code_size.py
+++ b/scripts/code.py
@@ -40,7 +40,7 @@ $(foreach target,$(SRC),$(eval $(FLATTEN)))
-include %(sizedir)s/*.d
.SECONDARY:
-%%.size: $(foreach t,$(subst /,.,$(SRC:.c=.size)),%%.$t)
+%%.size: $(foreach t,$(subst /,.,$(OBJ:.o=.size)),%%.$t)
cat $^ > $@
"""
CATS = {
diff --git a/scripts/test.py b/scripts/test.py
index e5869c2..0ed2099 100755
--- a/scripts/test.py
+++ b/scripts/test.py
@@ -31,7 +31,7 @@ $(foreach target,$(SRC),$(eval $(FLATTEN)))
-include tests/*.d
.SECONDARY:
-%.test: %.test.o $(foreach f,$(subst /,.,$(SRC:.c=.o)),%.$f)
+%.test: %.test.o $(foreach f,$(subst /,.,$(OBJ)),%.$f)
$(CC) $(CFLAGS) $^ $(LFLAGS) -o $@
"""
GLOBALS = """
@@ -771,7 +771,7 @@ if __name__ == "__main__":
help="Run reentrant tests with simulated power-loss.")
parser.add_argument('-V', '--valgrind', action='store_true',
help="Run non-leaky tests under valgrind to check for memory leaks.")
- parser.add_argument('-e', '--exec', default=[], type=lambda e: e.split(' '),
+ parser.add_argument('-e', '--exec', default=[], type=lambda e: e.split(),
help="Run tests with another executable prefixed on the command line.")
parser.add_argument('-d', '--disk',
help="Specify a file to use for persistent/reentrant tests.")