]> git.proxmox.com Git - proxmox-perl-rs.git/commitdiff
pve: update testcase PVE.pm with fixed library path
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 18 Dec 2023 09:39:30 +0000 (10:39 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 18 Dec 2023 09:39:30 +0000 (10:39 +0100)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
pve-rs/Makefile

index 5e44ebe9d3ad03b9f22aa71cfe3f6c70aa86ffe3..53b73b5b396d7586d890e80dbaf911ec910eb335 100644 (file)
@@ -43,7 +43,7 @@ all: PVE
        cargo build $(CARGO_BUILD_ARGS)
        mkdir -p test/Proxmox/Lib
        sed -r -e \
-         's@^sub libdirs.*$$@sub libdirs { return ("./target/$(TARGET_DIR)", "./../target/$(TARGET_DIR)"); }@' \
+         's@^sub libfile.*$$@sub libfile { "$(shell pwd)/target/$(TARGET_DIR)/libpve_rs.so"; }@' \
          Proxmox/Lib/PVE.pm >test/Proxmox/Lib/PVE.pm
 
 Proxmox PVE: Proxmox/Lib/PVE.pm