Skip to content

Commit

Permalink
flamelens-git: add check
Browse files Browse the repository at this point in the history
  • Loading branch information
RiverOnVenus committed Jul 2, 2024
1 parent c5b38fa commit 0eb40d6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion flamelens-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Maintainer: RiverOnVenus <error@zhui.dev>
pkgname=flamelens-git
pkgver=0.1.0.r4.g22d978f
pkgver=0.1.0.r5.ge15be2f
pkgrel=1
pkgdesc="Flamegraph viewer in the terminal"
arch=('x86_64')
Expand Down Expand Up @@ -34,6 +34,11 @@ build() {
cargo build --frozen --release --all-features
}

check() {
cd $pkgname
cargo test --frozen
}

package() {
install -Dm0755 -t "$pkgdir/usr/bin/" "$pkgname/target/release/flamelens"
install -Dm644 "$srcdir/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
Expand Down

0 comments on commit 0eb40d6

Please sign in to comment.