summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWaldo Bastian <waldo.bastian@intel.com>2006-09-19 04:38:04 +0000
committerWaldo Bastian <waldo.bastian@intel.com>2006-09-19 04:38:04 +0000
commit3c5ced0750ef4da62763f9c63d3a445a96fc8f0a (patch)
tree2e2195cc5a2af5821c109b1d454f19a4602a29a5 /tests
parent3684e5144f5bb1cd8df63902f5cc11041c8587ce (diff)
Drop SVG support
Diffstat (limited to 'tests')
-rwxr-xr-xtests/xdg-icon-resource/t.icon_svg_duplicate_install42
-rwxr-xr-xtests/xdg-icon-resource/t.icon_svg_nonexist_uninstall39
-rwxr-xr-xtests/xdg-icon-resource/t.icon_svg_system_install43
-rwxr-xr-xtests/xdg-icon-resource/t.icon_svg_system_uninstall43
-rwxr-xr-xtests/xdg-icon-resource/t.icon_svg_user_install38
-rwxr-xr-xtests/xdg-icon-resource/t.icon_svg_user_uninstall40
6 files changed, 0 insertions, 245 deletions
diff --git a/tests/xdg-icon-resource/t.icon_svg_duplicate_install b/tests/xdg-icon-resource/t.icon_svg_duplicate_install
deleted file mode 100755
index 4e77ee6..0000000
--- a/tests/xdg-icon-resource/t.icon_svg_duplicate_install
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/bash
-
-## Include utility functions.
-. "$XDG_TEST_DIR/include/testassertions.sh"
-
-. "$XDG_TEST_DIR/include/testcontrol.sh"
-
-## Test function
-test_icon_svg_duplicate_install() {
-ICON="red-SVG.svg"
-
-test_start "$FUNCNAME: verify $ICON is installed correctly when it has already been installed."
-
-## Begin the test.
-userpath="$HOME/.icons:$HOME/.local:$XDG_DATA_HOME"
-
-# Dependencies section
-test_init
-
-set_no_display
-use_file "$XDG_TEST_DIR/icons/$ICON" ICON_FILE
-assert_file "$ICON_FILE"
-
-# Verify the test icon is not installed already.
-assert_exit 0 xdg-icon-resource install --mode user "$ICON_FILE"
-assert_file_in_path "$ICON_FILE" "$userpath"
-
-# Test steps section
-test_procedure
-
-assert_exit 0 xdg-icon-resource install --mode user "$ICON_FILE"
-assert_nostdout
-assert_nostderr
-
-assert_file_in_path "$ICON_FILE" "$userpath"
-
-assert_exit 0 xdg-icon-resource uninstall --mode user "$ICON_FILE"
-
-test_result
-}
-
-run_test test_icon_svg_duplicate_install
diff --git a/tests/xdg-icon-resource/t.icon_svg_nonexist_uninstall b/tests/xdg-icon-resource/t.icon_svg_nonexist_uninstall
deleted file mode 100755
index a72b0f8..0000000
--- a/tests/xdg-icon-resource/t.icon_svg_nonexist_uninstall
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/bash
-
-## Include utility functions.
-. "$XDG_TEST_DIR/include/testassertions.sh"
-
-. "$XDG_TEST_DIR/include/testcontrol.sh"
-
-## Test function
-test_icon_svg_nonexist_uninstall() {
-ICON="red-SVG.svg"
-
-test_start "$FUNCNAME: verify $ICON is uninstalled correctly"
-
-## Begin the test.
-userpath="$HOME/.icons:$HOME/.local:$XDG_DATA_HOME"
-
-# Dependencies section
-test_init
-
-set_no_display
-use_file "$XDG_TEST_DIR/icons/$ICON" ICON_FILE
-assert_file "$ICON_FILE"
-
-# Verify the test icon is not installed already.
-assert_file_not_in_path "$ICON_FILE" "$userpath"
-
-# Test steps section
-test_procedure
-
-assert_exit 0 xdg-icon-resource uninstall --mode user "$ICON_FILE"
-assert_nostdout
-assert_nostderr
-
-assert_file_not_in_path "$ICON_FILE" "$userpath"
-
-test_result
-}
-
-run_test test_icon_svg_nonexist_uninstall
diff --git a/tests/xdg-icon-resource/t.icon_svg_system_install b/tests/xdg-icon-resource/t.icon_svg_system_install
deleted file mode 100755
index c5dccdc..0000000
--- a/tests/xdg-icon-resource/t.icon_svg_system_install
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/bin/bash
-
-## Include utility functions.
-. "$XDG_TEST_DIR/include/testassertions.sh"
-
-. "$XDG_TEST_DIR/include/testcontrol.sh"
-
-## Test function
-test_icon_svg_system_install() {
-ICON="red-SVG.svg"
-
-test_start "$FUNCNAME: verify $ICON is installed correctly with --mode system"
-
-## Begin the test.
-systempath="${XDG_DATA_DIRS-/usr/local/share:/usr/share}:/usr/share/pixmaps"
-
-# Dependencies section
-test_init
-
-require_root
-set_no_display
-
-use_file "$XDG_TEST_DIR/icons/$ICON" ICONFILE
-assert_file "$ICONFILE"
-
-# Verify the test icon is not installed already.
-assert_file_not_in_path "$ICONFILE" "$systempath"
-
-# Test steps section
-test_procedure
-
-assert_exit 0 xdg-icon-resource install --mode system "$ICONFILE"
-assert_nostdout
-assert_nostderr
-
-assert_file_in_path "$ICONFILE" "$systempath"
-
-assert_exit 0 xdg-icon-resource uninstall --mode system "$ICONFILE"
-
-test_result
-}
-
-run_test test_icon_svg_system_install
diff --git a/tests/xdg-icon-resource/t.icon_svg_system_uninstall b/tests/xdg-icon-resource/t.icon_svg_system_uninstall
deleted file mode 100755
index c0b9f6b..0000000
--- a/tests/xdg-icon-resource/t.icon_svg_system_uninstall
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/bin/bash
-
-## Include utility functions.
-. "$XDG_TEST_DIR/include/testassertions.sh"
-
-. "$XDG_TEST_DIR/include/testcontrol.sh"
-
-## Test function
-test_icon_svg_system_uninstall() {
-ICON="red-SVG.svg"
-
-test_start "$FUNCNAME: verify $ICON is uninstalled correctly with --mode system"
-
-## Begin the test.
-icondir="$XDG_TEST_DIR/icons"
-systempath="${XDG_DATA_DIRS-/usr/local/share:/usr/share}:/usr/share/pixmaps"
-
-# Dependencies section
-test_init
-
-require_root
-
-set_no_display
-use_file "$XDG_TEST_DIR/icons/$ICON" ICONFILE
-assert_file "$ICONFILE"
-
-# Verify the test icon is not installed already.
-assert_exit 0 xdg-icon-resource install --mode system "$ICONFILE"
-assert_file_in_path "$ICONFILE" "$systempath"
-
-# Test steps section
-test_procedure
-
-assert_exit 0 xdg-icon-resource uninstall --mode system "$ICONFILE"
-assert_nostdout
-assert_nostderr
-
-assert_file_not_in_path "$ICONFILE" "$systempath"
-
-test_result
-}
-
-run_test test_icon_svg_system_uninstall
diff --git a/tests/xdg-icon-resource/t.icon_svg_user_install b/tests/xdg-icon-resource/t.icon_svg_user_install
deleted file mode 100755
index 072af79..0000000
--- a/tests/xdg-icon-resource/t.icon_svg_user_install
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/bash
-## Include utility functions.
-. "$XDG_TEST_DIR/include/testassertions.sh"
-. "$XDG_TEST_DIR/include/testcontrol.sh"
-
-## Test function
-test_icon_svg_user_install() {
-ICON="red-SVG.svg"
-test_start "$FUNCNAME: verify $ICON is installed correctly"
-
-icondir="$XDG_TEST_DIR/icons"
-userpath="$HOME/.icons:$HOME/.local:$XDG_DATA_HOME"
-
-## Initalize - check the prerequisates
-test_init
-
-set_no_display
-use_file "$XDG_TEST_DIR/icons/$ICON" ICONFILE
-assert_file "$ICONFILE"
-
-## Verify the test icon is not installed already.
-assert_file_not_in_path "$ICONFILE" "$userpath"
-
-## Main test procedure
-test_procedure
-
-assert_exit 0 xdg-icon-resource install --mode user "$ICONFILE"
-assert_nostdout
-assert_nostderr
-
-assert_file_in_path "$ICONFILE" "$userpath"
-
-assert_exit 0 xdg-icon-resource uninstall --mode user "$ICONFILE"
-
-test_result
-}
-
-run_test test_icon_svg_user_install
diff --git a/tests/xdg-icon-resource/t.icon_svg_user_uninstall b/tests/xdg-icon-resource/t.icon_svg_user_uninstall
deleted file mode 100755
index f9c029d..0000000
--- a/tests/xdg-icon-resource/t.icon_svg_user_uninstall
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/bash
-
-## Include utility functions.
-. "$XDG_TEST_DIR/include/testassertions.sh"
-
-. "$XDG_TEST_DIR/include/testcontrol.sh"
-
-## Test function
-test_icon_svg_user_uninstall() {
-ICON="red-SVG.svg"
-
-test_start "$FUNCNAME: verify $ICON is uninstalled correctly"
-
-## Begin the test.
-userpath="$HOME/.icons:$HOME/.local:$XDG_DATA_HOME"
-
-# Dependencies section
-test_init
-
-set_no_display
-use_file "$XDG_TEST_DIR/icons/$ICON" ICONFILE
-assert_file "$ICONFILE"
-
-# Verify the test icon is not installed already.
-assert_exit 0 xdg-icon-resource install --mode user "$ICONFILE"
-assert_file_in_path "$ICONFILE" "$userpath"
-
-# Test steps section
-test_procedure
-
-assert_exit 0 xdg-icon-resource uninstall --mode user "$ICONFILE"
-assert_nostdout
-assert_nostderr
-
-assert_file_not_in_path "$ICONFILE" "$userpath"
-
-test_result
-}
-
-run_test test_icon_svg_user_uninstall