Sha256: eee63fce792e6cce762100aa8a1970109385f3848baff0b474389cd4c9927853

Contents?: true

Size: 709 Bytes

Versions: 1

Compression:

Stored size: 709 Bytes

Contents

module Rscons
  module Builders
    describe Program do
      let(:env) {Environment.new}
      subject {Program.new}

      it "supports overriding CC construction variable" do
        subject.should_receive(:standard_build).with("LD prog", "prog", ["sp-c++", "-o", "prog", "prog.o"], ["prog.o"], env, :cache)
        subject.run("prog", ["prog.o"], :cache, env, "CC" => "sp-c++")
      end

      it "supports overriding LDCMD construction variable" do
        subject.should_receive(:standard_build).with("LD prog", "prog", ["special", "LD!", "prog.o"], ["prog.o"], env, :cache)
        subject.run("prog", ["prog.o"], :cache, env, "LDCMD" => ["special", "LD!", "${_SOURCES}"])
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rscons-1.4.3 spec/rscons/builders/program_spec.rb