Skip to content

Commit ca258ee

Browse files
committed
Updated Makefile target
Signed-off-by: Zaiba Sanglikar <[email protected]>
1 parent 721f378 commit ca258ee

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,17 @@ remove_lib_wrapped:
307307
remove_locales_wrapped:
308308
for f in $(LANGUAGES); do $(RM) $(DESTDIR)$(LOCALEDIR)/$$f/LC_MESSAGES/$(PACKAGE).mo; done
309309

310+
check:
311+
@echo "Running tests..."
312+
# Set LD_LIBRARY_PATH to include the current directory
313+
@export LDFLAGS="-Wl,-rpath,$(CURDIR)"; \
314+
export LD_LIBRARY_PATH=$(CURDIR):$$LD_LIBRARY_PATH; \
315+
for test in tests/*.sh; do \
316+
echo "Executing $$test..."; \
317+
bash $$test || echo "$$test failed"; \
318+
done
319+
@echo "Tests completed!"
320+
310321
clean:
311322
$(RM) $(PROJ) $(POTFILE) $(MOFILES) *.o
312323

0 commit comments

Comments
 (0)