-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Convert test case configs to new format * Modify test case config checker * Update json_lint checker * Resolve issue with checkers * Update circle ci config * Check config hash * Fix hash in runtime_user_input_call config * Update image version * Update checker * Change the way web3 was used * Generate config bytecode hash by runtime bytecode * Remove line break. And append all line numbers * Check if solidity file exists * add bytecode offset at SUB opcode * Add offset add SUB opcode * Add bytecode offset at SUB * Add offset at MUL * Add offset at ADD opcode * Correct offset * Add offset at SSTORE * Add offset at JUMP * fix byte code loc to reference creation bytecode * Check create and runtime bytecode of all contracts within json files * Display errors in configs in readble format * Update yaml schema linter * YAML schema validation * Rewrite bash script of yaml schema validation to js * bytecode offset at opcode 0xfe in ConstructorCreate * Update offset to opcode 0xfe and ConstructorCreateArgument * Update offset to opcode 0xfe * #168 Change folder structure * Update Circle CI Docker image * #168 GitHub checker for folder structure * #168 Update circle ci task name * #168 Update circle ci move task to flow * #168 Update circle ci image and yaml content validator
- Loading branch information
Showing
418 changed files
with
4,432 additions
and
946 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
*~ | ||
.DS_Store | ||
node_modules/ | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
find ../test_cases -name '*.json' -print | while read line; do | ||
command=$(./node_modules/jsonlint/lib/cli.js $line > /dev/null) | ||
if (($? > 0)); then | ||
echo "ERROR: Wrong json object - $line" | ||
exit 1 | ||
fi | ||
done |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
|
||
const walkSync = (dir, filelist=[]) => { | ||
fs.readdirSync(dir).forEach((file) => { | ||
if(fs.statSync(path.join(dir, file)).isDirectory()) { | ||
filelist = walkSync(path.join(dir, file), filelist) | ||
} else { | ||
filelist = filelist.concat(path.join(dir, file)); | ||
} | ||
}); | ||
return filelist; | ||
}; | ||
|
||
let hasError = false; | ||
|
||
const files = walkSync('../test_cases'); | ||
|
||
files.map(file => { | ||
const splitedPath = file.split('/'); | ||
|
||
const [filepath, folder, ...rest] = splitedPath.reverse(); | ||
const [filename, ...restels] = filepath.split('.'); | ||
|
||
if (folder !== filename) { | ||
hasError = true; | ||
console.log(`Path is wrong: ${file}`); | ||
} | ||
}); | ||
|
||
if (hasError) { | ||
process.exit(1); | ||
} else { | ||
process.exit(0); | ||
} |
Oops, something went wrong.