Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lustre-v6
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
verimag
synchrone
lustre-v6
Commits
acce0ecc
Commit
acce0ecc
authored
6 months ago
by
Leandre Lacourt
Browse files
Options
Downloads
Patches
Plain Diff
mise en place de tests pour lustre mt
parent
0e060754
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/site.exp
+18
-14
18 additions, 14 deletions
test/site.exp
utils/compare_exec_and_2cmc
+10
-8
10 additions, 8 deletions
utils/compare_exec_and_2cmc
with
28 additions
and
22 deletions
test/site.exp
+
18
−
14
View file @
acce0ecc
...
@@ -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
}
}
...
...
This diff is collapsed.
Click to expand it.
utils/compare_exec_and_2cmc
+
10
−
8
View file @
acce0ecc
...
@@ -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 -2cm
c
done"
echo
"lus2lic -2cm
t
done"
else
else
echo
"Error"
echo
"Error"
exit
2
exit
2
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment