diff options
author | Waldo Bastian <waldo.bastian@intel.com> | 2006-09-19 04:38:04 +0000 |
---|---|---|
committer | Waldo Bastian <waldo.bastian@intel.com> | 2006-09-19 04:38:04 +0000 |
commit | 3c5ced0750ef4da62763f9c63d3a445a96fc8f0a (patch) | |
tree | 2e2195cc5a2af5821c109b1d454f19a4602a29a5 /tests | |
parent | 3684e5144f5bb1cd8df63902f5cc11041c8587ce (diff) |
Drop SVG support
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/xdg-icon-resource/t.icon_svg_duplicate_install | 42 | ||||
-rwxr-xr-x | tests/xdg-icon-resource/t.icon_svg_nonexist_uninstall | 39 | ||||
-rwxr-xr-x | tests/xdg-icon-resource/t.icon_svg_system_install | 43 | ||||
-rwxr-xr-x | tests/xdg-icon-resource/t.icon_svg_system_uninstall | 43 | ||||
-rwxr-xr-x | tests/xdg-icon-resource/t.icon_svg_user_install | 38 | ||||
-rwxr-xr-x | tests/xdg-icon-resource/t.icon_svg_user_uninstall | 40 |
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 |