summaryrefslogtreecommitdiff
path: root/portland/xdg-utils/tests/xdg-mime/t.double_mime_install
diff options
context:
space:
mode:
Diffstat (limited to 'portland/xdg-utils/tests/xdg-mime/t.double_mime_install')
-rwxr-xr-xportland/xdg-utils/tests/xdg-mime/t.double_mime_install46
1 files changed, 0 insertions, 46 deletions
diff --git a/portland/xdg-utils/tests/xdg-mime/t.double_mime_install b/portland/xdg-utils/tests/xdg-mime/t.double_mime_install
deleted file mode 100755
index 99fab72..0000000
--- a/portland/xdg-utils/tests/xdg-mime/t.double_mime_install
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/bin/bash
-
-## Include utility functions.
-. "$TEST_CODE_DIR/include/testassertions.sh"
-. "$TEST_CODE_DIR/include/testdep.sh"
-. "$TEST_CODE_DIR/include/testcontrol.sh"
-
-## Test function
-test_double_mime_install() {
-INPUT_FILE="$TEST_CODE_DIR/xdg-mime/data/testmime.xml"
-# TODO: should follow the filename tests.
-QUERY_FILE="testfile.xdgtest"
-
-## Begin the test.
-test_start "$FUNCNAME: verify installing an existing mime type is OK"
-
-# Dependencies section
-test_init
-
-set_no_display
-assert_file $INPUT_FILE
-echo "Some text." > $QUERY_FILE
-assert_file "$QUERY_FILE"
-
-# Verify the test type is not installed already.
-assert_exit 0 xdg-mime install --user "$INPUT_FILE"
-assert_exit 0 "xdg-mime query filetype $QUERY_FILE"
-assert_stdout "$TEST_CODE_DIR/xdg-mime/data/textxdgpattern.expected"
-
-# Test steps section
-test_procedure
-
-assert_exit 0 xdg-mime install --user "$INPUT_FILE"
-assert_nostdout
-assert_nostderr
-
-assert_exit 0 xdg-mime query filetype $QUERY_FILE
-assert_stdout "$TEST_CODE_DIR/xdg-mime/data/textxdgpattern.expected"
-assert_nostderr
-
-# TODO: this is a cleanup step
-assert_exit 0 xdg-mime uninstall --user "$INPUT_FILE"
-
-test_result
-}
-run_test test_double_mime_install