Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VirusCheckPlugin4Rosetta
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Digital Preservation
VirusCheckPlugin4Rosetta
Commits
54cf8e60
Commit
54cf8e60
authored
2 years ago
by
Andreas Romeyke
Browse files
Options
Downloads
Patches
Plain Diff
- fixed test
parent
75443154
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+17
-2
17 additions, 2 deletions
Makefile
with
17 additions
and
2 deletions
Makefile
+
17
−
2
View file @
54cf8e60
...
@@ -29,6 +29,10 @@ SOURCES=java/org/slub/rosetta/dps/repository/plugin/SLUBVirusCheckClamAVPlugin.j
...
@@ -29,6 +29,10 @@ SOURCES=java/org/slub/rosetta/dps/repository/plugin/SLUBVirusCheckClamAVPlugin.j
OBJS
=
$(
SOURCES:.java
=
.class
)
OBJS
=
$(
SOURCES:.java
=
.class
)
JAR
=
SLUBVirusCheckPlugin.jar
JAR
=
SLUBVirusCheckPlugin.jar
BUILD
:=
build/
BUILD
:=
build/
export
CMD
=
/usr/bin/java
-cp
$(
CLASSPATH
)
:
$(
JUNITCLASSPATH
)
:
$(
JAR
)
org.slub.rosetta.dps.repository.plugin.SLUBVirusCheckClamAVPlugin
#export CMD=echo SIGNATURE: Eicar-Signature
CMD_EICAR
:=
$(
shell
${
CMD
}
EICAR/eicar |
grep
-F
'SIGNATURE:'
)
CMD_NOVIRUS
:=
$(
shell
${
CMD
}
Makefile |
grep
-F
'SIGNATURE:'
)
all
:
$(BUILD) $(JAR)
all
:
$(BUILD) $(JAR)
...
@@ -43,7 +47,18 @@ jarclean:
...
@@ -43,7 +47,18 @@ jarclean:
@
rm
-Rf
$(
BUILD
)
@
rm
-Rf
$(
BUILD
)
test
:
$(OBJS)
test
:
$(OBJS)
java
-cp
${
CLASSPATH
}
:
$(
JUNITCLASSPATH
)
:
$(
JAR
)
org.slub.rosetta.dps.repository.plugin.SLUBVirusCheckClamAVPlugin EICAR/eicar
@
echo
-n
"testing EICAR: "
ifeq
"$(CMD_EICAR)" "RESULT: 2 SIGNATURE: Eicar-Signature"
@
echo
pass
;
else
@
echo
fail
;
exit
2
;
endif
@
echo
-n
"testing No virus: "
ifeq
"$(CMD_NOVIRUS)" "RESULT: 0 SIGNATURE: "
@
echo
pass
;
else
@
echo
fail
;
exit
2
;
endif
clean
:
jarclean
clean
:
jarclean
@
rm
-Rf
doc/
@
rm
-Rf
doc/
...
...
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