test automatic config specification
This commit is contained in:
parent
66db064fa6
commit
a2e1e243db
14
test/cxx_auto/cmake/autocmake.cfg
Normal file
14
test/cxx_auto/cmake/autocmake.cfg
Normal file
@ -0,0 +1,14 @@
|
||||
[project]
|
||||
name: example
|
||||
|
||||
[cxx]
|
||||
source: ../../../modules/cxx.cmake
|
||||
auto: true
|
||||
|
||||
[default_build_paths]
|
||||
source: ../../../modules/default_build_paths.cmake
|
||||
auto: true
|
||||
|
||||
[src]
|
||||
source: ../../../modules/src.cmake
|
||||
auto: true
|
1
test/cxx_auto/src/CMakeLists.txt
Normal file
1
test/cxx_auto/src/CMakeLists.txt
Normal file
@ -0,0 +1 @@
|
||||
add_executable(example example.cpp)
|
7
test/cxx_auto/src/example.cpp
Normal file
7
test/cxx_auto/src/example.cpp
Normal file
@ -0,0 +1,7 @@
|
||||
#include <iostream>
|
||||
|
||||
int main()
|
||||
{
|
||||
std::cout << "Hello World!";
|
||||
return 0;
|
||||
}
|
@ -114,6 +114,13 @@ def test_cxx():
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
|
||||
def test_cxx_auto():
|
||||
stdout, stderr = configure_build_and_exe('cxx_auto', 'python setup.py --cxx=g++')
|
||||
assert 'Hello World!' in stdout
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
|
||||
def test_fc():
|
||||
stdout, stderr = configure_build_and_exe('fc', 'python setup.py --fc=gfortran')
|
||||
assert 'Hello World!' in stdout
|
||||
|
Loading…
x
Reference in New Issue
Block a user