#!/usr/bin/perl -w
+
+# Copyright (c) 2012-2014. The SimGrid Team.
+# All rights reserved.
+
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of the license (GNU LGPL) which comes with this package.
+
use strict;
# input file = AddTest.txt
}
if ($dump) {
$line =~ s/^ //;
- if ( $line =~ /^\s*ADD_TEST\(\S+\s+\S*\/tesh\s/ ) {
+ if ( $line =~ /^\s*ADD_TEST\(\S+\s+\S*TESH\_COMMAND\}\s/ ) {
undef %environ;
$config_var = "";
$path = "";
my ( $env_var, $value_var ) = ( $1, $2 );
$environ{$env_var} = $value_var;
}
- if ( $line =~ /(\S+)\)$/ ) {
+ if ( $line =~ /(\S+)\s*\)$/ ) {
$tesh_file = $1;
$tesh_file =~ s/^[^\/\$]/$path\/$&/;
$tesh_file =~ s/\${CMAKE_HOME_DIRECTORY}/$proj_dir/g;