mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 19:02:09 +00:00
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>
15 lines
367 B
Bash
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"
|