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

Sven-Hendrik Haase svenstaro at archlinux.org
Sat Mar 14 16:01:35 UTC 2020


    Date: Saturday, March 14, 2020 @ 16:01:34
  Author: svenstaro
Revision: 597007

Add check() with cargo test

Modified:
  sd/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-14 15:42:48 UTC (rev 597006)
+++ PKGBUILD	2020-03-14 16:01:34 UTC (rev 597007)
@@ -16,6 +16,11 @@
   cargo build --release --locked
 }
 
+check() {
+  cd "$pkgname-$pkgver"
+  cargo test --release --locked
+}
+
 package() {
   install -Dm755 "$pkgname-$pkgver/target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
   install -Dm644 "$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"



More information about the arch-commits mailing list