Permalink
Browse files

Reviving project from dead, knocking out lame tests

  • Loading branch information...
paulcbetts committed Nov 23, 2007
1 parent d2f8f7d commit 1f1086d9a2b4a2d10387aa4854ee962838d8c8d7
View
@@ -1,4 +1,4 @@
-$:.unshift File.join(File.dirname(__FILE__))
+$:.unshift File.dirname(__FILE__)
require 'rubygems'
require 'rake/gempackagetask'
@@ -8,9 +8,11 @@ require 'rake/rdoctask'
require 'rake/testtask'
require 'spec'
-require 'build/expand'
require 'lib/platform'
+root_dir = File.dirname(__FILE__)
+load File.join(root_dir, 'build', 'expand.rake')
+
### Constants
PKG_NAME = "estelle"
@@ -33,19 +35,19 @@ to_expand = FileList.new '**/*.in'
desc "Process .in files"
task :expandify => to_expand do |f|
to_expand.each() do |ex|
- expand_file(ex, ex.gsub(/\.in$/, ''), ExpandFileEnvironment)
+# expand_file(ex, ex.gsub(/\.in$/, ''))
end
end
# Taglib
desc "Build the Taglib library"
task :taglib do |t|
- sh "cd ext/taglib && cmake ."
- sh "cd ext/taglib && make"
+# sh "cd ext/taglib && cmake ."
+# sh "cd ext/taglib && make"
end
desc "Run unit tests"
-Rake::TestTask.new("tests") do |t|
+Rake::TestTask.new("test") do |t|
t.pattern = 'tests/*.rb'
t.verbose = true
t.warning = true
View
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: estelle 0.1\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-08-17 21:10-0700\n"
+"POT-Creation-Date: 2007-11-22 17:56-0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
View
@@ -1,25 +0,0 @@
-$:.unshift File.join(File.dirname(__FILE__), "..", "lib")
-
-require 'library'
-require 'pathname'
-require 'test/unit'
-
-$logging_level = Logger::DEBUG
-
-DummyTaggerPath = File.join(File.dirname(__FILE__), '..', 'lib', 'taggers')
-#DummyTaggerPath = File.join(File.dirname(__FILE__), 'taggers')
-class TestLibrary < Test::Unit::TestCase
- def setup
- @file_list = []
- Pathname.new( (s = File.join(File.dirname(__FILE__), 'files') )).each_entry do |x|
- @file_list << File.join(s, x.cleanpath) if x.extname == '.mp3'
- end
- puts "File count: #{@file_list.size}"
- end
-
- def test_load
- library = MusicLibrary.new
- library.load_taggers DummyTaggerPath
- library.load @file_list
- end
-end
View
@@ -1,20 +0,0 @@
-# Code Generated by ZenTest v. 3.4.3
-# classname: asrt / meth = ratio%
-
-require 'test/unit' unless defined? $ZENTEST and $ZENTEST
-
-class TestConfig < Test::Unit::TestCase
- def test_class_datadir
- raise NotImplementedError, 'Need to write test_class_datadir'
- end
-
- def test_class_expand
- raise NotImplementedError, 'Need to write test_class_expand'
- end
-
- def test_class_gem_original_datadir
- raise NotImplementedError, 'Need to write test_class_gem_original_datadir'
- end
-end
-
-# Number of errors detected: 4
View
@@ -1,41 +0,0 @@
-# Code Generated by ZenTest v. 3.4.3
-# classname: asrt / meth = ratio%
-# MusicLibrary: 0 / 11 = 0.00%
-
-require 'test/unit' unless defined? $ZENTEST and $ZENTEST
-
-class TestMusicLibrary < Test::Unit::TestCase
- def test_clear
- raise NotImplementedError, 'Need to write test_clear'
- end
-
- def test_create_action_list
- raise NotImplementedError, 'Need to write test_create_action_list'
- end
-
- def test_empty_eh
- raise NotImplementedError, 'Need to write test_empty_eh'
- end
-
- def test_execute_action_list
- raise NotImplementedError, 'Need to write test_execute_action_list'
- end
-
- def test_find_soundtracks
- raise NotImplementedError, 'Need to write test_find_soundtracks'
- end
-
- def test_is_soundtrack_equals
- raise NotImplementedError, 'Need to write test_is_soundtrack_equals'
- end
-
- def test_load_taggers
- raise NotImplementedError, 'Need to write test_load_taggers'
- end
-
- def test_size
- raise NotImplementedError, 'Need to write test_size'
- end
-end
-
-# Number of errors detected: 9
View
No changes.
View
@@ -1,17 +0,0 @@
-# Code Generated by ZenTest v. 3.4.3
-# classname: asrt / meth = ratio%
-# Platform: 0 / 2 = 0.00%
-
-require 'test/unit' unless defined? $ZENTEST and $ZENTEST
-
-class TestPlatform < Test::Unit::TestCase
- def test_class_os
- raise NotImplementedError, 'Need to write test_class_os'
- end
-
- def test_class_settings_file_path
- raise NotImplementedError, 'Need to write test_class_settings_file_path'
- end
-end
-
-# Number of errors detected: 3
View
@@ -1,25 +0,0 @@
-# Code Generated by ZenTest v. 3.4.3
-# classname: asrt / meth = ratio%
-# EstelleSettings: 0 / 3 = 0.00%
-
-require 'test/unit' unless defined? $ZENTEST and $ZENTEST
-
-class TestEstelleSettings < Test::Unit::TestCase
- def test_class_load
- raise NotImplementedError, 'Need to write test_class_load'
- end
-
- def test_save
- raise NotImplementedError, 'Need to write test_save'
- end
-
- def test_soundtrack_table
- raise NotImplementedError, 'Need to write test_soundtrack_table'
- end
-
- def test_tagsubst_table
- raise NotImplementedError, 'Need to write test_tagsubst_table'
- end
-end
-
-# Number of errors detected: 5
View
@@ -1,37 +0,0 @@
-# Code Generated by ZenTest v. 3.4.3
-# classname: asrt / meth = ratio%
-# Song: 0 / 9 = 0.00%
-
-require 'test/unit' unless defined? $ZENTEST and $ZENTEST
-
-class TestSong < Test::Unit::TestCase
- def test_class_sub_table
- raise NotImplementedError, 'Need to write test_class_sub_table'
- end
-
- def test_class_sub_table_equals
- raise NotImplementedError, 'Need to write test_class_sub_table_equals'
- end
-
- def test_checked_tag
- raise NotImplementedError, 'Need to write test_checked_tag'
- end
-
- def test_get_canonical_artist
- raise NotImplementedError, 'Need to write test_get_canonical_artist'
- end
-
- def test_index
- raise NotImplementedError, 'Need to write test_index'
- end
-
- def test_index_equals
- raise NotImplementedError, 'Need to write test_index_equals'
- end
-
- def test_to_hash
- raise NotImplementedError, 'Need to write test_to_hash'
- end
-end
-
-# Number of errors detected: 8
View
@@ -1,36 +0,0 @@
-# Code Generated by ZenTest v. 3.4.3
-# classname: asrt / meth = ratio%
-# TaskQueue: 0 / 5 = 0.00%
-# Task: 0 / 2 = 0.00%
-
-require 'test/unit' unless defined? $ZENTEST and $ZENTEST
-
-class TestTask < Test::Unit::TestCase
- def test_call
- raise NotImplementedError, 'Need to write test_call'
- end
-
- def test_invoke
- raise NotImplementedError, 'Need to write test_invoke'
- end
-
- def test_params
- raise NotImplementedError, 'Need to write test_params'
- end
-end
-
-class TestTaskQueue < Test::Unit::TestCase
- def test_clear_and_halt
- raise NotImplementedError, 'Need to write test_clear_and_halt'
- end
-
- def test_pause
- raise NotImplementedError, 'Need to write test_pause'
- end
-
- def test_start
- raise NotImplementedError, 'Need to write test_start'
- end
-end
-
-# Number of errors detected: 8

0 comments on commit 1f1086d

Please sign in to comment.