Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zmap
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
zmap
Commits
d75d0675
Commit
d75d0675
authored
16 years ago
by
rds
Browse files
Options
Downloads
Patches
Plain Diff
- Additional test (grep log, diff dumps)
- directory changes so that it's easier to find the files
parent
09662663
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/zmap_test_suite.sh
+48
-7
48 additions, 7 deletions
scripts/zmap_test_suite.sh
with
48 additions
and
7 deletions
scripts/zmap_test_suite.sh
+
48
−
7
View file @
d75d0675
...
...
@@ -96,11 +96,19 @@ zmap_message_out "got pid of '$X_APP_PID'"
}
# Set the file names
ZMAP_CONFIG_DIR
=
$BASE_DIR
if
[
"x
$RELEASE_LOCATION
"
==
"x."
]
;
then
OUTPUT_DIR
=
$BASE_DIR
else
OUTPUT_DIR
=
$RELEASE_LOCATION
/ZMap
fi
ZMAP_CONFIG_DIR
=
$OUTPUT_DIR
ZMAP_CONFIG
=
$ZMAP_CONFIG_DIR
/
$USER
.ZMap
ZMAP_LOG
=
${
USER
}
.zmap.log
COMMAND_FILE
=
${
USER
}
-xremote_gui
.cmd
CONFIG_FILE
=
${
USER
}
-xremote
.ini
COMMAND_FILE
=
$
OUTPUT_DIR
/
$
{
USER
}
-xremote_gui
.cmd
CONFIG_FILE
=
$
OUTPUT_DIR
/
$
{
USER
}
-xremote
.ini
# Set variables for the files
...
...
@@ -127,7 +135,7 @@ cat <<EOF > $ZMAP_CONFIG || zmap_message_exit "Failed to write '$ZMAP_CONFIG'"
[ZMap]
show_mainwindow=true
[logging]
filename=
$
USER
.zmap.log
filename=
$
ZMAP_LOG
EOF
# The config file the xremote_gui reads
...
...
@@ -161,11 +169,11 @@ featuresets=coding;trf;transcript;est_human
</zmap>
__EOC__
<zmap action="export_context">
<export filename="
$
(
pwd
)
/
$SEQUENCE
.gff" format="gff" />
<export filename="
$
OUTPUT_DIR
/
$SEQUENCE
.gff" format="gff" />
</zmap>
__EOC__
<zmap action="export_context">
<export filename="
$
(
pwd
)
/
$SEQUENCE
.context" format="context" />
<export filename="
$
OUTPUT_DIR
/
$SEQUENCE
.context" format="context" />
</zmap>
__EOC__
...
...
@@ -193,15 +201,48 @@ kill -9 $X_APP_PID
# d) no sgifaceserver process
# Now we need to test stuff.
# grep CRITICAL zmap.log
CRITICAL_MESSAGES
=
`
grep
CRITICAL
$ZMAP_CONFIG_DIR
/
$ZMAP_LOG
2>&1
`
if
[
"x
$CRITICAL_MESSAGES
"
!=
"x"
]
;
then
zmap_message_err
"Testing zmap resulted in CRITICAL message(s) in
$ZMAP_CONFIG_DIR
/
$ZMAP_LOG
"
zmap_message_err
$CRITICAL_MESSAGES
zmap_message_exit
"
$SCRIPT_NAME
failed."
fi
REPORT_IDENTICAL_FILES
=
-s
REPORT_IDENTICAL_FILES
=
""
# diff $SEQUENCE.context gold.context
# this should be from the build_config.sh, not the same file!!!
ZMAP_GOLD_CONTEXT
=
$OUTPUT_DIR
/
$SEQUENCE
.context
CONTEXT_DIFF
=
`
diff
$REPORT_IDENTICAL_FILES
$OUTPUT_DIR
/
$SEQUENCE
.context
$ZMAP_GOLD_CONTEXT
2>&1
`
if
[
"x
$CONTEXT_DIFF
"
!=
"x"
]
;
then
zmap_message_err
"Testing zmap resulted in differences between dumped context and gold context"
# echo $CONTEXT_DIFF
zmap_message_exit
"
$SCRIPT_NAME
failed."
fi
# diff $SEQUENCE.gff gold.gff
# this should be from the build_config.sh, not the same file!!!
ZMAP_GOLD_GFF
=
$OUTPUT_DIR
/
$SEQUENCE
.gff
GFF_DIFF
=
`
diff
$REPORT_IDENTICAL_FILES
$OUTPUT_DIR
/
$SEQUENCE
.gff
$ZMAP_GOLD_GFF
2>&1
`
if
[
"x
$GFF_DIFF
"
!=
"x"
]
;
then
zmap_message_err
"Testing zmap resulted in differences between dumped gff and gold gff"
# echo $GFF_DIFF
zmap_message_exit
"
$SCRIPT_NAME
failed."
fi
zmap_message_out
"Reached end of '
$SCRIPT_NAME
'"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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