mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-10 10:40:57 +01:00
Unit tests
This commit is contained in:
parent
1d8257c0db
commit
71f7641149
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
tmp.json
|
tmp.json
|
||||||
|
*.bak
|
||||||
|
11
t/20_client_sim-data_up_to_date.t
Executable file
11
t/20_client_sim-data_up_to_date.t
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
|
use strict;
|
||||||
|
use Test::More tests => 2;
|
||||||
|
|
||||||
|
|
||||||
|
my $outdated=`find include/client_sim.data -mtime 14d`;
|
||||||
|
ok($outdated eq "","include/client_sim.data should be no older then 14 days, run utils/update_client_sim_data.pl to correct");
|
||||||
|
my $newer=`find utils/update_client_sim_data.pl -newer include/client_sim.data`;
|
||||||
|
ok($newer eq "","utils/update_client_sim_data.pl should not be newer then include/client_sim.data, run utils/update_client_sim_data.pl to correct");
|
||||||
|
done_testing;
|
Loading…
Reference in New Issue
Block a user