1-- 2-- tests/actions/make/test_help_rule.lua 3-- Validate generation of help rule and configurations list. 4-- Copyright (c) 2012-2015 Jason Perkins and the Premake project 5-- 6 7 local p = premake 8 local suite = test.declare("make_help_rule") 9 10 11-- 12-- Setup/teardown 13-- 14 15 local wks 16 17 function suite.setup() 18 wks = test.createWorkspace() 19 end 20 21 local function prepare() 22 wks = test.getWorkspace(wks) 23 p.make.helprule(wks) 24 end 25 26 27-- 28-- Start with the default Debug and Release setup. 29-- 30 31 function suite.looksOkay_onDefaultSetup() 32 prepare() 33 test.capture [[ 34help: 35 @echo "Usage: make [config=name] [target]" 36 @echo "" 37 @echo "CONFIGURATIONS:" 38 @echo " debug" 39 @echo " release" 40 ]] 41 end 42