| 1 | #!/usr/bin/perl | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | use Test::Most; | ||
| 6 | use File::Valet; # gives you file-slurping functions rd_f(), wr_f(), ap_f(), also find_bin() and some other things | ||
| 7 | |||
| 8 | use lib "./lib"; | ||
| 9 | use Linux::Slackware::SystemTests; | ||
| 10 | |||
| 11 | my $st = Linux::Slackware::SystemTests->new(); | ||
| 12 | |||
| 13 | # Copy a module file to /tmp or wherever when you need a writable file: | ||
| 14 | # my ($ok, $target_file) = $st->init_work_file("example.txt"); | ||
| 15 | # BAIL_OUT("init_work_file failed: $target_file") unless ($ok eq 'OK'); | ||
| 16 | |||
| 17 | # Put your tests here | ||
| 18 | |||
| 19 | # unlink($target_file); # clean up any turds | ||
| 20 | |||
| 21 | done_testing(); | ||
| 22 | exit 0; |