diff options
author | Alexander Larsson <alexl@redhat.com> | 2016-05-02 12:38:12 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2016-05-02 12:38:12 +0200 |
commit | a68e3bba50cba5380932017680225144e8a3127c (patch) | |
tree | a516ae08f3a3f3048c2559dfe2fe26a645f2f4c0 /tests/test-run.sh | |
parent | e5fad0714e94f9a5f8fc07d9ed9bf43a0d56d477 (diff) | |
download | flatpak-a68e3bba50cba5380932017680225144e8a3127c.tar.gz |
tests: Add tests for list/info commands
Diffstat (limited to 'tests/test-run.sh')
-rwxr-xr-x | tests/test-run.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test-run.sh b/tests/test-run.sh index 4a7200ad..6c758b37 100755 --- a/tests/test-run.sh +++ b/tests/test-run.sh @@ -33,6 +33,7 @@ assert_has_symlink $USERDIR/app/org.test.Hello/current assert_symlink_has_content $USERDIR/app/org.test.Hello/current ^$ARCH/master$ assert_has_dir $USERDIR/app/org.test.Hello/$ARCH/master assert_has_symlink $USERDIR/app/org.test.Hello/$ARCH/master/active +ID=`readlink $USERDIR/app/org.test.Hello/$ARCH/master/active` assert_has_file $USERDIR/app/org.test.Hello/$ARCH/master/active/deploy assert_has_file $USERDIR/app/org.test.Hello/$ARCH/master/active/metadata assert_has_dir $USERDIR/app/org.test.Hello/$ARCH/master/active/files @@ -48,6 +49,15 @@ assert_file_has_content $USERDIR/exports/share/applications/mimeinfo.cache x-tes assert_has_file $USERDIR/exports/share/icons/hicolor/icon-theme.cache assert_has_file $USERDIR/exports/share/icons/hicolor/index.theme +$XDG_APP list --user | grep org.test.Hello +$XDG_APP list --user -d | grep org.test.Hello | grep test-repo +$XDG_APP list --user -d | grep org.test.Hello | grep current +$XDG_APP list --user -d | grep org.test.Hello | grep ${ID:0:12} + +$XDG_APP info --user org.test.Hello +$XDG_APP info --user org.test.Hello | grep test-repo +$XDG_APP info --user org.test.Hello | grep $ID + echo "ok install" run org.test.Hello > hello_out |