[arch-commits] Commit in xplr/trunk (PKGBUILD)

Maxim Baz maximbaz at archlinux.org
Mon Jul 5 16:43:25 UTC 2021


    Date: Monday, July 5, 2021 @ 16:43:25
  Author: maximbaz
Revision: 972438

xplr: run tests in debug mode

Modified:
  xplr/trunk/PKGBUILD

----------+
 PKGBUILD |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-07-05 16:42:18 UTC (rev 972437)
+++ PKGBUILD	2021-07-05 16:43:25 UTC (rev 972438)
@@ -23,7 +23,11 @@
 
 check() {
   cd "$pkgname-$pkgver"
-  cargo test --locked --release
+
+  # unit tests need the binary, so build it first.
+  # building in debug mode (both bin and tests) in order to not overwrite the binary produced in build() that we will later package
+  cargo build --locked 
+  cargo test --locked
 }
 
 package() {




More information about the arch-commits mailing list