Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
remove staging
  • Loading branch information
fperrad committed Nov 18, 2009
1 parent f30ecdf commit a233d99
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 40 deletions.
50 changes: 11 additions & 39 deletions setup.pir
Expand Up @@ -40,9 +40,6 @@ No Configure step, no Makefile generated.
.const 'Sub' pmctest = 'pmctest'
register_step('pmctest', pmctest)

.const 'Sub' staging = 'staging'
register_step('staging', staging)

.const 'Sub' sanity = 'sanity'
register_step('sanity', sanity)

Expand Down Expand Up @@ -133,11 +130,11 @@ SOURCES
$P9['lua/library/struct.pbc'] = 'lua/library/struct.pir'
$P9['lua/library/uuid.pbc'] = 'lua/library/uuid.pir'
$P9['lua/library/zlib.pbc'] = 'lua/library/zlib.pir'
$P9['t/lua-TestMore/src/Test/More.pbc'] = 't/lua-TestMore/src/Test/More.pir'
$P9['Test/More.pbc'] = 'Test/More.pir'
$P0['liblua__pbc_pir'] = $P9
$P10 = new 'Hash'
$P10['lua/library/gl.pir'] = 'lua/library/gl.lua'
$P10['t/lua-TestMore/src/Test/More.pir'] = 't/lua-TestMore/src/Test/More.lua'
$P10['Test/More.pir'] = 'Test/More.lua'
$P0['liblua__pir_lua'] = $P10

$P7 = new 'Hash'
Expand Down Expand Up @@ -193,6 +190,11 @@ LIBS
cmd = 'perl -pe "s|md5|sha1|g; s|MD5|SHA1|g" lua/library/md5.pir > lua/library/sha1.pir'
system(cmd)
L2:

$I0 = newer('Test/More.lua', 't/lua-TestMore/src/Test/More.lua')
if $I0 goto L3
cp('t/lua-TestMore/src/Test/More.lua', 'Test/More.lua')
L3:
.end

.sub 'clean' :anon
Expand Down Expand Up @@ -258,30 +260,18 @@ LIBS
.sub 'sanity' :anon
.param pmc kv :slurpy :named
run_step('build', kv :flat :named)
run_step('staging', kv :flat :named)

.local string current_dir
current_dir = cwd()
chdir('t/lua-TestMore/test_lua51')

.local string cmd
cmd = "prove --exec=\""
$S0 = get_parrot()
cmd .= $S0
cmd .= " ../../../lua.pbc\" 0*.t"
cmd .= " lua.pbc\" t/lua-TestMore/test_lua51/0*.t"
system(cmd)

chdir(current_dir)
.end

.sub 'spectest' :anon
.param pmc kv :slurpy :named
run_step('build', kv :flat :named)
run_step('staging', kv :flat :named)

.local string current_dir
current_dir = cwd()
chdir('t/lua-TestMore/test_lua51')

setenv('LUA_PATH', ";;../src/?.lua")
setenv('LUA_INIT', "platform = { osname=[[MSWin32]], intsize=4, longsize=4 }")
Expand All @@ -290,20 +280,13 @@ LIBS
cmd = "prove --exec=\""
$S0 = get_parrot()
cmd .= $S0
cmd .= " ../../../lua.pbc\" *.t"
cmd .= " lua.pbc\" t/lua-TestMore/test_lua51/*.t"
system(cmd)

chdir(current_dir)
.end

.sub 'smolder' :anon
.param pmc kv :slurpy :named
run_step('build', kv :flat :named)
run_step('staging', kv :flat :named)

.local string current_dir
current_dir = cwd()
chdir('t/lua-TestMore/test_lua51')

setenv('LUA_PATH', ";;../src/?.lua")
setenv('LUA_INIT', "platform = { osname=[[MSWin32]], intsize=4, longsize=4 }")
Expand All @@ -312,7 +295,7 @@ LIBS
cmd = "prove --archive=test_lua51.tar.gz --exec=\""
$S0 = get_parrot()
cmd .= $S0
cmd .= " ../../../lua.pbc\" *.t"
cmd .= " lua.pbc\" t/lua-TestMore/test_lua51/*.t"
system(cmd)

.local pmc config
Expand All @@ -334,20 +317,9 @@ LIBS
cmd .= $S0
cmd .= ", parrot-lua, Lua 5.1 (on Parrot)\""
cmd .= " -F comments=parrot-lua"
cmd .= " -F report_file=@test_lua51.tar.gz"
cmd .= " -F report_file=@t/lua-TestMore/test_lua51/test_lua51.tar.gz"
cmd .= " http://smolder.plusthree.com/app/public_projects/process_add_report/12"
system(cmd)

chdir(current_dir)
.end

.sub 'staging' :anon
.param pmc kv :slurpy :named
system("perl -MExtUtils::Command -e mkpath t/lua-TestMore/test_lua51/lua/library")
system("perl -MExtUtils::Command -e cp lua/*.pbc t/lua-TestMore/test_lua51/lua")
system("perl -MExtUtils::Command -e cp lua/library//*.pbc t/lua-TestMore/test_lua51/lua/library")
$P0 = kv['dynpmc']
install_dynpmc($P0)
.end

# Local Variables:
Expand Down
2 changes: 1 addition & 1 deletion t/lua-TestMore
Submodule lua-TestMore updated from a45029 to 02cc7c

0 comments on commit a233d99

Please sign in to comment.