Skip to content
Snippets Groups Projects
Commit acce0ecc authored by Leandre Lacourt's avatar Leandre Lacourt
Browse files

mise en place de tests pour lustre mt

parent 0e060754
No related branches found
No related tags found
No related merge requests found
...@@ -6,14 +6,14 @@ set testdir [pwd] ...@@ -6,14 +6,14 @@ set testdir [pwd]
set lus2lic "./lus2lic" set lus2lic "./lus2lic"
set ec2c "./ec2c" set ec2c "./ec2c"
set ec2c "./myec2c" set ec2c "./myec2c"
set test_lus2lic_no_node "$testdir/../utils/test_lus2lic_no_node_rdbg" set test_lus2lic_no_node "./../../utils/test_lus2lic_no_node_rdbg"
set test_lus2lic_no_node "$testdir/../utils/test_lus2lic_no_node" set test_lus2lic_no_node "./../../utils/test_lus2lic_no_node"
set compare_exec_and_2c "$testdir/../utils/compare_exec_and_2c" set compare_exec_and_2c "./../../utils/compare_exec_and_2c"
set compare_exec_and_2cmc "$testdir/../utils/compare_exec_and_2cmc" set compare_exec_and_2cmc "./../../utils/compare_exec_and_2cmc"
set compare_lv6_and_lv6_en "$testdir/../utils/compare_lv6_and_lv6_en" set compare_lv6_and_lv6_en "./../../utils/compare_lv6_and_lv6_en"
set compare_gcc_and_clang "$testdir/../utils/compare_gcc_and_clang" set compare_gcc_and_clang "./../../utils/compare_gcc_and_clang"
set compare_2ch_and_2cs "$testdir/../utils/compare_2ch_and_2cs" set compare_2ch_and_2cs "./../../utils/compare_2ch_and_2cs"
set check_knc "$testdir/../utils/check_knc" set check_knc "./../../utils/check_knc"
set timeout 10 set timeout 10
proc should_work { test_name command_line args } { proc should_work { test_name command_line args } {
...@@ -337,18 +337,22 @@ proc nonreg_pass2 {files tmp} { ...@@ -337,18 +337,22 @@ proc nonreg_pass2 {files tmp} {
if { [nonemptyfile "$bf.c"] && [do_ecexe_vs_exec "$f"] } { if { [nonemptyfile "$bf.c"] && [do_ecexe_vs_exec "$f"] } {
set id4 [should_work "Try to compare lus2lic -exec and ecexe" \ set id4 [should_work "Try to compare lus2lic -exec and ecexe" \
"$test_lus2lic_no_node" "$f" "$opt"] "$test_lus2lic_no_node" "$f" "$opt"]
# XXX TODO:
# wait -i $id4
# if { [nonemptyfile "$bf.exec"] } {
set id5 [should_work "Try to compare lv6 -2c vs lv6 -knc/-knpc -lv4 |lv6 -2c" \
"$check_knc" "$f" "$opt"]
set id6 [should_work "Try to compare -exec and -2cmc" \
"$compare_exec_and_2cmc" "$f" "$opt"]
catch { exp_close -i $id4 } catch { exp_close -i $id4 }
catch { exp_wait -i $id4 } output catch { exp_wait -i $id4 } output
set id5 [should_work "Try to compare lv6 -2c vs lv6 -knc/-knpc -lv4 |lv6 -2c" \
"$check_knc" "$f" "$opt"]
catch { exp_close -i $id5 } catch { exp_close -i $id5 }
catch { exp_wait -i $id5 } output catch { exp_wait -i $id5 } output
#set id6 [should_work "Try to compare -exec and -2cmc" \ catch { exp_close -i $id6 }
# "$compare_exec_and_2cmc" "$f" "$opt"] catch { exp_wait -i $id6 } output
# catch { exp_close -i $id6 }
# catch { exp_wait -i $id6 } output
} }
......
...@@ -18,7 +18,7 @@ env=_"$node"_env.lut ...@@ -18,7 +18,7 @@ env=_"$node"_env.lut
env_node="$node"_env env_node="$node"_env
. /home/jahier/.opam/opam-init/variables.sh . $HOME/.opam/opam-init/variables.sh
set -x verbose #echo on set -x verbose #echo on
...@@ -38,8 +38,6 @@ else ...@@ -38,8 +38,6 @@ else
fi fi
fi fi
if if
./lus2lic -dir /tmp/lustre-test-$lustre_file-$node $OPT $_oracle -n $oracle -2c -cc -o $node-oracle.exec; ./lus2lic -dir /tmp/lustre-test-$lustre_file-$node $OPT $_oracle -n $oracle -2c -cc -o $node-oracle.exec;
then then
...@@ -51,12 +49,16 @@ fi ...@@ -51,12 +49,16 @@ fi
# generated the -2cmc version in $node.exec # generated the -2cmc version in $node.exec
if if
./lus2lic -dir /tmp/lustre-test-$lustre_file-$node $OPT $lustre_file -n $node -2cmc ; ./lus2lic -dir /tmp/lustre-test-$lustre_file-$node $OPT $lustre_file -n $node -2cmt &&
lustre-mt /tmp/lustre-test-$lustre_file-$node/${node}_${node}.yml; $HOME/.opam/4.14.2/bin/lustre-mt /tmp/lustre-test-$lustre_file-$node/${node}_${node}.yml &&
cp foo_foo_pthread.c /tmp/lustre-test-$lustre_file-$node ; mv para.* /tmp/lustre-test-$lustre_file-$node &&
export C_LIBS="-lpthread -lm " ; export MAIN_FILE="foo_foo_pthread.c" ; sh /tmp/lustre-test-$lustre_file-$node/$node.sh mv *env* /tmp/lustre-test-$lustre_file-$node &&
mv *oracle* /tmp/lustre-test-$lustre_file-$node &&
export C_LIBS="-lpthread -lm " && export MAIN_FILE="${node}_${node}.c" &&
cd /tmp/lustre-test-$lustre_file-$node/
gcc -o $node.exec ${node}_${node}*.c lustre* para.* $C_LIBS
then then
echo "lus2lic -2cmc done" echo "lus2lic -2cmt done"
else else
echo "Error" echo "Error"
exit 2 exit 2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment