aboutsummaryrefslogtreecommitdiff
path: root/tests/testscript
blob: 4641300697c68360ba4ace662478b3b6e2d92e0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# file      : tests/testscript
# copyright : Copyright (c) 2009-2018 Code Synthesis Tools CC
# license   : GNU GPL v3; see accompanying LICENSE file

: version
:
$* --version >>~/EOO/
/ODB object-relational mapping \(ORM\) compiler for C\+\+ .+/
/.*/*
EOO

: plugin
:
: To actually compile anything we need libodb. However, we can smoke-test the
: plugin loading and invocation using the --trace option that suppresses the
: standard prologue/epilogue (which includes the libodb headers).
:
cat <'// dummy' >=dummy.hxx;
$* -d sqlite --trace dummy.hxx 2>>~/EOE/ != 0
/.*/*
dummy.hxx: error: unable to resolve odb namespace
EOE