]> git.proxmox.com Git - pve-common.git/blobdiff - test/Makefile
tests: allow to make tests in parallel
[pve-common.git] / test / Makefile
index b6fe6e0c4a771912e66f4aa8b350d1b7856af348..4467f5bccf235044f88c8f0fe849990df367c242 100644 (file)
@@ -4,12 +4,13 @@ all:
 
 .PHONY: check install clean distclean
 
-check:
+export PERLLIB=../src
+
+check: lock_file.test calendar_event_test.test convert_size_test.test
        for d in $(SUBDIRS); do $(MAKE) -C $$d check; done
-       ./lock_file.pl
-       ./calendar_event_test.pl
-       ./convert_size_test.pl
 
-install: check
+%.test: %.pl
+       ./$<
+
 distclean: clean
 clean: