Commit a0e36ead authored by Vitaly Lipatov's avatar Vitaly Lipatov

tests: add read-only commands and organize test sections

parent 57c43487
...@@ -19,10 +19,30 @@ restore_epm() ...@@ -19,10 +19,30 @@ restore_epm()
set -e -x set -e -x
set -o pipefail set -o pipefail
# Section 1: Basic info commands (never break the system)
epm --version
epm print info epm print info
epm --help | head || [ $? -eq 141 ]
# Section 2: Read-only repository queries
epm repo list
epm search bash | head || [ $? -eq 141 ]
epm info bash
epm show bash
epm policy bash
epm provides /bin/bash
epm requires bash | head || [ $? -eq 141 ]
# Section 3: Queries on installed packages
epmqf bash
epm ql eepm | head || [ $? -eq 141 ]
epm cl erc | head || [ $? -eq 141 ]
epm checkpkg eepm
# Section 4: Update cache (may fail on network issues)
epm update epm update
# Section 5: Package modifications
epm --auto upgrade $EPMPKGFILE epm --auto upgrade $EPMPKGFILE
epm --auto downgrade $EPMPKGFILE epm --auto downgrade $EPMPKGFILE
...@@ -41,14 +61,6 @@ epm --auto autoorphans ...@@ -41,14 +61,6 @@ epm --auto autoorphans
epm --auto upgrade epm --auto upgrade
epmqf bash
epm ql eepm | head || :
epm cl erc | head || :
epm checkpkg eepm
epm --auto upgrade eepm epm --auto upgrade eepm
restore_epm || : restore_epm || :
......
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