fill out c-simple build test
This commit is contained in:
parent
22e332e1fe
commit
15515d4696
6
build_tests/c-simple/simple.c
Normal file
6
build_tests/c-simple/simple.c
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main(int argc, char *argv[])
|
||||||
|
{
|
||||||
|
printf("This is a simple C program\n");
|
||||||
|
}
|
@ -1,2 +1,5 @@
|
|||||||
it 'builds a C program with one source file' do
|
it 'builds a C program with one source file' do
|
||||||
|
env = Rscons::Environment.new
|
||||||
|
env.Program('simple', 'simple.c')
|
||||||
|
`./simple`.should =~ /This is a simple C program/
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user