blob: a751b7f20eae43cb227123c7bec9abe70f19bec3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/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"
|