-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First draft - only support parsing strings and lists
- Loading branch information
moticless
committed
May 8, 2023
1 parent
588a0d4
commit 4096dda
Showing
57 changed files
with
10,414 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Prerequisites | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y cmake libssl-dev valgrind git | ||
git clone https://git.cryptomilk.org/projects/cmocka.git | ||
cd cmocka | ||
mkdir build | ||
cd build | ||
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local | ||
make | ||
ctest | ||
sudo make install | ||
shell: bash | ||
|
||
- name: Build and run project | ||
run: | | ||
export LD_LIBRARY_PATH=/usr/local/lib/ | ||
make | ||
working-directory: ${{github.workspace}} |
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,15 @@ | ||
bin/* | ||
lib/* | ||
.idea/* | ||
/**/*.o | ||
/**/*.d | ||
|
||
test/log/* | ||
test/tmp/* | ||
test/test_static_lib | ||
test/test_lib | ||
|
||
examples/example1 | ||
examples/dumps/*.json | ||
|
||
|
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023, Redis Labs | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
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,39 @@ | ||
all: | ||
$(MAKE) -C src -f Makefile $@ | ||
$(MAKE) -C src/ext -f Makefile $@ | ||
$(MAKE) -C examples -f Makefile $@ | ||
$(MAKE) -C test -f Makefile $@ | ||
./runtests -v | ||
|
||
lib: | ||
$(MAKE) -C src -f Makefile all | ||
$(MAKE) -C src/ext -f Makefile all | ||
$(MAKE) -C examples -f Makefile all | ||
|
||
clean: | ||
$(MAKE) -C src -f Makefile $@ | ||
$(MAKE) -C src/ext -f Makefile $@ | ||
$(MAKE) -C examples -f Makefile $@ | ||
$(MAKE) -C test -f Makefile $@ | ||
|
||
example: | ||
cd examples && export LD_LIBRARY_PATH=../lib && ./example1 | ||
|
||
test: | ||
./runtests | ||
|
||
valgrind: | ||
./runtests -v | ||
|
||
help: | ||
@echo "Target rules:" | ||
@echo " all - Build parser libraries, tests, and run tests." | ||
@echo " lib - Build parser libraries." | ||
@echo " test - Run tests with shared lib." | ||
@echo " valgrind - Run tests with static lib and valgrind." | ||
@echo " example - Run the example." | ||
@echo " clean - " | ||
@echo " help - Prints this message." | ||
|
||
|
||
.PHONY: all clean test help valgrind lib |
Oops, something went wrong.