From 3fbb4d97351882d1eb0e9003e7f567d08fadcf23 Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Tue, 6 May 2014 23:04:56 -0400 Subject: [PATCH] Clean up test/ directory Mostly remove files that are no longer used. Signed-off-by: Anna Schumaker --- tests/Sconscript | 3 -- tests/_functions | 66 -------------------------------------------- tests/src/Sconscript | 10 ------- 3 files changed, 79 deletions(-) delete mode 100644 tests/_functions delete mode 100644 tests/src/Sconscript diff --git a/tests/Sconscript b/tests/Sconscript index 8630b3db..3ef2a0c6 100644 --- a/tests/Sconscript +++ b/tests/Sconscript @@ -73,7 +73,4 @@ ignore.close(); Return("res") -#tests = [ "version" , "file", "database", "index", "filter", "idle" ] -## "tag_db", -## "queue" ] ##scripts = [ "playlist", "library", "deck", "audio", "gui" ] diff --git a/tests/_functions b/tests/_functions deleted file mode 100644 index ac9e6d25..00000000 --- a/tests/_functions +++ /dev/null @@ -1,66 +0,0 @@ -#!/bin/bash -# Copyright 2014 (c) Anna Schumaker - -function read_config -{ - cat ../Sconstruct | grep ^$1 | awk -F= '{print $2}' | tr -d ' ' -} - -function config_version -{ - read_config CONFIG_VERSION -} - -function config_debug -{ - read_config CONFIG_DEBUG -} - -CUR_TEST=0 -function new_test -{ - echo "$1" - CUR_TEST=0 -} - -function start_test -{ - echo -n " $CUR_TEST: " - let CUR_TEST=($CUR_TEST + 1) -} - -function assert_equal -{ - if [ "$1" == "$2" ]; then - echo "Success!" - return 0 - else - echo "FAILED =(" - echo " Expected: $2" - echo " Actual: $1" - return 1 - fi -} - -function test_equal -{ - start_test - assert_equal "$($1)" "$2" -} - -function on_exit -{ - ret=$? - echo - return $ret -}; trap "on_exit" EXIT - -[ -z $HOME ] && HOME=$(cat /etc/passwd | grep $(whoami) | awk -F: '{print $6}') -[ -z $XDG_DATA_HOME] && XDG_DATA_HOME="$HOME/.local/share" -DATA_DIR="$XDG_DATA_HOME/ocarina-test" -LEGACY_DIR="$HOME/.ocarina-test/library" - -rm -rf $DATA_DIR 2>/dev/null || true - -set -e -cd $(dirname $0) diff --git a/tests/src/Sconscript b/tests/src/Sconscript deleted file mode 100644 index 23a9e6ed..00000000 --- a/tests/src/Sconscript +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/python -Import("env", "lib") - -build = [] -for f in Glob("*.cpp"): - src = str(f) - run = src.split(".")[0] + ".run" - build += [ env.Program(run, [src] + lib) ] - -Return("build")