add configure spec to check as much as possible
This commit is contained in:
parent
25b73ebd8f
commit
1ecce7e99e
13
build_tests/configure/everything.rb
Normal file
13
build_tests/configure/everything.rb
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
project_name "configure test"
|
||||||
|
autoconf false
|
||||||
|
configure do
|
||||||
|
check_c_compiler
|
||||||
|
check_cxx_compiler
|
||||||
|
check_d_compiler
|
||||||
|
check_cfg package: "mypackage"
|
||||||
|
check_c_header "stdio.h"
|
||||||
|
check_cxx_header "iostream"
|
||||||
|
check_d_import "std.stdio"
|
||||||
|
check_lib "m"
|
||||||
|
check_program "ls"
|
||||||
|
end
|
@ -1866,6 +1866,26 @@ EOF
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it "does everything" do
|
||||||
|
test_dir "configure"
|
||||||
|
create_exe "pkg-config", "echo '-DMYPACKAGE'"
|
||||||
|
result = run_rscons(rsconscript: "everything.rb", op: %w[configure --build=bb])
|
||||||
|
expect(result.stderr).to eq ""
|
||||||
|
expect(result.status).to eq 0
|
||||||
|
expect(result.stdout).to match /Configuring configure test\.\.\./
|
||||||
|
#TODO
|
||||||
|
#expect(result.stdout).to match /Setting build directory\.\.\. bb/
|
||||||
|
expect(result.stdout).to match /Checking for C compiler\.\.\. gcc/
|
||||||
|
expect(result.stdout).to match /Checking for C\+\+ compiler\.\.\. g++/
|
||||||
|
expect(result.stdout).to match /Checking for D compiler\.\.\. gdc/
|
||||||
|
expect(result.stdout).to match /Checking for package 'mypackage'\.\.\. found/
|
||||||
|
expect(result.stdout).to match /Checking for C header 'stdio.h'\.\.\. found/
|
||||||
|
expect(result.stdout).to match /Checking for C\+\+ header 'iostream'\.\.\. found/
|
||||||
|
expect(result.stdout).to match /Checking for D import 'std.stdio'\.\.\. found/
|
||||||
|
expect(result.stdout).to match /Checking for library 'm'\.\.\. found/
|
||||||
|
expect(result.stdout).to match /Checking for program 'ls'\.\.\. .*ls/
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user