Debian Codegraph @

debian/tests/smoke

raw
1 #!/bin/bash
2 set -e -u
3
4 cd "${AUTOPKGTEST_TMP}"
5 ver=$(dpkg-query -Wf '${source:Upstream-Version}' libmsgsl-dev)
6
7 BASH_XTRACEFD=1
8 set -x
9
10 tee CMakeLists.txt <<EOF
11 cmake_minimum_required(VERSION 3.0.0...3.27.4)
12 project(SmokeTest CXX)
13 find_package(Microsoft.GSL ${ver} EXACT REQUIRED)
14 message(STATUS "Found GSL of version \${Microsoft.GSL_VERSION}")
15 link_libraries(Microsoft.GSL::GSL)
16 add_executable(SmokeTest main.cpp)
17 EOF
18
19 tee main.cpp <<EOF
20 #include <gsl/gsl>
21 int main(){}
22 EOF
23
24 cmake . && make