Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
abc-interpreter
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
8
Issues
8
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
clean-and-itasks
abc-interpreter
Commits
7d94eac3
Verified
Commit
7d94eac3
authored
Sep 07, 2019
by
Camil Staps
🚀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
run_tests.sh: add -M (don't make ../src); remove -R (recompile) options
parent
41e0f2a9
Pipeline
#29165
passed with stages
in 12 minutes and 33 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
20 deletions
+13
-20
.gitlab-ci.yml
.gitlab-ci.yml
+1
-1
test/run_tests.sh
test/run_tests.sh
+12
-19
No files found.
.gitlab-ci.yml
View file @
7d94eac3
...
...
@@ -71,7 +71,7 @@ interworking-Start:
stage
:
test-interworking
script
:
-
cd test
-
./run_tests.sh -
R
qo functions
-
./run_tests.sh -qo functions
-
make -B test-CodeSharing
-
CFLAGS='-DCOMPUTED_GOTOS -Ofast -fno-unsafe-math-optimizations' make -B test-CodeSharing
...
...
test/run_tests.sh
View file @
7d94eac3
...
...
@@ -18,12 +18,12 @@ WASM=0
INTERPRETERGENWASMFLAGS
=
""
SRCMAKETARGETS
=
"all"
MAKE
=
1
BENCHMARK
=
0
EXPECTED_PREFIX
=
".64"
BC_EXTENSION
=
"bc"
RUN_ONLY
=()
PROFILE
=
0
RECOMPILE
=
1
QUIET
=
0
OPTIMISE
=
1
...
...
@@ -55,22 +55,22 @@ print_help () {
echo
"Options:"
echo
" -H Print this help"
echo
echo
" -M Don't make ../src before running tests"
echo
" -o TEST Only run test TEST"
echo
" -q Don't show program results"
echo
" -b Run benchmarks"
echo
echo
" -w Use the WebAssembly interpreter (does not support all options below)"
echo
echo
" -b Run benchmarks"
echo
" -3 Run tests as if on a 32-bit machine"
echo
" -f Compile the interpreter with -Ofast -fno-unsafe-math-optimizations"
echo
" -h SIZE Set heap size to SIZE"
echo
" -O Skip the ABC optimisation step"
echo
echo
" -h SIZE Set heap size to SIZE"
echo
" -s SIZE Set stack size to SIZE"
echo
" -3 Run tests as if on a 32-bit machine"
echo
" -R Don't recompile modules (faster, but halt addresses may be incorrect if optimisations are missed)"
echo
echo
" -d Print all instructions as they are executed"
echo
" -l List bytecode before execution"
echo
" -p Make PDF profiles (e.g. nfib.prof.pdf) using google-pprof"
echo
" -q Don't show program results"
exit
0
}
...
...
@@ -86,7 +86,7 @@ contains () {
return
1
}
OPTS
=
`
getopt
"Ho:wb
fh:Os:3R
dlpq"
"
$@
"
`
||
print_usage
OPTS
=
`
getopt
"Ho:wb
Mfh:Os:3
dlpq"
"
$@
"
`
||
print_usage
eval set
--
"
$OPTS
"
while
true
;
do
...
...
@@ -111,6 +111,9 @@ while true; do
-f
)
SRCMAKETARGETS+
=
" optimized"
shift
;;
-M
)
MAKE
=
0
shift
;;
-h
)
RUNFLAGS+
=
" -h
$2
"
NATIVE_RUNFLAGS+
=
" -h
$2
"
...
...
@@ -126,9 +129,6 @@ while true; do
EXPECTED_PREFIX
=
".32"
CFLAGS+
=
" -m32 -DWORD_WIDTH=32"
shift
;;
-R
)
RECOMPILE
=
0
shift
;;
-d
)
CFLAGS+
=
" -DDEBUG_ALL_INSTRUCTIONS"
...
...
@@ -160,7 +160,7 @@ if [ $BENCHMARK -gt 0 ] && [ $WASM -eq 0 ] && [[ $SRCMAKETARGETS != *"optimized"
sleep
1
fi
if
[
"
$OS
"
!=
"Windows_NT"
]
;
then
if
[
"
$OS
"
!=
"Windows_NT"
]
&&
[
$MAKE
-gt
0
]
;
then
CFLAGS
=
"
$CFLAGS
"
make
-BC
../src
$SRCMAKETARGETS
||
exit
1
fi
...
...
@@ -172,10 +172,6 @@ if [ $WASM -gt 0 ]; then
fi
fi
if
[
$RECOMPILE
-gt
0
]
;
then
rm
-fr
Clean
\
System
\
Files
fi
for
MODULE
in
*
.icl
do
MODULE
=
"
${
MODULE
/.icl/
}
"
...
...
@@ -207,9 +203,6 @@ do
FAILED+
=(
"
$MODULE
"
)
continue
fi
if
[
$RECOMPILE
-gt
0
]
;
then
cpmq project
"
$MODULE
.prj"
build
fi
if
[
!
-f
"
$MODULE$EXPECTED_PREFIX
.expected"
]
;
then
echo
-e
"
${
YELLOW
}
Skipping
$MODULE
(no expected outcome)
${
RESET
}
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment