Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add some files

  • Loading branch information...
commit 98b43b6eb3336362f93cadab5552fcaa5e5e5a92 1 parent 6fdf9e8
@fperrad fperrad authored
Showing with 130 additions and 0 deletions.
  1. +4 −0 CHANGES
  2. +30 −0 COPYRIGHT
  3. +69 −0 Makefile
  4. +27 −0 rockspec.in
View
4 CHANGES
@@ -0,0 +1,4 @@
+Revision history for lua-TestMore
+
+0.1.0
+ First release
View
30 COPYRIGHT
@@ -0,0 +1,30 @@
+lua-TestMore License
+--------------------
+
+lua-TestMore is licensed under the terms of the MIT/X11 license reproduced below.
+
+===============================================================================
+
+Copyright (C) 2009 Francois Perrad.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+===============================================================================
+
+(end of COPYRIGHT)
View
69 Makefile
@@ -0,0 +1,69 @@
+
+VERSION := $(shell cd src && lua -e "require [[Test.More]]; print(Test.More._VERSION)")
+TARBALL := lua-testmore-$(VERSION).tar.gz
+ifndef REV
+ REV := 1
+endif
+
+manifest_pl := \
+use strict; \
+use warnings; \
+my @files = qw{MANIFEST}; \
+while (<>) { \
+ chomp; \
+ next if m{^\.}; \
+ next if m{^rockspec/}; \
+ push @files, $$_; \
+} \
+print join qq{\n}, sort @files;
+
+rockspec_pl := \
+use strict; \
+use warnings; \
+use Digest::MD5; \
+open my $$FH, q{<}, q{$(TARBALL)} \
+ or die qq{Cannot open $(TARBALL) ($$!)}; \
+binmode $$FH; \
+my %config = ( \
+ version => q{$(VERSION)}, \
+ rev => q{$(REV)}, \
+ md5 => Digest::MD5->new->addfile($$FH)->hexdigest(), \
+); \
+close $$FH; \
+while (<>) { \
+ s{@(\w+)@}{$$config{$$1}}g; \
+ print; \
+}
+
+version:
+ @echo $(VERSION)
+
+CHANGES:
+ perl -i.bak -pe "s{^$(VERSION).*}{q{$(VERSION) }.localtime()}e" CHANGES
+
+tag:
+ git tag -a -m 'tag release $(VERSION)' $(VERSION)
+
+MANIFEST:
+ git ls-files | perl -e '$(manifest_pl)' > MANIFEST
+
+$(TARBALL): MANIFEST
+ [ -d lua-TestMore-$(VERSION) ] || ln -s . lua-TestMore-$(VERSION)
+ perl -ne 'print qq{lua-TestMore-$(VERSION)/$$_};' MANIFEST | \
+ tar -zc -T - -f $(TARBALL)
+ rm lua-TestMore-$(VERSION)
+
+dist: $(TARBALL)
+
+rockspec: $(TARBALL)
+ perl -e '$(rockspec_pl)' rockspec.in > rockspec/lua-testmore-$(VERSION)-$(REV).rockspec
+
+export LUA_PATH=;;./src/?.lua
+test:
+ prove test/*.t
+
+clean:
+ rm -f MANIFEST *.bak
+
+.PHONY: test rockspec CHANGES
+
View
27 rockspec.in
@@ -0,0 +1,27 @@
+package = 'lua-TestMore'
+version = '@version@-@rev@'
+source = {
+ url = 'http://cloud.github.com/downloads/fperrad/lua-TestMore/lua-testmore-@version@.tar.gz',
+ md5 = '@md5@',
+ dir = 'lua-TestMore-@version@',
+}
+description = {
+ summary = "an Unit Testing Framework",
+ detailed = [[
+ lua-TestMore is a port of the Perl5 module Test::More.
+ ]],
+ homepage = 'http://testmore.luaforge.net/',
+ maintainer = 'Francois Perrad',
+ license = 'MIT/X11'
+}
+dependencies = {
+ 'lua >= 5.1',
+}
+build = {
+ type = 'builtin',
+ modules = {
+ ['Test.Builder'] = 'src/Test/Builder.lua',
+ ['Test.More'] = 'src/Test/More.lua',
+ },
+ copy_directories = { 'doc', 'test', 'test_lua51' },
+}

0 comments on commit 98b43b6

Please sign in to comment.
Something went wrong with that request. Please try again.