10 pkgid=scriptrunner-1.0-1
14 cd tmp 2>/dev/null || bailout "can't cd to tmp"
17 require zpm newpackage -f $PF $pkgid
19 tryrun -v zpm script -f $PF -s -p configure scriptrunner-1.0-1 /bin/false
20 zpm script -f $PF -p configure -r scriptrunner-1.0-1 2>&1
21 failsok failure script fails
23 zpm script -f $PF -p nosuchphase -r -F scriptrunner-1.0-1 2>/dev/null
24 failsok required non-existing script fails
31 tryrun zpm script -f $PF -s -p configure scriptrunner-1.0-1 script
33 first=$(zpm script -f $PF -p configure -r -o - scriptrunner-1.0-1)
34 okexit first arg script
35 okstreq "$first" "scriptrunner-1.0-1" "first arg value"
42 tryrun zpm script -s -f $PF scriptrunner-1.0-1 script
43 second=$(zpm script -f $PF -p configure -o - scriptrunner-1.0-1 secondarg)
44 okexit second arg script
45 okstreq "$second" "secondarg" "second arg value"