* Approval tests
Move to approvals to do the approval-style tests we had in filters-cases.
You can configure which diff viewer it uses with ~/.approvalsConfig
Pros:
* standard diff-based thing
* easy to "bless" all the differences (see `forceApproveAll`)
* fairly standard pattern
* forces a comprehensive all permutations and combinations vs
the ad hoc subset we picked before
Cons:
* really wants to name the files *.approved.txt
* spawns _all the diffs_ at once and so an overarching change
can crush your computer with diff (e.g. if you use `meld` like
I do, you end up with 100+ diffs opening)
* comprehensive testing means this takes longer, now ~16s to do
all these tests
* use latest approvals and its new settings
* Normalize line endings in the hope of getting windows passing
* fix for windows
* oops
Co-authored-by: partouf <partouf@gmail.com>
* Update docenizer to python3
* Remove unused code in docenizer
* Create new asm-docs-arm and asm-docs-api-arm files for parsing and retrieving arm related opcodes. Add conditional instruction switch.
* Rename docs files to specify instruction set
* Add arm32 at /api/asm/arm32/:opcode
* Add @jovere to contributor list
* Add `instructionSet` compiler option
* Update client to access correct instruction based on the `instructionSet` option
* Add `arm32` `instructionSet` option for ARM C++ compilers
* Add `arm32` instructionSet to obvious places in C/C++
The docenizer script is ran manually every time we update the docs,
so we can modify it while a fix lands on the Intel manual,
and then Felix updates the page.
We'll just have to remember to check the fix before updating the docs
Fixes#2380
This does not change the output, but makes it more robust against
different kinds of outputs/initial states.
Thanks again to @Ethiraric for all the effort that went into this!
The docenizer will now download and extract the archive if no input
folder is specified. The extraction directory is currently hardcoded
into a variable (`ASMDOC_DIR`).
This is more a hack than anything else on the json generation.
The output from the docenizer on my machine is very different from the
already existed generated code.
The following changes were made:
* Add 4 more spaces before the `case` and `return` statements.
* Indent by default the json by 16 spaces. Since there is only one
depth level, this effectively prefixes by 16 spaces all fields.
* Replace json separators to remove trailing spaces.
* Replace the last '}' of the json by a 12-spaces-indented line.
The variable `name` was used incorrectly at several points in the
`parse` method. This results in the filename being overwritten by
instruction names and the function assigning wrong URLs.
I have removed the shadowing and explicited the different name
variables.