proxmox-perl-rs/pve-rs/test/Makefile
Wolfgang Bumiller 13e3d8b87e pve: build test stub of Proxmox::Lib::PVE for tests
this replaces the libdirs() sub with one containing:
- ../target (for when run from build/pve-rs)
- ../../target (for when run from toplevel/pve-rs

This way we can run 'make check' both from within `pve-rs`
as well as from the package building process.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-11-15 13:42:18 +01:00

10 lines
272 B
Makefile

.PHONY: test
test: Proxmox/Lib/PVE.pm
@echo "-- running pve-rs tests --"
perl -I. -I.. -I../.. ./resource_scheduling.pl
# The test stub, we don't know where to look for the library from in here!
Proxmox/Lib/PVE.pm:
@echo "run 'make' in the pve-rs/ dir first"
@exit 1