1*26980dceSIgor Ostapenko // Copyright 2024 The Kyua Authors.
2*26980dceSIgor Ostapenko // All rights reserved.
3*26980dceSIgor Ostapenko //
4*26980dceSIgor Ostapenko // Redistribution and use in source and binary forms, with or without
5*26980dceSIgor Ostapenko // modification, are permitted provided that the following conditions are
6*26980dceSIgor Ostapenko // met:
7*26980dceSIgor Ostapenko //
8*26980dceSIgor Ostapenko // * Redistributions of source code must retain the above copyright
9*26980dceSIgor Ostapenko //   notice, this list of conditions and the following disclaimer.
10*26980dceSIgor Ostapenko // * Redistributions in binary form must reproduce the above copyright
11*26980dceSIgor Ostapenko //   notice, this list of conditions and the following disclaimer in the
12*26980dceSIgor Ostapenko //   documentation and/or other materials provided with the distribution.
13*26980dceSIgor Ostapenko // * Neither the name of Google Inc. nor the names of its contributors
14*26980dceSIgor Ostapenko //   may be used to endorse or promote products derived from this software
15*26980dceSIgor Ostapenko //   without specific prior written permission.
16*26980dceSIgor Ostapenko //
17*26980dceSIgor Ostapenko // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18*26980dceSIgor Ostapenko // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19*26980dceSIgor Ostapenko // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20*26980dceSIgor Ostapenko // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21*26980dceSIgor Ostapenko // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22*26980dceSIgor Ostapenko // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23*26980dceSIgor Ostapenko // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24*26980dceSIgor Ostapenko // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25*26980dceSIgor Ostapenko // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26*26980dceSIgor Ostapenko // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27*26980dceSIgor Ostapenko // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28*26980dceSIgor Ostapenko 
29*26980dceSIgor Ostapenko #include "engine/execenv/execenv_host.hpp"
30*26980dceSIgor Ostapenko 
31*26980dceSIgor Ostapenko #include "utils/fs/path.hpp"
32*26980dceSIgor Ostapenko #include "utils/process/operations.hpp"
33*26980dceSIgor Ostapenko 
34*26980dceSIgor Ostapenko void
init() const35*26980dceSIgor Ostapenko execenv::execenv_host::init() const
36*26980dceSIgor Ostapenko {
37*26980dceSIgor Ostapenko     // nothing to do
38*26980dceSIgor Ostapenko }
39*26980dceSIgor Ostapenko 
40*26980dceSIgor Ostapenko 
41*26980dceSIgor Ostapenko void
cleanup() const42*26980dceSIgor Ostapenko execenv::execenv_host::cleanup() const
43*26980dceSIgor Ostapenko {
44*26980dceSIgor Ostapenko     // nothing to do
45*26980dceSIgor Ostapenko }
46*26980dceSIgor Ostapenko 
47*26980dceSIgor Ostapenko 
48*26980dceSIgor Ostapenko void
exec(const args_vector & args) const49*26980dceSIgor Ostapenko execenv::execenv_host::exec(const args_vector& args) const
50*26980dceSIgor Ostapenko {
51*26980dceSIgor Ostapenko     utils::process::exec(_test_program.absolute_path(), args);
52*26980dceSIgor Ostapenko }
53