From a5710fce21c0a2663ae087a29a234c88604d755d Mon Sep 17 00:00:00 2001 From: Olivia Appleton Date: Thu, 18 Jul 2024 22:59:22 -0500 Subject: [PATCH] global `make test` will no longer fail on termux --- csharp/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/csharp/Makefile b/csharp/Makefile index e4a9292e..47663da4 100644 --- a/csharp/Makefile +++ b/csharp/Makefile @@ -1,3 +1,4 @@ +NOT_TERMUX?=$(shell command -v termux-setup-storage > /dev/null 2>&1 ; echo $$?) BLUE=\033[0;34m NC=\033[0m # No Color COV?=false @@ -18,13 +19,19 @@ clean: dotnet clean || rm ./*/{bin,obj,TestResults} || echo test: dependencies +ifneq ($(NOT_TERMUX),0) dotnet test --nologo $(cov_args) +endif test_%: dependencies $(MAKE) test $(MFLAGS) dependencies: +ifneq ($(NOT_TERMUX),0) dotnet restore +endif lint: +ifneq ($(NOT_TERMUX),0) dotnet format --verify-no-changes +endif