Verified Commit b6f2ee4f authored by Karel Koci's avatar Karel Koci 🤘

tests: add test for --reinstall-all option

Idea of this test is to have two packages providing different file
content with same version. Tested option should ensure that updater
reinstalls package to version provided by repository.
parent 875e1976
......@@ -23,7 +23,8 @@ UPD_SYS_TESTS := \
force-downgrade \
conflicts \
postinst \
reboot-recover-update
reboot-recover-update \
reinstall-all
.PHONY: test-sys valgrind-sys check
......
sed -i -e 's/^Installed-Time: .*/Installed-Time: 0/' "$ROOT_DIR"/usr/lib/opkg/status
rm "$ROOT_DIR"/config
rm -r "$ROOT_DIR"/repo
Repository("test", "./repo")
Install("test-package")
Package: test-package
Version: 1
License: GPL-2.0
Section: none
Architecture: all
Installed-Size: 0
Filename: test-package.ipk
MD5Sum: 3f2a75528d35cc902b14d4b0470a681d
SHA256sum: 2d0c322f094617de6f796885c97d43aa573e07b6dc9188122f340cccb4841516
Description: Test package
Package: test-package
Version: 1
License: GPL-2.0
Section: none
Architecture: all
Installed-Size: 0
Filename: test-package.ipk
MD5Sum: 9c14865a08daedf38d56e2d45673ed00
SHA256sum: 1db38907f3350c46495eb9426a65913701b0cff9ec32047df79bef3d8b33fb98
Description: Test package
Package: test-package
Version: 1
License: GPL-2.0
Section: none
Architecture: all
Installed-Size: 0
Description: Test package
Package: test-package
Version: 1
Status: install user installed
Architecture: all
Installed-Time: 0
Package: test-package
Version: 1
License: GPL-2.0
Section: none
Architecture: all
Installed-Size: 0
Description: Test package
Package: test-package
Version: 1
Status: install user installed
Architecture: all
Installed-Time: 0
file://$ROOT_DIR/config --batch -R "$ROOT_DIR" --reinstall-all
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