CR1
This commit is contained in:
parent
cdd8dc4615
commit
c42da0eefc
2 changed files with 36 additions and 4 deletions
|
|
@ -113,10 +113,6 @@ run_produces_ok('file query (existent), .h',
|
|||
[qr{i2c-core\.h}, qr{\bWe\b}],
|
||||
MUST_SUCCEED);
|
||||
|
||||
# Test the api using pytest. Prints the test results.
|
||||
|
||||
run_produces_ok('api pytest suite', ["pytest", "-v"], [], MUST_SUCCEED, 1);
|
||||
|
||||
#system('bash'); # Uncomment this if you want to interact with the test repo
|
||||
|
||||
done_testing;
|
||||
|
|
|
|||
36
t/200-api.t
Normal file
36
t/200-api.t
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
#!/usr/bin/env perl
|
||||
# 200-api.t: Test elixir's REST api against the files in tree/ .
|
||||
#
|
||||
# Copyright (c) 2020 Tamir Carmeli, <carmeli.tamir@gmail.com>.
|
||||
#
|
||||
# Elixir is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# Elixir is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
# # You should have received a copy of the GNU Affero General Public License
|
||||
# along with Elixir. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#
|
||||
# This file uses core Perl modules only.
|
||||
|
||||
use FindBin '$Bin';
|
||||
use lib $Bin;
|
||||
|
||||
use Test::More;
|
||||
|
||||
use TestEnvironment;
|
||||
use TestHelpers;
|
||||
|
||||
my $tenv = TestEnvironment->new;
|
||||
$tenv->build_repo(sibling_abs_path('tree'))->build_db->update_env;
|
||||
|
||||
# Test the api using pytest. Prints the test results
|
||||
run_produces_ok('api pytest suite', ["pytest", "-v"], [], MUST_SUCCEED, 1);
|
||||
|
||||
done_testing;
|
||||
Loading…
Reference in a new issue