Skip to content

Commit 9a0c25a

Browse files
committed
Update various IAST scripts to clarify how to use them properly on
Windows.
1 parent a10332f commit 9a0c25a

File tree

4 files changed

+23
-20
lines changed

4 files changed

+23
-20
lines changed

tools/Contrast/runBenchmark_wContrast.bat

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
@ECHO OFF
22
IF EXIST .\contrast.jar (
33
IF EXIST .\working (
4-
DEL \F \Q .\working\contrast.log
4+
DEL /F /Q .\working\contrast.log
55

6-
RMDIR \S .\working\cache
7-
8-
ECHO ""
6+
RMDIR /S /Q .\working\cache
97

8+
ECHO.
109
ECHO Previous Contrast results have been removed
11-
12-
ECHO ""
10+
ECHO.
1311
)
1412

1513
CD ..\..
1614

15+
ECHO After Crawl is Complete, hit Ctrl-C to stop Benchmark Tomcat instance.
16+
ECHO When it asks "Terminate batch job (Y/N)?" Enter N, so script will complete and copy results to /results directory.
17+
ECHO.
18+
1719
CALL mvn clean package cargo:run -Pdeploywcontrast
1820

1921
ECHO Copying Contrast reports to results directory

tools/CxIAST/runBenchmark_wCxIAST.bat

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@ IF EXIST .\cx-launcher.jar (
77
rmdir /q /s .\logs
88
)
99

10-
ECHO ""
11-
10+
ECHO.
1211
ECHO Previous Checkmarx IAST results have been removed
13-
14-
ECHO ""
12+
ECHO.
1513
)
1614
CD ..\..
1715

tools/HCL/runBenchmark_wHCL.bat

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,28 @@
11
@ECHO OFF
22
IF EXIST .\secagent.jar (
33
IF EXIST .\working (
4-
DEL /F /Q .\working\*.*
54

6-
RMDIR /S /Q .\working\cache
7-
8-
ECHO ""
5+
RMDIR /S /Q .\working
96

7+
ECHO.
108
ECHO Previous results have been removed
11-
12-
ECHO ""
9+
ECHO.
1310
)
1411

1512
CD ..\..
1613

14+
ECHO After Crawl is Complete, hit Ctrl-C to stop Benchmark Tomcat instance.
15+
ECHO When it asks "Terminate batch job (Y/N)?" Enter N, so script will complete and copy results to /results directory.
16+
ECHO.
17+
1718
CALL mvn clean package cargo:run -Pdeploywhcl
1819

19-
ECHO Copying reports to results directory
20+
ECHO Copying HCL reports to results directory
2021

21-
COPY tools\HCL\working\HCL-IAST.hcl results\HCL-IAST.hcl
22+
COPY tools\HCL\working\HCL-IAST.hcl results\Benchmark_HCL-IAST.hcl
2223

2324
CD tools\HCL
2425

25-
)
26+
) ELSE (
27+
ECHO HCL is a commercial product, so you need a licensed version of HCL in order to run it on the Benchmark. If you have access to HCL, download the HCL Agent for Java ^(secagent.jar^), put it into the /tools/HCL folder, and then rerun this script. Please contact HCL at https://www.hcl.com/.
28+
)

tools/HCL/runBenchmark_wHCL.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if [ -f ./secagent.jar ]; then
1515
mvn clean package cargo:run -Pdeploywhcl
1616

1717
echo "Copying report to results directory"
18-
cp tools/HCL/working/HCL-IAST.hcl results/HCL-IAST.hcl
18+
cp tools/HCL/working/HCL-IAST.hcl results/Benchmark_HCL-IAST.hcl
1919
cd tools/HCL
2020

2121
else

0 commit comments

Comments
 (0)