--- /dev/null
+Autotest.add_hook :initialize do |at|
+ at.add_mapping(/ext\/.*\/(.*)\.[ch]/) do |_, m|
+ ["test/test_#{m[1]}_extn.rb"]
+ end
+end
+
+Autotest.add_hook :run_command do |at|
+ system "rake compile"
+end
build
arcclientc.xcodeproj
+Makefile
+ *.o
+ *.bundle
+ *.so
+ *.dll
+ pkg
+ doc
+ .DS_Store
--- /dev/null
+=== 0.0.1 2010-11-10
+
+* 1 major enhancement:
+ * Initial release
--- /dev/null
+History.txt
+Manifest.txt
+PostInstall.txt
+README.rdoc
+Rakefile
+ext/extconf.rb
+lib/arc_client_c_wrapper.rb
+lib/arc_client_r.rb
+lib/ffi_libc.rb
+test/test_base.rb
+test/test_get.rb
+test/test_helper.rb
+test/test_stat.rb
+test/test_submit.rb
+script/console
+script/destroy
+script/generate
+ext/arc_get.cpp
+ext/arc_get.h
+ext/arc_libs.h
+ext/arc_stat.cpp
+ext/arc_stat.h
+ext/arc_submit.cpp
+ext/arc_submit.h
+ext/arcclientc.cpp
+ext/arcclientc.h
+ext/common_utils.cpp
+ext/common_utils.h
+ext/config.h
+ext/logger.h
+ext/prefix_header.h
+
--- /dev/null
+
+For more information on gp-arc-client-c, see http://gp-arc-client-c.rubyforge.org
+
+NOTE: Change this information in PostInstall.txt
+You can also delete it if you don't want it.
+
+
--- /dev/null
+= gp-arc-client-c
+
+* http://github.com/#{github_username}/#{project_name}
+
+== DESCRIPTION:
+
+FIX (describe your package)
+
+== FEATURES/PROBLEMS:
+
+* FIX (list of features or problems)
+
+== SYNOPSIS:
+
+ FIX (code sample of usage)
+
+== REQUIREMENTS:
+
+* FIX (list of requirements)
+
+== INSTALL:
+
+* FIX (sudo gem install, anything else)
+
+== LICENSE:
+
+(The MIT License)
+
+Copyright (c) 2010 FIXME full name
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
--- /dev/null
+require 'rubygems'\r
+gem 'hoe', '>= 2.1.0'\r
+require 'hoe'\r
+require 'fileutils'\r
+require './lib/gp-arc-client-c'\r
+\r
+Hoe.plugin :newgem\r
+# Hoe.plugin :website\r
+# Hoe.plugin :cucumberfeatures\r
+\r
+# Generate all the Rake tasks\r
+# Run 'rake -T' to see list of generated tasks (from gem root directory)\r
+$hoe = Hoe.spec 'gp-arc-client-c' do\r
+ self.developer 'FIXME full name', 'FIXME email'\r
+ self.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required\r
+ self.rubyforge_name = self.name # TODO this is default value\r
+ # self.extra_deps = [['activesupport','>= 2.0.2']]\r
+\r
+end\r
+\r
+require 'newgem/tasks'\r
+Dir['tasks/**/*.rake'].each { |t| load t }\r
+\r
+# TODO - want other tests/tasks run by default? Add them to the list\r
+# remove_task :default\r
+# task :default => [:spec, :features]\r
end
-["/opt/local"].each do |prefix|
+["/opt/local", "/usr/lib"].each do |prefix|
find_header "libxml/xmlmemory.h", "#{prefix}/include/libxml2"
find_header "sigc++/slot.h", "#{prefix}/include/sigc++-2.0"
--- /dev/null
+$:.unshift(File.dirname(__FILE__)) unless
+ $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
+
+module GpArcClientC
+ VERSION = '0.0.1'
+end
\ No newline at end of file
+++ /dev/null
-Linux interop 2.6.26-2-686-bigmem #1 SMP Thu Sep 16 20:29:07 UTC 2010 i686 GNU/Linux
+++ /dev/null
-Linux interop 2.6.26-2-686-bigmem #1 SMP Thu Sep 16 20:29:07 UTC 2010 i686 GNU/Linux
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<ArcConfig/>
\ No newline at end of file
--- /dev/null
+#!/usr/bin/env ruby
+# File: script/console
+irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
+
+libs = " -r irb/completion"
+# Perhaps use a console_lib to store any extra methods I may want available in the cosole
+# libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
+libs << " -r #{File.dirname(__FILE__) + '/../lib/gp-arc-client-c.rb'}"
+puts "Loading gp-arc-client-c gem"
+exec "#{irb} #{libs} --simple-prompt"
\ No newline at end of file
--- /dev/null
+#!/usr/bin/env ruby
+APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
+
+begin
+ require 'rubigen'
+rescue LoadError
+ require 'rubygems'
+ require 'rubigen'
+end
+require 'rubigen/scripts/destroy'
+
+ARGV.shift if ['--help', '-h'].include?(ARGV[0])
+RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
+RubiGen::Scripts::Destroy.new.run(ARGV)
--- /dev/null
+#!/usr/bin/env ruby
+APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
+
+begin
+ require 'rubigen'
+rescue LoadError
+ require 'rubygems'
+ require 'rubigen'
+end
+require 'rubigen/scripts/generate'
+
+ARGV.shift if ['--help', '-h'].include?(ARGV[0])
+RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
+RubiGen::Scripts::Generate.new.run(ARGV)
--- /dev/null
+namespace :extconf do
+ desc "Compiles the Ruby extension"
+ task :compile
+end
+
+task :compile => "extconf:compile"
+
+task :test => :compile
+
+BIN = "*.{bundle,jar,so,obj,pdb,lib,def,exp}"
+$hoe.clean_globs |= ["ext/**/#{BIN}", "lib/**/#{BIN}", 'ext/**/Makefile']
+$hoe.spec.require_paths = Dir['{lib,ext/*}']
+$hoe.spec.extensions = FileList["ext/**/extconf.rb"].to_a
--- /dev/null
+namespace :extconf do
+ extension = File.basename(__FILE__, '.rake')
+
+ ext = "ext/#{extension}"
+ ext_so = "#{ext}/#{extension}.#{Config::CONFIG['DLEXT']}"
+ ext_files = FileList[
+ "#{ext}/*.c",
+ "#{ext}/*.h",
+ "#{ext}/*.rl",
+ "#{ext}/extconf.rb",
+ "#{ext}/Makefile",
+ # "lib"
+ ]
+
+
+ task :compile => extension do
+ if Dir.glob("**/#{extension}.{o,so,dll}").length == 0
+ STDERR.puts "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
+ STDERR.puts "Gem actually failed to build. Your system is"
+ STDERR.puts "NOT configured properly to build #{GEM_NAME}."
+ STDERR.puts "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
+ exit(1)
+ end
+ end
+
+ desc "Builds just the #{extension} extension"
+ task extension.to_sym => ["#{ext}/Makefile", ext_so ]
+
+ file "#{ext}/Makefile" => ["#{ext}/extconf.rb"] do
+ Dir.chdir(ext) do ruby "extconf.rb" end
+ end
+
+ file ext_so => ext_files do
+ Dir.chdir(ext) do
+ sh(PLATFORM =~ /win32/ ? 'nmake' : 'make') do |ok, res|
+ if !ok
+ require "fileutils"
+ FileUtils.rm Dir.glob('*.{so,o,dll,bundle}')
+ end
+ end
+ end
+ end
+end
\ No newline at end of file
</JobIdentification>
<Application>
<posix:POSIXApplication>
- <posix:Executable>/bin/uname</posix:Executable>
- <posix:Argument>-a</posix:Argument>
+ <posix:Executable>uname</posix:Executable>
+ <posix:Argument>-s</posix:Argument>
+ <posix:Argument>-n</posix:Argument>
<posix:Output>out.txt</posix:Output>
<posix:Error>err.txt</posix:Error>
</posix:POSIXApplication>
class TestSubmit < ::Test::Unit::TestCase
- def xtest_base
+ def test_base
arc_client = ArcClientR.new
message, job_id = arc_client.submit(["-e", UNAME_JSDL, "-j", "test_job_list.xml"])
p message