Files
packages/lang/python/python-userpath/test.sh
Alexandru Ardelean 5358179573 python-userpath: bump to 1.9.2
Full release notes:
https://github.com/ofek/userpath/releases/tag/v1.9.2

Add a bit more testing.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-03-18 12:03:04 +02:00

15 lines
367 B
Bash

#!/bin/sh
[ "$1" = python3-userpath ] || exit 0
# Test version
userpath --version | grep -Fx "userpath, version $PKG_VERSION"
# Test append and prepend (changes take effect after shell restart,
# so only check that the commands succeed)
TEST_DIR="/tmp/userpath-test-$$"
userpath append "$TEST_DIR"
TEST_DIR2="/tmp/userpath-test2-$$"
userpath prepend "$TEST_DIR2"