- my $meta = LoadFile "$source/meta.yml";
- $meta->{files}{prog}{content} = read_file "$source/$meta->{files}{prog}{name}";
- $meta = merge $meta, $pbmeta;
- note "Running $meta->{test_name} ($meta->{test_description})...";
- my $savedcwd = cwd;
- chdir $tempdir;
- Gruntmaster::Daemon::process $meta;
- chdir $savedcwd;
- check_job $meta;
+ SKIP: {
+ my $meta = LoadFile "$source/meta.yml";
+ my $compiler = COMPILER->{$meta->{files}{prog}{format}};
+ skip "$compiler not found in path", 3 unless $ENV{GRUNTMASTER_VM} || which $compiler;
+ local $TODO = $meta->{todo} if exists $meta->{todo};
+ $meta->{files}{prog}{content} = read_file "$source/$meta->{files}{prog}{name}";
+ $meta = merge $meta, $pbmeta;
+ note "Running $meta->{test_name} ($meta->{test_description})...";
+ my $savedcwd = getcwd;
+ chdir $tempdir;
+ Gruntmaster::Daemon::process $meta;
+ chdir $savedcwd;
+ check_job $meta;
+ }