Skip to content

Commit 0ff92ce

Browse files
committed
add run-all.sh
1 parent b28d5a4 commit 0ff92ce

File tree

6 files changed

+36
-2
lines changed

6 files changed

+36
-2
lines changed

run-all.sh

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/bin/bash
2+
3+
echo "Installing KJS..."
4+
make
5+
6+
echo
7+
echo "Running core test262..."
8+
make test262-clean
9+
make -k test262-core >test262.out
10+
echo "The result was saved at: test262.out"
11+
12+
echo
13+
echo "Running core test262 with measuring semantic coverage..."
14+
( cd test262-coverage
15+
make test262-clean
16+
make -k test262-core-coverage
17+
./coverage.sh >test262-coverage.out
18+
)
19+
echo "The result was saved at: test262-coverage/test262-coverage.out"
20+
21+
echo
22+
echo "Finding security attack..."
23+
( cd security-attack
24+
make clean
25+
make >security-attack.out
26+
)
27+
echo "The result was saved at: security-attack/security-attack.out"
28+
29+
echo
30+
echo "Verifying example programs..."
31+
( cd verification
32+
make >verification.out
33+
)
34+
echo "The result was saved at: verification/verification.out"

security-attack/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ js.k: ../js.k
1414

1515
.PHONY: run
1616
run:
17-
krun -w none --smt none --search send.js >send.js.out
17+
krun -w none --smt none --search send.js
1818

1919
.PHONY: clean
2020
clean:
File renamed without changes.

test262-coverage/coverage.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ echo "Generating coverage report..."
88
./report.py coverage ../js.k | \
99
sed 's/^[ ]\([ ]*0[ ][ ]*\)\(rule\|Let\|Do\|If\|Return\|Nop\|Exit\)/!\1\2/' | \
1010
sed 's/^\([ ][ ]*\)0/\1 /' | \
11-
sed 's/^!/ /' >coverage.k
11+
sed 's/^!/ /'
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)