Unit tests

This commit is contained in:
Frank Breedijk 2016-07-25 12:25:03 +02:00
parent 1d8257c0db
commit 71f7641149
7 changed files with 12 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
.DS_Store
tmp.json
*.bak

View 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;