mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-22 04:07:49 -05:00
Initial commit for integration tests. Experimental. Playing with potential syntax
This commit is contained in:
3
test/integration/runner.rb
Normal file
3
test/integration/runner.rb
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
Dir['tests/*.rb'].sort.each do |f|
|
||||||
|
require('./' + f)
|
||||||
|
end
|
||||||
4
test/integration/tests/0-noop.rb
Normal file
4
test/integration/tests/0-noop.rb
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# this test does nothing
|
||||||
|
# it's, in a way, a test of the integration testing framework
|
||||||
|
|
||||||
|
puts 'executing noop test'
|
||||||
7
test/integration/tests/simple.rb
Normal file
7
test/integration/tests/simple.rb
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
add_test('basic') { |prj|
|
||||||
|
prj.set_body <<~CMAKE
|
||||||
|
CPMAddPackage("gh:cpm-cmake/testpack-adder")
|
||||||
|
add_executable(using-adder using-adder.cpp)
|
||||||
|
target_link_libraries(using-adder PRIVATE adder)
|
||||||
|
CMAKE
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user