From a17b300fdea88605c926dc42b47c5313ac10aa12 Mon Sep 17 00:00:00 2001 From: suter Date: Fri, 22 Jun 2012 16:31:36 +0200 Subject: [PATCH] make this tests pass --- examples/simdag/dot/dot_test.c | 2 +- examples/simdag/dot/simulate_dot.c | 2 +- examples/simdag/dot/test_simdag_dotload.tesh | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/simdag/dot/dot_test.c b/examples/simdag/dot/dot_test.c index c441405feb..a8bcdb19e5 100644 --- a/examples/simdag/dot/dot_test.c +++ b/examples/simdag/dot/dot_test.c @@ -88,7 +88,7 @@ int main(int argc, char **argv) xbt_dynar_free_container(&changed); XBT_INFO ("------------------- Produce the trace file---------------------------"); - XBT_INFO("Producing the trace of the run into %s", tracefilename); + XBT_INFO("Producing the trace of the run into %s", basename(tracefilename)); FILE *out = fopen(tracefilename, "w"); xbt_assert(out, "Cannot write to %s", tracefilename); free(tracefilename); diff --git a/examples/simdag/dot/simulate_dot.c b/examples/simdag/dot/simulate_dot.c index 4f35f150d3..75eda052b4 100644 --- a/examples/simdag/dot/simulate_dot.c +++ b/examples/simdag/dot/simulate_dot.c @@ -74,7 +74,7 @@ int main(int argc, char **argv) xbt_dynar_free_container(&changed); XBT_INFO ("------------------- Produce the trace file---------------------------"); - XBT_INFO("Producing the trace of the run into %s", tracefilename); + XBT_INFO("Producing the trace of the run into %s", basename(tracefilename)); FILE *out = fopen(tracefilename, "w"); xbt_assert(out, "Cannot write to %s", tracefilename); free(tracefilename); diff --git a/examples/simdag/dot/test_simdag_dotload.tesh b/examples/simdag/dot/test_simdag_dotload.tesh index e14b70c14e..097197500b 100644 --- a/examples/simdag/dot/test_simdag_dotload.tesh +++ b/examples/simdag/dot/test_simdag_dotload.tesh @@ -1,7 +1,7 @@ #! ./tesh p Test the loader of DAG written in the DOT format -$ $SG_TEST_EXENV ./dot_test ${srcdir:=..}/2clusters.xml ${srcdir:=.}/dag.dot +$ $SG_TEST_EXENV ./dot_test ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag.dot > [0.000000] [surf_workstation/INFO] surf_workstation_model_init_ptask_L07 > [0.000000] [test/INFO] ------------------- Display all tasks of the loaded DAG --------------------------- > [0.000000] [sd_task/INFO] Displaying task root @@ -187,7 +187,7 @@ $ $SG_TEST_EXENV ./dot_test ${srcdir:=..}/2clusters.xml ${srcdir:=.}/dag.dot > [0.000000] [test/INFO] ------------------- Schedule tasks --------------------------- > [0.000000] [test/INFO] ------------------- Run the schedule --------------------------- > [131.443480] [test/INFO] ------------------- Produce the trace file--------------------------- -> [131.443480] [test/INFO] Producing the trace of the run into ./dag.trace +> [131.443480] [test/INFO] Producing the trace of the run into dag.trace $ cat ${srcdir:=.}/dag.trace > [0.000000] C2-05 compute 0.000000 # root @@ -222,7 +222,7 @@ $ cat ${srcdir:=.}/dag.trace $ rm -f dag.trace ! expect signal SIGABRT -$ $SG_TEST_EXENV ./simulate_dot --log=no_loc "--log=sd_dotparse.thres:verbose" ${srcdir:=..}/2clusters.xml ${srcdir:=.}/dag_with_bad_schedule.dot +$ $SG_TEST_EXENV ./simulate_dot --log=no_loc "--log=sd_dotparse.thres:verbose" ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag_with_bad_schedule.dot > [0.000000] [surf_workstation/INFO] surf_workstation_model_init_ptask_L07 > [0.000000] [sd_dotparse/VERBOSE] The schedule is ignored, there are not enough computers > [0.000000] [sd_dotparse/WARNING] is not an integer @@ -236,7 +236,7 @@ $ $SG_TEST_EXENV ./simulate_dot --log=no_loc "--log=sd_dotparse.thres:verbose" > [0.000000] [sd_dotparse/WARNING] The scheduling is ignored > [0.000000] [xbt/CRITICAL] The dot file with the provided scheduling is wrong, more information with the option : --log=sd_dotparse.thres:verbose -$ $SG_TEST_EXENV ./simulate_dot --log=no_loc ${srcdir:=..}/2clusters.xml ${srcdir:=.}/dag_with_good_schedule.dot +$ $SG_TEST_EXENV ./simulate_dot --log=no_loc ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag_with_good_schedule.dot > [0.000000] [surf_workstation/INFO] surf_workstation_model_init_ptask_L07 > [0.000000] [test/INFO] ------------------- Display all tasks of the loaded DAG --------------------------- > [0.000000] [sd_task/INFO] Displaying task root @@ -437,7 +437,7 @@ $ $SG_TEST_EXENV ./simulate_dot --log=no_loc ${srcdir:=..}/2clusters.xml ${srcdi > [0.000000] [sd_task/INFO] 7 > [0.000000] [test/INFO] ------------------- Run the schedule --------------------------- > [18.001306] [test/INFO] ------------------- Produce the trace file--------------------------- -> [18.001306] [test/INFO] Producing the trace of the run into ./dag_with_good_schedule.trace +> [18.001306] [test/INFO] Producing the trace of the run into dag_with_good_schedule.trace $ cat ${srcdir:=.}/dag_with_good_schedule.trace > [0.000000] C2-05 compute 0.000000 # root -- 2.20.1