#!/usr/bin/ruby $: << File::join([File::dirname(__FILE__), "build_SWIG"]) require 'test/unit' require 'Pitot.so' class TestPitot < Test::Unit::TestCase def setup end def teardown end def test_pitot3 pitot3 = Pitot::Pitot3::new input_fname = File::join([ File::dirname(__FILE__), "..", "..", "..", "090623_taiki", "orca_090624_f1.dat"]) config_fname = File::join([File::dirname(__FILE__), "..", "parameter3.txt"]) open(config_fname){|io| pitot3.read_config(io) } log2csv = "~/src/eclipse/autopilot/note/070423/build_VC9/log_CSV.exe" IO::popen("#{log2csv} #{input_fname} --out=P --out_P_mode=1"){|io| pitot3.analyze(io, $stdout) } end end