-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Python black box tests to Python CI
(first attempt will need follow-on sw tweaks)
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env perl | ||
# cli-test-python.t - run LongitudeTZ black box tests for Python implementation | ||
# (this script is in Perl for 'prove' program to launch the tests consistently) | ||
# by Ian Kluft (IKLUFT), [email protected] | ||
# created 05/09/2024 | ||
|
||
use strict; | ||
use warnings; | ||
use Config; | ||
use File::Basename; | ||
use FindBin qw($Bin); | ||
|
||
# collect parameters | ||
my $debug = ( $ENV{LONGITUDE_TZ_TEST_DEBUG} // 0 ) ? 1 : 0; | ||
my $bin_dir = $Bin; | ||
my $tree_root = dirname($bin_dir); | ||
my $perl_path = $Config{perlpath}; | ||
|
||
# run black box test command | ||
exec $perl_path $perl_path, | ||
"$bin_dir/cli-test.pl", | ||
( $debug ? "--debug" : ()), | ||
"$tree_root/src/python/scripts/lon_tz.py"; |