]> git.proxmox.com Git - pve-common.git/commitdiff
tests: allow to make tests in parallel
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 23 Nov 2019 11:14:19 +0000 (12:14 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 23 Nov 2019 11:14:19 +0000 (12:14 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
test/Makefile

index b6fe6e0c4a771912e66f4aa8b350d1b7856af348..4467f5bccf235044f88c8f0fe849990df367c242 100644 (file)
@@ -4,12 +4,13 @@ all:
 
 .PHONY: check install clean distclean
 
 
 .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
        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:
 distclean: clean
 clean: