Verified Commit 92f3cce4 authored by Karel Koci's avatar Karel Koci 🤘

Add system test replan-no-effect

This tests that even if won't do any changes after replan that we will
rin postupdate hooks.
parent 554d9c7b
......@@ -19,6 +19,7 @@ UPD_SYS_TESTS := \
provides-replace \
abi-change \
replan \
replan-no-effect \
list-dir \
force-downgrade \
conflicts \
......
sed -i -e 's/^Installed-Time: .*/Installed-Time: 0/' "$ROOT_DIR"/usr/lib/opkg/status
sed -i -e 's/^[^\t]*/0/' "$ROOT_DIR"/task-log
rm "$ROOT_DIR"/config
rm -r "$ROOT_DIR"/repo
Repository("test", "file://%ROOT_DIR%/repo")
Package("package", {replan = true})
Install("package")
#!/bin/sh
echo "Hooked" > "$(dirname "$0")/../../../postupdate_hooked"
#!/bin/sh
# This is not set as exectuable and shouldn't be called.
echo "Hooked" > "$(dirname "$0")/../../../postupdate_not_hooked"
#!/bin/sh
echo Test package installed
#!/bin/sh
echo "Hooked" > "$(dirname "$0")/../../../postupdate_hooked"
#!/bin/sh
# This is not set as exectuable and shouldn't be called.
echo "Hooked" > "$(dirname "$0")/../../../postupdate_not_hooked"
0 TRANSACTION START
0 install 1 package
Package: package
Version: 1
License: GPL-2.0
Section: none
Architecture: all
Installed-Size: 0
Description: Example package
5c882e08c22eff0b47cebdd3a0e08fbd /etc/testpkg.conf
94b4328b23216741bbcccae14460a00b /bin/testpkg
Package: package
Version: 1
Status: install user installed
Architecture: all
Conffiles:
/etc/testpkg.conf e27123cf80e763aba0abbf86a0588f6e0f83aecd0765a911d4ad8ca95f003ffe
Installed-Time: 0
file://$ROOT_DIR/config --batch -R "$ROOT_DIR" --task-log="$ROOT_DIR/task-log"
sed -i -e "s#%ROOT_DIR%#$ROOT_DIR#" $ROOT_DIR/config
export PATH=$ROOT_DIR/bin:$PATH
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment