├── .github ├── FUNDING.yml └── workflows │ └── test.yml ├── .gitignore ├── .travis.yml ├── LICENSE ├── MANIFEST.in ├── Makefile ├── README.rst ├── amalgamate ├── amalgamate.py ├── nala.c.json └── nala.h.json ├── codecov.yml ├── docs ├── build-and-run-assert-eq-fail.png ├── build-and-run-basic.png ├── build-and-run-failures-1.png ├── build-and-run-failures-2.png ├── build-and-run-mock-exit.png ├── build-and-run-mock-square.png ├── build-and-run-no-implementation.png ├── build-and-run-one-test.png └── build-and-run.png ├── examples ├── Makefile ├── README.rst ├── basic │ ├── Makefile │ ├── README.rst │ ├── test_assertions.c │ ├── test_internal_mock.c │ └── test_time.c ├── failures │ ├── Makefile │ ├── README.rst │ ├── foo.c │ ├── foo.h │ ├── main.c │ ├── v1.bin │ ├── v1.txt │ ├── v2.bin │ └── v2.txt ├── mock_api_examples │ ├── Makefile │ ├── README.rst │ ├── foo.c │ ├── foo.h │ └── main.c ├── mock_exit │ ├── Makefile │ ├── README.rst │ └── main.c ├── mock_square │ ├── Makefile │ ├── README.rst │ ├── foo.c │ ├── foo.h │ └── test_foo.c ├── mock_struct_member_in_assert │ ├── Makefile │ ├── README.rst │ ├── foo.c │ ├── foo.h │ └── main.c ├── mock_struct_member_out_copy │ ├── Makefile │ ├── README.rst │ ├── foo.c │ ├── foo.h │ └── main.c └── no_implementation │ ├── Makefile │ ├── README.rst │ ├── foo.h │ └── test_foo.c ├── include └── nala.h ├── make ├── dummy.c └── test.mk ├── nala ├── __init__.py ├── __main__.py ├── api.py ├── cli.py ├── dist │ ├── nala.c │ └── nala.h ├── generator.py ├── inspect.py ├── real_variadic_functions.c ├── rename_parameters.txt ├── subcommands │ └── init │ │ ├── Makefile │ │ ├── test.mk │ │ ├── test_assertions.c │ │ └── test_time.c ├── templates │ ├── nala.c │ ├── nala_mocks.c.jinja2 │ └── nala_mocks.h.jinja2 ├── version.py └── wrap_internal_symbols.py ├── requirements.txt ├── setup.py ├── setup.sh ├── src ├── diff │ ├── diff.c │ └── diff.h ├── hexdump │ ├── hexdump.c │ └── hexdump.h ├── hf.c ├── hf.h ├── nala.c ├── subprocess.c ├── subprocess.h ├── traceback.c ├── traceback.h ├── utils.c └── utils.h ├── tests ├── __init__.py ├── files │ ├── Makefile │ ├── collect │ │ ├── test.h │ │ ├── test_nala_mocks.c │ │ ├── test_nala_mocks.h │ │ ├── test_nala_mocks.ldflags │ │ └── test_tests.c │ ├── dummy_functions │ │ ├── test.h │ │ ├── test_nala_mocks.c │ │ ├── test_nala_mocks.h │ │ ├── test_nala_mocks.ldflags │ │ └── test_tests.c │ ├── empty │ │ ├── test_nala_mocks.c │ │ ├── test_nala_mocks.h │ │ ├── test_nala_mocks.ldflags │ │ └── test_tests.c │ ├── missing_declaration │ │ └── test_tests.c │ ├── no_rename_underscores │ │ ├── test_nala_mocks.c │ │ ├── test_nala_mocks.h │ │ ├── test_nala_mocks.ldflags │ │ └── test_tests.c │ ├── open │ │ ├── test_nala_mocks.c │ │ ├── test_nala_mocks.h │ │ ├── test_nala_mocks.ldflags │ │ └── test_tests.c │ ├── pre_processor_error │ │ └── test_tests.c │ ├── rename_parameters_without_name │ │ ├── test.h │ │ ├── test.txt │ │ ├── test_nala_mocks.c │ │ ├── test_nala_mocks.h │ │ ├── test_nala_mocks.ldflags │ │ └── test_tests.c │ ├── rename_underscores │ │ ├── test_nala_mocks.c │ │ ├── test_nala_mocks.h │ │ ├── test_nala_mocks.ldflags │ │ └── test_tests.c │ └── wrap_internal_symbols │ │ ├── test.c │ │ ├── test.ldflags │ │ ├── test.o │ │ ├── test.wrapped.o │ │ ├── test_function_sections.o │ │ └── test_function_sections.wrapped.o ├── test_command_line.py └── test_wrap_internal_symbols.py └── tst ├── Makefile ├── make ├── 1 │ ├── Makefile │ ├── foo.c │ └── foo.h ├── 2 │ ├── Makefile │ └── test_foo.c ├── 3 │ └── test_foo.c └── Makefile ├── mock ├── Makefile ├── dummy_functions.c ├── dummy_functions.h ├── dummy_functions_not_mocked.h ├── main.c ├── subprocess.c └── subprocess.h ├── mock_real_cat ├── Makefile ├── dummy_functions.c ├── dummy_functions.h └── main.c ├── no_mock ├── Makefile └── main.c └── test ├── Makefile ├── files ├── bar.bin ├── bar.txt ├── empty.txt ├── foo.bin └── foo.txt ├── main.c ├── subprocess.c ├── subprocess.h ├── subtest ├── Makefile ├── test_fail.c └── test_ok.c └── test_filter_nala.c /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: eerimoq 2 | -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/LICENSE -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/MANIFEST.in -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/Makefile -------------------------------------------------------------------------------- /README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/README.rst -------------------------------------------------------------------------------- /amalgamate/amalgamate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/amalgamate/amalgamate.py -------------------------------------------------------------------------------- /amalgamate/nala.c.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/amalgamate/nala.c.json -------------------------------------------------------------------------------- /amalgamate/nala.h.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/amalgamate/nala.h.json -------------------------------------------------------------------------------- /codecov.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/codecov.yml -------------------------------------------------------------------------------- /docs/build-and-run-assert-eq-fail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/docs/build-and-run-assert-eq-fail.png -------------------------------------------------------------------------------- /docs/build-and-run-basic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/docs/build-and-run-basic.png -------------------------------------------------------------------------------- /docs/build-and-run-failures-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/docs/build-and-run-failures-1.png -------------------------------------------------------------------------------- /docs/build-and-run-failures-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/docs/build-and-run-failures-2.png -------------------------------------------------------------------------------- /docs/build-and-run-mock-exit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/docs/build-and-run-mock-exit.png -------------------------------------------------------------------------------- /docs/build-and-run-mock-square.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/docs/build-and-run-mock-square.png -------------------------------------------------------------------------------- /docs/build-and-run-no-implementation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/docs/build-and-run-no-implementation.png -------------------------------------------------------------------------------- /docs/build-and-run-one-test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/docs/build-and-run-one-test.png -------------------------------------------------------------------------------- /docs/build-and-run.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/docs/build-and-run.png -------------------------------------------------------------------------------- /examples/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/Makefile -------------------------------------------------------------------------------- /examples/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/README.rst -------------------------------------------------------------------------------- /examples/basic/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/basic/Makefile -------------------------------------------------------------------------------- /examples/basic/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/basic/README.rst -------------------------------------------------------------------------------- /examples/basic/test_assertions.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/basic/test_assertions.c -------------------------------------------------------------------------------- /examples/basic/test_internal_mock.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/basic/test_internal_mock.c -------------------------------------------------------------------------------- /examples/basic/test_time.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/basic/test_time.c -------------------------------------------------------------------------------- /examples/failures/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/failures/Makefile -------------------------------------------------------------------------------- /examples/failures/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/failures/README.rst -------------------------------------------------------------------------------- /examples/failures/foo.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/failures/foo.c -------------------------------------------------------------------------------- /examples/failures/foo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/failures/foo.h -------------------------------------------------------------------------------- /examples/failures/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/failures/main.c -------------------------------------------------------------------------------- /examples/failures/v1.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/failures/v1.bin -------------------------------------------------------------------------------- /examples/failures/v1.txt: -------------------------------------------------------------------------------- 1 | Hello! 2 | 3 | My name is Kalle. 4 | -------------------------------------------------------------------------------- /examples/failures/v2.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/failures/v2.bin -------------------------------------------------------------------------------- /examples/failures/v2.txt: -------------------------------------------------------------------------------- 1 | Hello! 2 | 3 | Your name is Kalle. 4 | -------------------------------------------------------------------------------- /examples/mock_api_examples/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/mock_api_examples/Makefile -------------------------------------------------------------------------------- /examples/mock_api_examples/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/mock_api_examples/README.rst -------------------------------------------------------------------------------- /examples/mock_api_examples/foo.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/mock_api_examples/foo.c -------------------------------------------------------------------------------- /examples/mock_api_examples/foo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/mock_api_examples/foo.h -------------------------------------------------------------------------------- /examples/mock_api_examples/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/mock_api_examples/main.c -------------------------------------------------------------------------------- /examples/mock_exit/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/mock_exit/Makefile -------------------------------------------------------------------------------- /examples/mock_exit/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/mock_exit/README.rst -------------------------------------------------------------------------------- /examples/mock_exit/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/mock_exit/main.c -------------------------------------------------------------------------------- /examples/mock_square/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/mock_square/Makefile -------------------------------------------------------------------------------- /examples/mock_square/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/mock_square/README.rst -------------------------------------------------------------------------------- /examples/mock_square/foo.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/mock_square/foo.c -------------------------------------------------------------------------------- /examples/mock_square/foo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/mock_square/foo.h -------------------------------------------------------------------------------- /examples/mock_square/test_foo.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/mock_square/test_foo.c -------------------------------------------------------------------------------- /examples/mock_struct_member_in_assert/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/mock_struct_member_in_assert/Makefile -------------------------------------------------------------------------------- /examples/mock_struct_member_in_assert/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/mock_struct_member_in_assert/README.rst -------------------------------------------------------------------------------- /examples/mock_struct_member_in_assert/foo.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/mock_struct_member_in_assert/foo.c -------------------------------------------------------------------------------- /examples/mock_struct_member_in_assert/foo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/mock_struct_member_in_assert/foo.h -------------------------------------------------------------------------------- /examples/mock_struct_member_in_assert/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/mock_struct_member_in_assert/main.c -------------------------------------------------------------------------------- /examples/mock_struct_member_out_copy/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/mock_struct_member_out_copy/Makefile -------------------------------------------------------------------------------- /examples/mock_struct_member_out_copy/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/mock_struct_member_out_copy/README.rst -------------------------------------------------------------------------------- /examples/mock_struct_member_out_copy/foo.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/mock_struct_member_out_copy/foo.c -------------------------------------------------------------------------------- /examples/mock_struct_member_out_copy/foo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/mock_struct_member_out_copy/foo.h -------------------------------------------------------------------------------- /examples/mock_struct_member_out_copy/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/mock_struct_member_out_copy/main.c -------------------------------------------------------------------------------- /examples/no_implementation/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/no_implementation/Makefile -------------------------------------------------------------------------------- /examples/no_implementation/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/no_implementation/README.rst -------------------------------------------------------------------------------- /examples/no_implementation/foo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/no_implementation/foo.h -------------------------------------------------------------------------------- /examples/no_implementation/test_foo.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/examples/no_implementation/test_foo.c -------------------------------------------------------------------------------- /include/nala.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/include/nala.h -------------------------------------------------------------------------------- /make/dummy.c: -------------------------------------------------------------------------------- 1 | void foo(void) 2 | { 3 | } 4 | -------------------------------------------------------------------------------- /make/test.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/make/test.mk -------------------------------------------------------------------------------- /nala/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/nala/__init__.py -------------------------------------------------------------------------------- /nala/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/nala/__main__.py -------------------------------------------------------------------------------- /nala/api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/nala/api.py -------------------------------------------------------------------------------- /nala/cli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/nala/cli.py -------------------------------------------------------------------------------- /nala/dist/nala.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/nala/dist/nala.c -------------------------------------------------------------------------------- /nala/dist/nala.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/nala/dist/nala.h -------------------------------------------------------------------------------- /nala/generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/nala/generator.py -------------------------------------------------------------------------------- /nala/inspect.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/nala/inspect.py -------------------------------------------------------------------------------- /nala/real_variadic_functions.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/nala/real_variadic_functions.c -------------------------------------------------------------------------------- /nala/rename_parameters.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/nala/rename_parameters.txt -------------------------------------------------------------------------------- /nala/subcommands/init/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/nala/subcommands/init/Makefile -------------------------------------------------------------------------------- /nala/subcommands/init/test.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/nala/subcommands/init/test.mk -------------------------------------------------------------------------------- /nala/subcommands/init/test_assertions.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/nala/subcommands/init/test_assertions.c -------------------------------------------------------------------------------- /nala/subcommands/init/test_time.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/nala/subcommands/init/test_time.c -------------------------------------------------------------------------------- /nala/templates/nala.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/nala/templates/nala.c -------------------------------------------------------------------------------- /nala/templates/nala_mocks.c.jinja2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/nala/templates/nala_mocks.c.jinja2 -------------------------------------------------------------------------------- /nala/templates/nala_mocks.h.jinja2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/nala/templates/nala_mocks.h.jinja2 -------------------------------------------------------------------------------- /nala/version.py: -------------------------------------------------------------------------------- 1 | __version__ = '0.180.0' 2 | -------------------------------------------------------------------------------- /nala/wrap_internal_symbols.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/nala/wrap_internal_symbols.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | pycparser>=2.21 2 | jinja2 3 | -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/setup.py -------------------------------------------------------------------------------- /setup.sh: -------------------------------------------------------------------------------- 1 | export NALA_ROOT=$(readlink -f .) 2 | -------------------------------------------------------------------------------- /src/diff/diff.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/src/diff/diff.c -------------------------------------------------------------------------------- /src/diff/diff.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/src/diff/diff.h -------------------------------------------------------------------------------- /src/hexdump/hexdump.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/src/hexdump/hexdump.c -------------------------------------------------------------------------------- /src/hexdump/hexdump.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/src/hexdump/hexdump.h -------------------------------------------------------------------------------- /src/hf.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/src/hf.c -------------------------------------------------------------------------------- /src/hf.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/src/hf.h -------------------------------------------------------------------------------- /src/nala.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/src/nala.c -------------------------------------------------------------------------------- /src/subprocess.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/src/subprocess.c -------------------------------------------------------------------------------- /src/subprocess.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/src/subprocess.h -------------------------------------------------------------------------------- /src/traceback.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/src/traceback.c -------------------------------------------------------------------------------- /src/traceback.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/src/traceback.h -------------------------------------------------------------------------------- /src/utils.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/src/utils.c -------------------------------------------------------------------------------- /src/utils.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/src/utils.h -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/files/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/Makefile -------------------------------------------------------------------------------- /tests/files/collect/test.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/collect/test.h -------------------------------------------------------------------------------- /tests/files/collect/test_nala_mocks.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/collect/test_nala_mocks.c -------------------------------------------------------------------------------- /tests/files/collect/test_nala_mocks.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/collect/test_nala_mocks.h -------------------------------------------------------------------------------- /tests/files/collect/test_nala_mocks.ldflags: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/collect/test_nala_mocks.ldflags -------------------------------------------------------------------------------- /tests/files/collect/test_tests.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/collect/test_tests.c -------------------------------------------------------------------------------- /tests/files/dummy_functions/test.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/dummy_functions/test.h -------------------------------------------------------------------------------- /tests/files/dummy_functions/test_nala_mocks.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/dummy_functions/test_nala_mocks.c -------------------------------------------------------------------------------- /tests/files/dummy_functions/test_nala_mocks.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/dummy_functions/test_nala_mocks.h -------------------------------------------------------------------------------- /tests/files/dummy_functions/test_nala_mocks.ldflags: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/dummy_functions/test_nala_mocks.ldflags -------------------------------------------------------------------------------- /tests/files/dummy_functions/test_tests.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/dummy_functions/test_tests.c -------------------------------------------------------------------------------- /tests/files/empty/test_nala_mocks.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/empty/test_nala_mocks.c -------------------------------------------------------------------------------- /tests/files/empty/test_nala_mocks.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/empty/test_nala_mocks.h -------------------------------------------------------------------------------- /tests/files/empty/test_nala_mocks.ldflags: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/files/empty/test_tests.c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/files/missing_declaration/test_tests.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/missing_declaration/test_tests.c -------------------------------------------------------------------------------- /tests/files/no_rename_underscores/test_nala_mocks.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/no_rename_underscores/test_nala_mocks.c -------------------------------------------------------------------------------- /tests/files/no_rename_underscores/test_nala_mocks.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/no_rename_underscores/test_nala_mocks.h -------------------------------------------------------------------------------- /tests/files/no_rename_underscores/test_nala_mocks.ldflags: -------------------------------------------------------------------------------- 1 | -Wl,--wrap=foo -------------------------------------------------------------------------------- /tests/files/no_rename_underscores/test_tests.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/no_rename_underscores/test_tests.c -------------------------------------------------------------------------------- /tests/files/open/test_nala_mocks.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/open/test_nala_mocks.c -------------------------------------------------------------------------------- /tests/files/open/test_nala_mocks.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/open/test_nala_mocks.h -------------------------------------------------------------------------------- /tests/files/open/test_nala_mocks.ldflags: -------------------------------------------------------------------------------- 1 | -Wl,--wrap=open -------------------------------------------------------------------------------- /tests/files/open/test_tests.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/open/test_tests.c -------------------------------------------------------------------------------- /tests/files/pre_processor_error/test_tests.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/pre_processor_error/test_tests.c -------------------------------------------------------------------------------- /tests/files/rename_parameters_without_name/test.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/rename_parameters_without_name/test.h -------------------------------------------------------------------------------- /tests/files/rename_parameters_without_name/test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/rename_parameters_without_name/test.txt -------------------------------------------------------------------------------- /tests/files/rename_parameters_without_name/test_nala_mocks.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/rename_parameters_without_name/test_nala_mocks.c -------------------------------------------------------------------------------- /tests/files/rename_parameters_without_name/test_nala_mocks.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/rename_parameters_without_name/test_nala_mocks.h -------------------------------------------------------------------------------- /tests/files/rename_parameters_without_name/test_nala_mocks.ldflags: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/rename_parameters_without_name/test_nala_mocks.ldflags -------------------------------------------------------------------------------- /tests/files/rename_parameters_without_name/test_tests.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/rename_parameters_without_name/test_tests.c -------------------------------------------------------------------------------- /tests/files/rename_underscores/test_nala_mocks.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/rename_underscores/test_nala_mocks.c -------------------------------------------------------------------------------- /tests/files/rename_underscores/test_nala_mocks.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/rename_underscores/test_nala_mocks.h -------------------------------------------------------------------------------- /tests/files/rename_underscores/test_nala_mocks.ldflags: -------------------------------------------------------------------------------- 1 | -Wl,--wrap=foo -------------------------------------------------------------------------------- /tests/files/rename_underscores/test_tests.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/rename_underscores/test_tests.c -------------------------------------------------------------------------------- /tests/files/wrap_internal_symbols/test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/wrap_internal_symbols/test.c -------------------------------------------------------------------------------- /tests/files/wrap_internal_symbols/test.ldflags: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/wrap_internal_symbols/test.ldflags -------------------------------------------------------------------------------- /tests/files/wrap_internal_symbols/test.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/wrap_internal_symbols/test.o -------------------------------------------------------------------------------- /tests/files/wrap_internal_symbols/test.wrapped.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/wrap_internal_symbols/test.wrapped.o -------------------------------------------------------------------------------- /tests/files/wrap_internal_symbols/test_function_sections.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/wrap_internal_symbols/test_function_sections.o -------------------------------------------------------------------------------- /tests/files/wrap_internal_symbols/test_function_sections.wrapped.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/files/wrap_internal_symbols/test_function_sections.wrapped.o -------------------------------------------------------------------------------- /tests/test_command_line.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/test_command_line.py -------------------------------------------------------------------------------- /tests/test_wrap_internal_symbols.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tests/test_wrap_internal_symbols.py -------------------------------------------------------------------------------- /tst/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tst/Makefile -------------------------------------------------------------------------------- /tst/make/1/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tst/make/1/Makefile -------------------------------------------------------------------------------- /tst/make/1/foo.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tst/make/1/foo.c -------------------------------------------------------------------------------- /tst/make/1/foo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tst/make/1/foo.h -------------------------------------------------------------------------------- /tst/make/2/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tst/make/2/Makefile -------------------------------------------------------------------------------- /tst/make/2/test_foo.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tst/make/2/test_foo.c -------------------------------------------------------------------------------- /tst/make/3/test_foo.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tst/make/3/test_foo.c -------------------------------------------------------------------------------- /tst/make/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tst/make/Makefile -------------------------------------------------------------------------------- /tst/mock/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tst/mock/Makefile -------------------------------------------------------------------------------- /tst/mock/dummy_functions.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tst/mock/dummy_functions.c -------------------------------------------------------------------------------- /tst/mock/dummy_functions.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tst/mock/dummy_functions.h -------------------------------------------------------------------------------- /tst/mock/dummy_functions_not_mocked.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tst/mock/dummy_functions_not_mocked.h -------------------------------------------------------------------------------- /tst/mock/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tst/mock/main.c -------------------------------------------------------------------------------- /tst/mock/subprocess.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tst/mock/subprocess.c -------------------------------------------------------------------------------- /tst/mock/subprocess.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tst/mock/subprocess.h -------------------------------------------------------------------------------- /tst/mock_real_cat/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tst/mock_real_cat/Makefile -------------------------------------------------------------------------------- /tst/mock_real_cat/dummy_functions.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tst/mock_real_cat/dummy_functions.c -------------------------------------------------------------------------------- /tst/mock_real_cat/dummy_functions.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tst/mock_real_cat/dummy_functions.h -------------------------------------------------------------------------------- /tst/mock_real_cat/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tst/mock_real_cat/main.c -------------------------------------------------------------------------------- /tst/no_mock/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tst/no_mock/Makefile -------------------------------------------------------------------------------- /tst/no_mock/main.c: -------------------------------------------------------------------------------- 1 | #include "nala.h" 2 | 3 | TEST(a_test) 4 | { 5 | ASSERT_EQ(1, 1); 6 | } 7 | -------------------------------------------------------------------------------- /tst/test/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tst/test/Makefile -------------------------------------------------------------------------------- /tst/test/files/bar.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tst/test/files/bar.bin -------------------------------------------------------------------------------- /tst/test/files/bar.txt: -------------------------------------------------------------------------------- 1 | DEF 2 | -------------------------------------------------------------------------------- /tst/test/files/empty.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tst/test/files/foo.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tst/test/files/foo.bin -------------------------------------------------------------------------------- /tst/test/files/foo.txt: -------------------------------------------------------------------------------- 1 | ABC 2 | -------------------------------------------------------------------------------- /tst/test/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tst/test/main.c -------------------------------------------------------------------------------- /tst/test/subprocess.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tst/test/subprocess.c -------------------------------------------------------------------------------- /tst/test/subprocess.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tst/test/subprocess.h -------------------------------------------------------------------------------- /tst/test/subtest/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tst/test/subtest/Makefile -------------------------------------------------------------------------------- /tst/test/subtest/test_fail.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tst/test/subtest/test_fail.c -------------------------------------------------------------------------------- /tst/test/subtest/test_ok.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tst/test/subtest/test_ok.c -------------------------------------------------------------------------------- /tst/test/test_filter_nala.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eerimoq/nala/HEAD/tst/test/test_filter_nala.c --------------------------------------------------------------------------------