Verified Commit e44d3280 authored by Karel Koci's avatar Karel Koci 🤘
Browse files

tests/system/simple-upgdate: check if scripts are correctly invoked

This simply adds these script to dep-package as well as to test-package.
It is nice test for this as one package is newly installed and another
is only upgraded.
parent 15b93504
Pipeline #78231 passed with stages
in 15 minutes and 48 seconds
......@@ -6,8 +6,8 @@ Section: none
Architecture: all
Installed-Size: 24000
Filename: dep-package.ipk
MD5Sum: 9fb97534d5b55bba02865f6308a337f1
SHA256sum: 8f1a5294ca1b55a53d206c3f1f646e8ac345d4b36fc7f22ee693a11e1d69affc
MD5Sum: 7ef2e6aa88fffff3058ae52aeafec373
SHA256sum: faf4797c982bcfad7b6c954db8e42effb44fb5007d0c3d79de4f2d12b12cc7dc
Description: Test dependency package. Nothing special here.
Package: test-package
......@@ -19,7 +19,7 @@ Section: none
Architecture: all
Installed-Size: 24000
Filename: test-package.ipk
MD5Sum: 4ab0046955fe9a2a4092530d4c7cd25b
SHA256sum: 3299c980957e24a2bc291caac29e968b1f5c8c4107bc7475e034168f60ddfdf0
MD5Sum: a61dc2e35a29f904d5afda8d1067fade
SHA256sum: a08b5a82dc7d1a737e526bb7ed41141ea78bb9679369dee9b54e910a774cf4d8
Description: Test package. Nothing special here.
a00c1c49dd8ee5c8bd3bec6d9f61b7f67431977ac33ec030c4349e8f3be5a54c /usr/bin/test-dep.sh
#!/bin/sh
mkdir -p "$PKG_ROOT/pkgscripts"
{
echo "$@"
echo "PKG_UPGRADE=$PKG_UPGRADE"
} >>"$PKG_ROOT/pkgscripts/dep-postinst"
#!/bin/sh
mkdir -p "$PKG_ROOT/pkgscripts"
{
echo "$@"
echo "PKG_UPGRADE=$PKG_UPGRADE"
} >>"$PKG_ROOT/pkgscripts/dep-preinst"
247ae032781c4fee04eb792f810f4763 /etc/test/better-test-config
8e3a932a1a6231a321aef54c66a5185a /usr/share/test
94addd51a7efec8c4d9203f5c14d9471 /usr/bin/test.sh
caf8e11c60290080a1182ecc9b3f8c73dd520084421a4ffe3002bfdec7d11008 /etc/test/better-test-config
97adcb926420b776c31e559b0ff7ed6171b34a946d638beab011419cc1c65255 /usr/share/test
e4a91cd89923f1a75b27d177b368fae07d982f3ac675b8147b8cdc621a768130 /usr/bin/test.sh
#!/bin/sh
mkdir -p "$PKG_ROOT/pkgscripts"
{
echo "$@"
echo "PKG_UPGRADE=$PKG_UPGRADE"
} >>"$PKG_ROOT/pkgscripts/pkg-postinst"
#!/bin/sh
mkdir -p "$PKG_ROOT/pkgscripts"
{
echo "$@"
echo "PKG_UPGRADE=$PKG_UPGRADE"
} >>"$PKG_ROOT/pkgscripts/pkg-preinst"
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