Skip to content

Commit

Permalink
Adds extremely basic rcomp tests
Browse files Browse the repository at this point in the history
This is mostly to get tests working with Travis
Also removes *.out from .gitignore becaus it conflicts with rcomp
  • Loading branch information
Chris Knadler committed Dec 5, 2012
1 parent 1873054 commit 6209ed7
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Expand Up @@ -7,7 +7,6 @@ testbed
io
math
*.exe
*.out

# Automake generated files and folders
Makefile
Expand Down Expand Up @@ -54,3 +53,6 @@ __pycache__/
Icon?
ehthumbs.db
Thumbs.db

# RComp
test/results
3 changes: 3 additions & 0 deletions .rcomp
@@ -0,0 +1,3 @@
---
command: src/hkl
directory: test
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -2,4 +2,5 @@ language: c
compiler:
- clang
- gcc
script: ./auto-build-env && make
install: ./auto-build-env && make
script: bundle install && rcomp test
3 changes: 3 additions & 0 deletions Gemfile
@@ -0,0 +1,3 @@
source :rubygems

gem 'rcomp'
16 changes: 16 additions & 0 deletions Gemfile.lock
@@ -0,0 +1,16 @@
GEM
remote: http://rubygems.org/
specs:
childprocess (0.3.6)
ffi (~> 1.0, >= 1.0.6)
ffi (1.2.0)
rcomp (0.2.1)
childprocess (~> 0.3.6)
thor (~> 0.16.0)
thor (0.16.0)

PLATFORMS
ruby

DEPENDENCIES
rcomp
Empty file.
1 change: 1 addition & 0 deletions test/expected/literals/literals1.out
@@ -0,0 +1 @@
0
Empty file.
1 change: 1 addition & 0 deletions test/expected/literals/literals2.out
@@ -0,0 +1 @@
string
Empty file.
1 change: 1 addition & 0 deletions test/expected/literals/literals3.out
@@ -0,0 +1 @@
3.14159
1 change: 1 addition & 0 deletions test/tests/literals/literals1.test
@@ -0,0 +1 @@
puts 0
1 change: 1 addition & 0 deletions test/tests/literals/literals2.test
@@ -0,0 +1 @@
puts "string"
1 change: 1 addition & 0 deletions test/tests/literals/literals3.test
@@ -0,0 +1 @@
puts 3.1415926

0 comments on commit 6209ed7

Please sign in to comment.