--
-- tests/actions/make/cpp/test_ps3.lua
-- Tests for PS3 support in makefiles.
-- Copyright (c) 2012-2013 Jason Perkins and the Premake project
local suite = test.declare("make_ps3")
local make = premake.make
local cpp = premake.make.cpp
local project = premake.project
-- Setup
local sln, prj, cfg
function suite.setup()
sln, prj = test.createsolution()
system "ps3"
cfg = test.getconfig(prj, "Debug")
end
-- Make sure that the correct compilers are used.
function suite.usesCorrectCompilers()
make.cppTools(cfg, premake.tools.gcc)
test.capture [[
CC = ppu-lv2-g++
CXX = ppu-lv2-g++
AR = ppu-lv2-ar
]]
-- Make sure the target is correctly named.
function suite.usesCorrectTarget()
make.target(cfg)
TARGETDIR = .
TARGET = $(TARGETDIR)/MyProject.elf