Commit 5255a8cd authored by Karel Koci's avatar Karel Koci 🤘

Add system test for multiple repositories

parent bfde8dd9
......@@ -9,7 +9,8 @@ UPD_SYS_TESTS := \
plan \
plan-unapproved \
steal-confs \
simple-update
simple-update \
multiple-repos
MIGRATE_SYS_TESTS := \
auto-migrate-pkgs
......
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 "test1" "file://%ROOT_DIR%/repo1"
Repository "test2" "file://%ROOT_DIR%/repo2" { priority = 70 }
Repository "test3" "file://%ROOT_DIR%/repo3"
Install "test1"
Install "test2"
Install "test3" { repository = { "test3" } }
Package: test1
Version: 1
License: GPL-2.0
Section: none
Architecture: all
Installed-Size: 0
Description: Test package 1 from repo 1
Package: test2
Version: 1
License: GPL-2.0
Section: none
Architecture: all
Installed-Size: 0
Description: Test package 2 from repo 2
Package: test3
Version: 1
License: GPL-2.0
Section: none
Architecture: all
Installed-Size: 0
Description: Test package 3 from repo 3
Package: test3
Version: 1
Status: install user installed
Architecture: all
Installed-Time: 0
Package: test1
Version: 1
Status: install user installed
Architecture: all
Installed-Time: 0
Package: test2
Version: 1
Status: install user installed
Architecture: all
Installed-Time: 0
return { [""]={ } }
\ No newline at end of file
file://$ROOT_DIR/config --batch -R "$ROOT_DIR"
sed -i -e "s#%ROOT_DIR%#$ROOT_DIR#" $ROOT_DIR/config
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