Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
e5223efe
Unverified
Commit
e5223efe
authored
Dec 06, 2023
by
F-WRunTime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove version from script input, use kontrolrc file
parent
7a926bcf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
31 deletions
+2
-31
package.json
packages/contracts-bedrock/package.json
+1
-1
run-kontrol.sh
...ges/contracts-bedrock/test/kontrol/kontrol/run-kontrol.sh
+1
-30
No files found.
packages/contracts-bedrock/package.json
View file @
e5223efe
...
...
@@ -18,7 +18,7 @@
"build:go-ffi"
:
"(cd scripts/go-ffi && go build)"
,
"autogen:invariant-docs"
:
"npx tsx scripts/invariant-doc-gen.ts"
,
"test"
:
"pnpm build:go-ffi && forge test"
,
"test:kontrol"
:
"./test/kontrol/kontrol/run-kontrol.sh"
,
"test:kontrol"
:
"./test/kontrol/kontrol/run-kontrol.sh
0.1.74
"
,
"genesis"
:
"./scripts/generate-l2-genesis.sh"
,
"coverage"
:
"pnpm build:go-ffi && forge coverage"
,
"coverage:lcov"
:
"pnpm build:go-ffi && forge coverage --report lcov"
,
...
...
packages/contracts-bedrock/test/kontrol/kontrol/run-kontrol.sh
View file @
e5223efe
...
...
@@ -7,26 +7,12 @@ set -u
blank_line
()
{
echo
''
>
&2
;
}
notif
()
{
echo
"==
$0
:
$@
"
>
&2
;
}
#############
# CMD Check #
#############
if
[
$#
-eq
0
]
;
then
echo
"No arguments provided"
echo
"Usage: ./run-kontrol.sh <KONTROL_RELEASE>"
exit
1
fi
# -h or --help
if
[
"
$1
"
==
"-h"
]
||
[
"
$1
"
==
"--help"
]
;
then
echo
"Usage: ./run-kontrol.sh <KONTROL_RELEASE>"
exit
0
fi
#############
# Variables #
#############
export
FOUNDRY_PROFILE
=
kontrol
export
CONTAINER_NAME
=
kontrol-tests
export
KONTROL_RELEASE
=
$
{
1
}
;
shift
export
KONTROL_RELEASE
=
$
(
cat
.kontrolrc
)
# Set Script Directory Variables <root>/packages/contracts-bedrock/test/kontrol/kontrol
SCRIPT_HOME
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
>
/dev/null 2>&1
&&
pwd
)
"
...
...
@@ -38,21 +24,6 @@ WORKSPACE_DIR=$( cd $SCRIPT_HOME/../../.. >/dev/null 2>&1 && pwd )
notif
"Run Directory:
$WORKSPACE_DIR
"
blank_line
# Set Log Directory <root>/packages/contracts-bedrock/test/kontrol/kontrol/logs
# LOG_DIRECTORY=$SCRIPT_HOME/logs
# notif "Log Directory: $LOG_DIRECTORY"
# blank_line
# if [ ! -d $LOG_DIRECTORY ] ; then
# mkdir $LOG_DIRECTORY
# fi
# LOG_FILE="run-kontrol-$(date +'%Y-%m-%d-%H-%M-%S').log"
# notif "Logging to $LOG_DIRECTORY/$LOG_FILE"
# blank_line
# exec > >(tee -i $LOG_DIRECTORY/$LOG_FILE)
# exec 2>&1
#############
# Functions #
#############
...
...
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