Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Flexpart
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Benjamin Püschel
Flexpart
Commits
fa1548b0
Commit
fa1548b0
authored
Mar 18, 2016
by
Ignacio Pisso
Browse files
Options
Downloads
Patches
Plain Diff
test whether directories already exist from previous test runs and print those to stdout
parent
da6ad3f5
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/create_test
+28
-5
28 additions, 5 deletions
tests/create_test
tests/create_tests
+1
-1
1 addition, 1 deletion
tests/create_tests
with
29 additions
and
6 deletions
tests/create_test
+
28
−
5
View file @
fa1548b0
...
@@ -14,22 +14,45 @@ options_default=../options
...
@@ -14,22 +14,45 @@ options_default=../options
test_tmp
=
${
base_dir
}${
test_dir
}
test_tmp
=
${
base_dir
}${
test_dir
}
#_${suffix}
#_${suffix}
current_dir
=
$(
pwd
)
#current_dir=$(pwd)
echo
test_tmp
=
$test_tmp
if
[[
-d
"
$test_tmp
"
]]
;
then
echo
$test_tmp
already exists
else
echo
create
test
in
$test_tmp
mkdir
$test_tmp
mkdir
$test_tmp
fi
#copy default optios
#copy default optios
echo
copy default options from
$options_default
cp
-r
$options_default
$test_tmp
/options
cp
-r
$options_default
$test_tmp
/options
#override default options
#override default options
if
[
-d
"
$test_dir
"
&&
"
$(
ls
-A
${
test_dir
}
/options
)
"
]
;
then
if
[
[
-d
"
$test_dir
/options"
]]
&&
[[
"
$(
ls
-A
${
test_dir
}
/options
)
"
]
]
;
then
cp
-r
${
test_dir
}
/options/
*
$test_tmp
/options/
cp
-r
${
test_dir
}
/options/
*
$test_tmp
/options/
echo
copy specific options
for
this
test
from
${
test_dir
}
/options
fi
fi
# copy paths form repo source exec tmp dir
# copy paths form repo source exec tmp dir
echo
copy
${
test_dir
}
/pathnames
cp
${
test_dir
}
/pathnames
$test_tmp
cp
${
test_dir
}
/pathnames
$test_tmp
# make output dir locally
# make output dir locally
if
[[
-d
"
$test_tmp
/output"
]]
;
then
echo
$test_tmp
/output already exists
else
mkdir
${
test_tmp
}
/output
mkdir
${
test_tmp
}
/output
echo
create
${
test_tmp
}
/output
fi
if
[[
-L
"
${
test_tmp
}
/flexpartnoresm"
]]
;
then
rm
${
test_tmp
}
/flexpartnoresm
echo
remove existing
link
${
test_tmp
}
/flexpartnoresm
fi
ln
-s
$FP_exec
${
test_tmp
}
/flexpartnoresm
ln
-s
$FP_exec
${
test_tmp
}
/flexpartnoresm
echo link
$FP_exec
to
${
test_tmp
}
/flexpartnoresm
echo
$test_dir
is ready to run
echo
#cd $test_tmp
#cd $test_tmp
#echo $(pwd)
#echo $(pwd)
#echo $FP_exec
#echo $FP_exec
...
...
This diff is collapsed.
Click to expand it.
tests/create_tests
+
1
−
1
View file @
fa1548b0
...
@@ -13,7 +13,7 @@ if [ ! -d "$tmp_dir" ]; then
...
@@ -13,7 +13,7 @@ if [ ! -d "$tmp_dir" ]; then
echo
create
$tmp_dir
echo
create
$tmp_dir
fi
fi
echo
$tmp_dir
echo
create tests
in
$tmp_dir
#exit
#exit
./create_test test_0
$tmp_dir
../../src/flexpartnoresm
./create_test test_0
$tmp_dir
../../src/flexpartnoresm
./create_test test_1
$tmp_dir
../../src/flexpartnoresm
./create_test test_1
$tmp_dir
../../src/flexpartnoresm
...
...
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